diff options
| author | Farhan Ali <alifm@linux.ibm.com> | 2026-08-05 09:55:16 -0700 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-08-12 17:26:56 -0500 |
| commit | e18d1abc3bff0a24a5299f3c150ab9546e9439aa (patch) | |
| tree | 1dcac2164b2457359e9951b13bd0b7b9737ad06b /scripts/stackusage | |
| parent | dcc5bec09e23bbc4f9de055a11fce9937244f2c8 (diff) | |
| download | linux-e18d1abc3bff0a24a5299f3c150ab9546e9439aa.tar.gz linux-e18d1abc3bff0a24a5299f3c150ab9546e9439aa.zip | |
PCI: Avoid saving config space state if inaccessible
The current reset process saves the device's config space state before
reset and restores it afterward. However errors may occur unexpectedly and
it may then be impossible to save config space because the device may be
inaccessible (e.g. DPC). This results in saving invalid values that get
written back to the device during state restoration.
With a reset we want to recover/restore the device into a functional state.
So avoid saving the state of the config space when the device config space
is inaccessible.
Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
[bhelgaas: comment]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260805165518.794-4-alifm@linux.ibm.com
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
