Possible problem with PCI save/restore state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Some PCI drivers implement EEH (Extended Error Handling) and need to
restore the PCI state during an error recovery. After commit
4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff (PCI: Clear saved_state after
the state has been restored) a device driver cannot restore the standard
configuration registers twice in a row, so the driver would need to call
pci_save_state() after calling pci_restore_state() during the error
recovery. The problem is that if pci_save_state() results in an EEH
error, the driver will reset the slot/adapter and will call
pci_restore_state() again, but won't have a valid saved state to
restore.

Any thoughts on how to solve this issue?


Thanks,

-- 
Kleber S. Souza
IBM Linux Technology Center

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux