Files
Farhan Ali 231c7a57d1 PCI/MSI: Enable memory decoding before restoring MSI-X messages
The current MSI-X restoration path assumes the Command register Memory bit
is enabled when writing MSI-X messages. But it's possible the last saved
and restored state of a device may not have the Memory bit enabled, even if
a device driver later enables Memory bit and MSI-X. Attempting to access
Memory space without Memory bit enabled can lead to Unsupported Request
(UR) from the device. Fix this by enabling Memory bit and restore it
afterwards.

Fixes: 41017f0cac ("[PATCH] PCI: MSI(X) save/restore for suspend/resume")
Signed-off-by: Farhan Ali <[email protected]>
[bhelgaas: comment]
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Reviewed-by: Niklas Schnelle <[email protected]>
Cc: [email protected]
Link: https://patch.msgid.link/[email protected]
2026-08-12 17:27:13 -05:00
..
…
…