Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Sunday, October 21, 2007 - 9:45 pm

From: "Michael Chan" <mchan@broadcom.com>
Date: Sun, 21 Oct 2007 21:01:17 -0700


Right, it would have to be after the slot reset.


Yes, it can.

The core issue is that the ARCH level MSI code invokes
write_msi_msg(), not the generic code, exactly because there
are platform level issues wherein the firmware is the only
legal way to write the MSI settings in PCI config space.

However, the MSI state restore code was not architected similarly.  It
does the write_msi_msg() directly, instead of letting platform level
code is in ARCH hooks.

Therefore I think we need to attack this in two stages:

1) First changeset moves the write_msi_msg() call currently in
   __pci_restore_msi_state() into an ARCH overridable handler.

   This would allow powerpc to deal with this properly.

   pci_restor_msi_state() can get exported to modules in this
   change

2) The Tigon3 error recovery changes, as they were.

But I have to ask, can anyone see how e1000 handles MSI properly
in it's PCI error support?
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [BUG] powerpc does not save msi state [was Re: [PATCH ..., Benjamin Herrenschmidt, (Fri Oct 19, 6:29 pm)
Re: [BUG] powerpc does not save msi state [was Re: [PATCH ..., Michael Ellerman, (Fri Oct 19, 11:43 pm)
Re: [BUG] powerpc does not save msi state [was Re: [PATCH ..., Benjamin Herrenschmidt, (Sun Oct 21, 2:13 pm)
Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() fu ..., David Miller, (Sun Oct 21, 9:45 pm)
Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() fu ..., Benjamin Herrenschmidt, (Mon Oct 22, 2:24 pm)
Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() fu ..., Benjamin Herrenschmidt, (Mon Oct 22, 5:29 pm)
Re: [BUG] powerpc does not save msi state [was Re: [PATCH ..., Benjamin Herrenschmidt, (Mon Oct 22, 5:32 pm)