* Re: tg3: PCI error recovery
[not found] ` <1190850518.25892.5.camel@dell>
@ 2007-09-27 17:56 ` Linas Vepstas
0 siblings, 0 replies; only message in thread
From: Linas Vepstas @ 2007-09-27 17:56 UTC (permalink / raw)
To: Michael Chan, linux-pci, linuxppc-dev; +Cc: Matt Carlson
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:
On Wed, Sep 26, 2007 at 04:48:38PM -0700, Michael Chan wrote:
> >
> > > 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-27 17:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1189123415.17449.52.camel@teletran1>
[not found] ` <20070925220334.GR5327@austin.ibm.com>
[not found] ` <1190850518.25892.5.camel@dell>
2007-09-27 17:56 ` tg3: PCI error recovery Linas Vepstas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).