Received: from eggs.gnu.org ([2001:4830:134:3::10]:59348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byvAJ-0006BP-Qn for qemu-devel@nongnu.org; Tue, 25 Oct 2016 02:24:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byvAF-0000Me-RR for qemu-devel@nongnu.org; Tue, 25 Oct 2016 02:24:51 -0400 Received: from 1.mo68.mail-out.ovh.net ([46.105.41.146]:33466) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byvAF-0000MG-Lg for qemu-devel@nongnu.org; Tue, 25 Oct 2016 02:24:47 -0400 Received: from player788.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo68.mail-out.ovh.net (Postfix) with ESMTP id 2A0C894DA for ; Tue, 25 Oct 2016 08:24:46 +0200 (CEST) References: <1477129610-31353-1-git-send-email-clg@kaod.org> <1477129610-31353-8-git-send-email-clg@kaod.org> <20161025011320.GJ11052@umbus.fritz.box> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: <82956d45-e26b-17e9-b7fe-c2b87a359516@kaod.org> Date: Tue, 25 Oct 2016 08:24:40 +0200 MIME-Version: 1.0 In-Reply-To: <20161025011320.GJ11052@umbus.fritz.box> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v5 07/17] ppc/pnv: add XSCOM infrastructure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: qemu-ppc@nongnu.org, Benjamin Herrenschmidt , qemu-devel@nongnu.org, Alexander Graf On 10/25/2016 03:13 AM, David Gibson wrote: > On Sat, Oct 22, 2016 at 11:46:40AM +0200, C=E9dric Le Goater wrote: >> On a real POWER8 system, the Pervasive Interconnect Bus (PIB) serves >> as a backbone to connect different units of the system. The host >> firmware connects to the PIB through a bridge unit, the >> Alter-Display-Unit (ADU), which gives him access to all the chiplets >> on the PCB network (Pervasive Connect Bus), the PIB acting as the root >> of this network. >> >> XSCOM (serial communication) is the interface to the sideband bus >> provided by the POWER8 pervasive unit to read and write to chiplets >> resources. This is needed by the host firmware, OPAL and to a lesser >> extent, Linux. This is among others how the PCI Host bridges get >> configured at boot or how the LPC bus is accessed. >> >> To represent the ADU of a real system, we introduce a specific >> AddressSpace to dispatch XSCOM accesses to the targeted chiplets. The >> translation of an XSCOM address into a PCB register address is >> slightly different between the P9 and the P8. This is handled before >> the dispatch using a 8byte alignment for all. >> >> To customize the device tree, a QOM InterfaceClass, PnvXScomInterface, >> is provided with a populate() handler. The chip populates the device >> tree by simply looping on its children. Therefore, each model needing >> custom nodes should not forget to declare itself as a child at >> instantiation time. >> >> Based on previous work done by : >> Benjamin Herrenschmidt >> >> Signed-off-by: C=E9dric Le Goater >=20 > Looks like xscom_complete() is still using current_cpu, which I've > mentioned before. Apart from that; gasp. I forgot :/ Thanks for doing it. C.=20