netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* suspend/resume not working in MSIX mode
@ 2010-06-15  1:13 Michael Chan
  2010-06-17 19:16 ` [PATCH] PCI: MSI: Remove unsafe and unnecessary hardware access Ben Hutchings
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Chan @ 2010-06-15  1:13 UTC (permalink / raw)
  To: linux-pci, netdev

I'm debugging the bnx2 driver which doesn't work after suspend/resume if
it is running in MSI-X mode.  The problem is that during suspend, the
MSI-X vectors are disabled by the following sequence on x86:

take_cpu_down() -> cpu_disable_common() -> fixup_irqs()

The MSI-X address/data used to disable the vectors are remembered in the
above sequence.  During resume, these address/data are then programmed
back to the device during pci_restore_state(), causing all the vectors
to remain disabled.

Some drivers call free_irq() during suspend and request_irq() during
resume, and that should avoid the problem.  bnx2 and some other drivers
do not do that.  These drivers rely on pci_restore_state() to restore
the MSI-X vectors to the same working state before suspend.

What's the right way to fix this?  Thanks.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-20 19:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-15  1:13 suspend/resume not working in MSIX mode Michael Chan
2010-06-17 19:16 ` [PATCH] PCI: MSI: Remove unsafe and unnecessary hardware access Ben Hutchings
2010-06-17 23:58   ` Michael Chan
2010-07-02 23:16   ` Jesse Barnes
2010-10-15 18:26   ` Emil S Tantilov
2010-10-15 20:06     ` Jesse Barnes
2010-10-20 19:05       ` Tantilov, Emil S

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).