Received: from eggs.gnu.org ([2001:4830:134:3::10]:42198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnGgg-0002D3-46 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 22:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnGgf-0006F3-3R for qemu-devel@nongnu.org; Thu, 22 Sep 2016 22:58:06 -0400 Date: Fri, 23 Sep 2016 12:54:25 +1000 From: David Gibson Message-ID: <20160923025425.GV2085@umbus.fritz.box> References: <1473943560-14846-1-git-send-email-clg@kaod.org> <1473943560-14846-11-git-send-email-clg@kaod.org> <20160921063035.GF20488@umbus> <2bf61d99-ac3b-251e-27d3-c8bb9b519b0f@kaod.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jWL1oGPK2mPq0rME" Content-Disposition: inline In-Reply-To: <2bf61d99-ac3b-251e-27d3-c8bb9b519b0f@kaod.org> Subject: Re: [Qemu-devel] [PATCH v3 10/10] ppc/pnv: add a ISA bus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?C=E9dric?= Le Goater Cc: qemu-ppc@nongnu.org, Benjamin Herrenschmidt , qemu-devel@nongnu.org --jWL1oGPK2mPq0rME Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 22, 2016 at 10:44:13AM +0200, C=E9dric Le Goater wrote: >=20 > >> +static ISABus *pnv_isa_create(PnvChip *chip) > >> +{ > >> + PnvLpcController *lpc =3D &chip->lpc; > >> + ISABus *isa_bus; > >> + qemu_irq *irqs; > >> + PnvChipClass *pcc =3D PNV_CHIP_GET_CLASS(chip); > >> + > >> + /* Instanciate ISA bus. let isa_bus_new() create its own bridge on > >=20 > > Instantiate has 3 't's and no 'c's; English orthography strikes again. >=20 > he :) thanks.=20 >=20 > >> + * sysbus otherwise devices speficied on the command line will > >> + * fail to create. > >> + */ > >> + isa_bus =3D isa_bus_new(NULL, &lpc->isa_mem, &lpc->isa_io, > >> + &error_fatal); > >=20 > > It's not clear to me if this belongs in the chip code or on the lpc > > code - the lpc does create a device node as 'isa@', although it also > > does some other stuff. >=20 > In fact, the isabus in the qemu model is at the machine level, see below, > next to the 'Instanc^Htiate'. >=20 > each chip has a lpc controller but skiboot use a default one to route > the traffic. So we choose the chip[0] one for that.=20 >=20 > Looking closer, I should make sure the "primary" cell is not added in the= =20 > device tree for chip_id !=3D 0. Ok, that seens sensible. --=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 --jWL1oGPK2mPq0rME Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX5JlhAAoJEGw4ysog2bOSpJIQALL7y85e5TGzkJy7hL/+v5Yo I2gz9boW9GBsqo1mlRZl0/ZY1IWR6wl6BroLGlhICx0Sysb17KoLrV1apoDyJ4lt qNHbVutRn78HeSHJW0Q6wsYjK+mFh58aiSOeXJPJnPdorX5gKVIFd7XMwAqqjuJw GV/Nu0h7QNWjKtA+wkTL07YCT2pQEhnX1U5h/4dvpMI6BZDb/f/G2ic5W2oZh6EH pY1lixuXn048dQjZDuO0jaaqNSuI12KyqiioUqVRsDSM2k5Pc1u/n8/hmPbseh9E oc/B2TQv5rYDKdIzYxkRwCBjfEFhYXBOatDK7O5XC6vHarUT0Iici6COATjTIoGx S2o6ICX6QIsvntyJuBiyYEve1yFsTDkOb7Dz+TQls6XVBoZRwhOUIHCC3mSDzAux lJ87ecEWy+stqsjIUYmH3WI5BFBSSrcsLnP5xv6Yp+e5iVJ1ZDkFGPUbEMqBeziW tkMX0taG8SmqMYIf/9z/7y5zoESkQVvOiAuNLx/J3MKeIg2FLj26rXiarysAgNjV bqgKti2bwdBBlYGQEwu8FUA9CzmSW7O0Io1NnCkCVmOnOmRSaLJV59jtbCzRuvhd Mf5NRqWScidDldl81XkDO00FUPPy4IB8uYw/PGRfBz8tgjeM+xuUrw2YmbinIqX9 0iXeVedyh+hoct0FydCI =U+Br -----END PGP SIGNATURE----- --jWL1oGPK2mPq0rME--