Received: from eggs.gnu.org ([2001:4830:134:3::10]:56245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhipV-0000rW-Du for qemu-devel@nongnu.org; Wed, 07 Sep 2016 15:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhipQ-0000Uy-9I for qemu-devel@nongnu.org; Wed, 07 Sep 2016 15:48:15 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49757 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhipQ-0000Ut-33 for qemu-devel@nongnu.org; Wed, 07 Sep 2016 15:48:12 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u87JgwlR032630 for ; Wed, 7 Sep 2016 15:48:11 -0400 Received: from e23smtp01.au.ibm.com (e23smtp01.au.ibm.com [202.81.31.143]) by mx0b-001b2d01.pphosted.com with ESMTP id 25a1ut8yuk-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 07 Sep 2016 15:48:11 -0400 Received: from localhost by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Sep 2016 05:48:08 +1000 From: Benjamin Herrenschmidt Reply-To: benh@au1.ibm.com Date: Thu, 08 Sep 2016 05:48:02 +1000 In-Reply-To: References: <1472661255-20160-1-git-send-email-clg@kaod.org> <1472661255-20160-4-git-send-email-clg@kaod.org> <20160905033909.GA3816@voom.fritz.box> <1473059513.2313.44.camel@kernel.crashing.org> <20160906004847.GB2900@voom.fritz.box> <3af4c2d9-7263-7c54-0a12-c0b4108c65bd@kaod.org> <1473198436.8689.38.camel@kernel.crashing.org> <1473198550.8689.40.camel@au1.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Message-Id: <1473277682.8689.74.camel@au1.ibm.com> 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: =?ISO-8859-1?Q?C=E9dric?= Le Goater , David Gibson Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Alexander Graf On Wed, 2016-09-07 at 17:55 +0200, C=C3=A9dric Le Goater wrote: >=20 > yes. To hack my way through again, I have added a memory region under > the XScomDevice, but we should have a list like the ranges[] because of= =C2=A0 > the PHB3 PCBQs. You have the parent region in the chip. Then each device can create and a= ttach memory regions below if it feels like it. No need to have a generic XScom= Device with a fixed list of regions I think. I mean, you can ... but you don't h= ave to. > > For device-tree, well, we could have a generic interface that anythin= g > > that can populate DT has and iterate through them. Or make a "chiplet= " > > class or something. >=20 > yes, something like the XScomDeviceClass, which serves well the purpose > anyhow.