David Miller wrote:
I'm not so sure about this.
Perhaps, instead, you should do a pci_msi_disable() and
pci_msi_enable() in the error detection and recovery sequence.
If we just detected PCI errors on this slot, I don't think it's
a good idea to continue writing to the config space to disable
MSI. Perhaps we can disable/enable after the slot reset.
Or, alternatively, save/restore those MSI registers by hand.
We can do that, but we'll have to do it ahead of time when we enable
MSI, not after errors have been detected. But the address/data can
change as the CPU affinity changes during run time, right?