]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI/PM: Print config space of devices before suspend
authorChen Yu <yu.c.chen@intel.com>
Mon, 13 Jan 2020 06:07:24 +0000 (14:07 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Jan 2020 21:43:38 +0000 (15:43 -0600)
commit47b802d5d80c2fef3ccd9772d518bd602c83cea1
tree6128cfbd479a7b45a807f304a6f36c6854411668
parente42617b825f8073569da76dc4510bfa019b1c35a
PCI/PM: Print config space of devices before suspend

When resuming from hibernation (S4, also known as "suspend to disk") on a
VM, we have seen invalid config space, e.g.,

  serial 0000:00:16.3: restoring config space at offset 0x14 (was 0x9104e000, writing 0xffffffff)

To help debug problems like this, log the config space being saved before
suspend, similar to the log in pci_restore_config_dword() when resuming.

Link: https://lore.kernel.org/r/20200113060724.19571-1-yu.c.chen@intel.com
[bhelgaas: commit log]
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Len Brown <lenb@kernel.org>
drivers/pci/pci.c