[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071019.172706.57467960.davem@davemloft.net>
Date: Fri, 19 Oct 2007 17:27:06 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: linas@...tin.ibm.com
Cc: mchan@...adcom.com, mcarlson@...adcom.com, netdev@...r.kernel.org,
linux-pci@...ey.karlin.mff.cuni.cz
Subject: Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function
From: linas@...tin.ibm.com (Linas Vepstas)
Date: Fri, 19 Oct 2007 19:04:21 -0500
> I'm working in linux-2.6.23-rc8-mm1 at the moment, and I don't see
> that happening. viz. read_msi_msg() is not called anywhere, and I need
> to have valid msg->address_lo and msg->address_hi and msg->data
> in order to be able to restore.
The generic PCI layer will save away the PCI config space elements
during pci_enable_msi(), including the MSI address and data values.
You can fetch the values you need from there during restore if
you need them.
See the pci_restore_msi_state() call done from pci_restore_state()
in drivers/pci/pci.c, that pci_restore_msi_state() code in
drivers/pci/msi.c very much relies upon the entry->msg values
being uptodate and valid.
The MSI arch layer code is supposed to fill the entry->msg values in
via arch_setup_msi_irq(). Perhaps the pseries code is forgetting to
do that.
So I can't really see what the problem is you're talking about.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists