Received: from eggs.gnu.org ([2001:4830:134:3::10]:35568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhfte-0007DQ-Gc for qemu-devel@nongnu.org; Wed, 07 Sep 2016 12:40:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhfta-0002uJ-Ep for qemu-devel@nongnu.org; Wed, 07 Sep 2016 12:40:22 -0400 Received: from 6.mo173.mail-out.ovh.net ([46.105.43.93]:36882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhfta-0002u5-8c for qemu-devel@nongnu.org; Wed, 07 Sep 2016 12:40:18 -0400 Received: from player711.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo173.mail-out.ovh.net (Postfix) with ESMTP id 675741008C01 for ; Wed, 7 Sep 2016 18:40:17 +0200 (CEST) References: <1472661255-20160-1-git-send-email-clg@kaod.org> <1472661255-20160-4-git-send-email-clg@kaod.org> <20160905033909.GA3816@voom.fritz.box> <4e91a240-3a44-d96d-fb6e-74d9637ccd92@kaod.org> <1473198349.8689.36.camel@kernel.crashing.org> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: Date: Wed, 7 Sep 2016 18:40:11 +0200 MIME-Version: 1.0 In-Reply-To: <1473198349.8689.36.camel@kernel.crashing.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 3/7] ppc/pnv: Add XSCOM infrastructure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt , David Gibson Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Alexander Graf On 09/06/2016 11:45 PM, Benjamin Herrenschmidt wrote: > On Tue, 2016-09-06 at 16:42 +0200, C=C3=A9dric Le Goater wrote: >>> Alternatively.. it might be simpler to just drop the SCOM as a >>> separate device. I think you could just hang the scom bus directly >>> off the chip object. IIUC the scom is basically the only chip- >> level >>> control mechanism, so this does make a certain amount of sense. >> >> yes. I am exposing more and more stuff of the chip object under the=20 >> xscom object so we should merge them. I agree. We will still need=20 >> some XScomDevice of some sort. >=20 > What you can do is split it this way which matches the HW: >=20 > - The chip object is the XSCOM parent, it owns the XSCOM bus, > and expose functions (methods) to read/write XSCOMs. WE could rename > XSCOM to "PIB" or "PCB" which is the real name of the bus ;-) But that > might confuse things more than help . Well, "Pervasive" should be mentioned somewhere, it is central to PowerPC architecture. I will add a comment for the "PIB" (Pervasive=20 Interconnect Bus) aka XSCOM bus > - A separate ADU object on each chip that is a SysDevice and does the > MMIO bridge to XSCOM. It decodes the MMIO range for that chip and calls > the above accessors. ok. So the ADU is the address space holder.=20 > That makes it easy to generate XSCOMs using different mechanisms if we > wish to do so, which could come in handy, such as monitor commands,=20 yes, that will be helpful to trigger some behavior from the command line. > or if we ever do cosimulation with a separate BMC, a simulated FSI,=20 > all by just calling the first object's methods. The cosimulation is not a long term goal, for the ipmi-bt part. But=20 yes, having a more complete model would be excellent. Cheers, C.=20