From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH 5/7] pci: Export the pci_restore_msi_state() function From: Michael Ellerman To: David Miller In-Reply-To: <20071021.162131.43417026.davem@davemloft.net> References: <1192829817.22064.559.camel@teletran1> <20071021.162131.43417026.davem@davemloft.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-eRZzph4WCtjgwernsoX+" Date: Mon, 22 Oct 2007 11:49:24 +1000 Message-Id: <1193017764.10318.17.camel@concordia> Mime-Version: 1.0 Cc: netdev@vger.kernel.org, mcarlson@broadcom.com, linuxppc-dev list , mchan@broadcom.com, linux-pci@atrey.karlin.mff.cuni.cz Reply-To: michael@ellerman.id.au List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-eRZzph4WCtjgwernsoX+ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2007-10-21 at 16:21 -0700, David Miller wrote: > From: "Matt Carlson" > Date: Fri, 19 Oct 2007 14:36:56 -0700 >=20 > > This patch exports the pci_restore_msi_state() function. This function > > is needed to restore the MSI state during PCI error recovery. > >=20 > > Signed-off-by: Linas Vepstas > > Signed-off-by: Matt Carlson > > Signed-off-by: Michael Chan >=20 > I'm not so sure about this. On pseries there's a chance it will work for PCI error recovery, but if so it's just lucky that firmware has left everything configured the same way. For actual suspend/resume it will never work, we need to ask firmware to configure things. > Perhaps, instead, you should do a pci_msi_disable() and > pci_msi_enable() in the error detection and recovery sequence. Yes I think so. That way we can properly reconfigure via the firmware interface. The other option would be to design some new arch hook to do resume, but just doing a disable/enable seems simpler to me. cheers --=20 Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person --=-eRZzph4WCtjgwernsoX+ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHHAGkdSjSd0sB4dIRAuAcAKDN9ww2L20UWqzhKcAwCPxjIDX8tACgyyR1 nlVp3pd3dMeMZDrlG5K3NbY= =kRb4 -----END PGP SIGNATURE----- --=-eRZzph4WCtjgwernsoX+--