From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH] PCI: MSI: Restore read_msi_msg_desc(); add get_cached_msi_msg_desc() From: Michael Ellerman To: Ben Hutchings In-Reply-To: <1279893388.2089.9.camel@achroite.uk.solarflarecom.com> References: <20100723102202.871a3131.sfr@canb.auug.org.au> <1279847985.4883.391.camel@localhost> <1279850740.6381.19.camel@concordia> <1279893388.2089.9.camel@achroite.uk.solarflarecom.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-VcV+sHjbjlRrKfOs1AzT" Date: Mon, 26 Jul 2010 21:20:27 +1000 Message-ID: <1280143227.7337.0.camel@concordia> Mime-Version: 1.0 Cc: Stephen Rothwell , ppc-dev , LKML , Jesse Barnes , linux-pci Reply-To: michael@ellerman.id.au List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-VcV+sHjbjlRrKfOs1AzT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2010-07-23 at 14:56 +0100, Ben Hutchings wrote: > commit 2ca1af9aa3285c6a5f103ed31ad09f7399fc65d7 "PCI: MSI: Remove > unsafe and unnecessary hardware access" changed read_msi_msg_desc() to > return the last MSI message written instead of reading it from the > device, since it may be called while the device is in a reduced > power state. >=20 > However, the pSeries platform code really does need to read messages > from the device, since they are initially written by firmware. > Therefore: > - Restore the previous behaviour of read_msi_msg_desc() > - Add new functions get_cached_msi_msg{,_desc}() which return the > last MSI message written > - Use the new functions where appropriate >=20 > Signed-off-by: Ben Hutchings Looks good to me. cheers --=-VcV+sHjbjlRrKfOs1AzT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkxNb3gACgkQdSjSd0sB4dJ6PQCfXdGGM61GX12Yldd3DHo2286j 40gAnjwA/7odh+QQK5AXbiA/ncIey8Or =+yMh -----END PGP SIGNATURE----- --=-VcV+sHjbjlRrKfOs1AzT--