From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5nCG-0007UF-Tv for qemu-devel@nongnu.org; Thu, 26 May 2016 00:47:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5nCE-0007Ly-T8 for qemu-devel@nongnu.org; Thu, 26 May 2016 00:46:59 -0400 Date: Thu, 26 May 2016 13:17:33 +1000 From: David Gibson Message-ID: <20160526031733.GX17226@voom.fritz.box> References: <1462344751-28281-1-git-send-email-aik@ozlabs.ru> <1462344751-28281-7-git-send-email-aik@ozlabs.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="McQJJYUzjTUqtsGv" Content-Disposition: inline In-Reply-To: <1462344751-28281-7-git-send-email-aik@ozlabs.ru> Subject: Re: [Qemu-devel] [PATCH qemu v16 06/19] spapr_pci: Use correct DMA LIOBN when composing the device tree List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Alexander Graf , Alex Williamson , Paolo Bonzini --McQJJYUzjTUqtsGv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 04, 2016 at 04:52:18PM +1000, Alexey Kardashevskiy wrote: > The user could have picked LIOBN via the CLI but the device tree > rendering code would still use the value derived from the PHB index > (which is the default fallback if LIOBN is not set in the CLI). >=20 > This replaces SPAPR_PCI_LIOBN() with the actual DMA LIOBN value. >=20 > Signed-off-by: Alexey Kardashevskiy Applied to ppc-for-2.7. > --- > Changes: > v16: > * new in the series > --- > hw/ppc/spapr_pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c > index 573e635..742d127 100644 > --- a/hw/ppc/spapr_pci.c > +++ b/hw/ppc/spapr_pci.c > @@ -1815,7 +1815,7 @@ int spapr_populate_pci_dt(sPAPRPHBState *phb, > _FDT(fdt_setprop(fdt, bus_off, "interrupt-map", &interrupt_map, > sizeof(interrupt_map))); > =20 > - tcet =3D spapr_tce_find_by_liobn(SPAPR_PCI_LIOBN(phb->index, 0)); > + tcet =3D spapr_tce_find_by_liobn(phb->dma_liobn); > if (!tcet) { > return -1; > } --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --McQJJYUzjTUqtsGv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXRmrNAAoJEGw4ysog2bOSEQQQALMYVzi1XR2nkunSRh3SWizm XjJ7uBDQ/g70A3KL2uMza6bw0jJG239pJ6VfSkBm7Scc/QIBITedmuQ9yWwSwWyN C3Iks6GT8r9aiDmmZe0tHrvpCiqoOr/haVOgP6kpCJn8oTf9azBzA4iLxWxF9Bvv B/BNNB5szCSTDigomDc7m9D9+RNSbuEMOkjc7csGzFCtOceokW53dx1v4sTxfjDG aEci7E6K40bujjmwyGh17SObMAOkL07goROiKE5QjDKRjK4eVKcDuvkGxTfMRV/N 6yiehCMNg7XCIhPMSA/eOaZSDXIZXGT7hiGYTpdEDOhHC8aloaPScIZU27TNoTb/ W85B8RyGwthZtU0wzkDK3S/1eJFcXSMSWiKwK8fILbBC7sKNfUeWXNWTsHT7jjPj eHkZ0zjiMJAvlRZwmR4OXdOoGm0XAoi0e210UBVYZm8iKgCTDs/L3J88sWwj0Zkt EUQnSzgs7mtHsFmfZYlU0sAsAhXFp5ZF5OBeTb2Zsu+m/yOWPXgMFPoIaOIkYoKf Vgr0IoaVvIIt8FYgxvwrPrg7gUw+Ce8SDhMANhqF6Ua/rvmsBv8PSyEO+646NmW0 W7Xo7srUEb3bwmtlM+VXZA3tZzge665wk58v/W45zqzjuQaEFdIbQr0dfFf+bfsP eH9ZVVOQBXjwfTZMr0U9 =O8yn -----END PGP SIGNATURE----- --McQJJYUzjTUqtsGv--