Skip to contentSkip to conversation

tg3: PCI error recovery

DISCUSSION Linas Vepstas 1 participant 1 message Sep 27, 2007 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1189123415.17449.52.camel@teletran1

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1190850518.25892.5.camel@dell

#3 lore raw

During a private conversation about how to save and restore device state after a pci error is detected, and the device is reset, the following came up:

Quoted 10 lines · Michael Chan
Quoted 7 lines
Quoted 3 lines

1b) If so, is it safe to call pci_save_state() in tg3_io_error_detected(), or are we to assume they've been corrupted?

My conservative approach is to assume that anything and everything has been corrupted. (e.g. temporary undervoltage on the bus might scramble multiple registers)

In that case, we should call pci_restore_msi_state() to restore the MSI state, but this call is only defined if CONFIG_PM is defined.

There seem to be two choices:
1) enable CONFIG_PM in those arches that care about recovering from PCI errors. (Yuck)

2) remove the ifdef CONFIG_PM from around pci_restore_msi_state() in rivers/pci/msi.c

I'd go for choice 2, but I thought I'd ask first ...

--linas