Received: from eggs.gnu.org ([2001:4830:134:3::10]:39599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnGXQ-0001H2-TT for qemu-devel@nongnu.org; Thu, 22 Sep 2016 22:48:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnGXP-00021W-PS for qemu-devel@nongnu.org; Thu, 22 Sep 2016 22:48:32 -0400 Date: Fri, 23 Sep 2016 11:59:24 +1000 From: David Gibson Message-ID: <20160923015924.GR2085@umbus.fritz.box> References: <1469606618-26915-1-git-send-email-aik@ozlabs.ru> <20160913232911.31012.55556@loki> <20160914120350.17438.69135@loki> <20160922044934.GE2085@umbus.fritz.box> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nQUlLD2FJeKEtFpv" Content-Disposition: inline In-Reply-To: <20160922044934.GE2085@umbus.fritz.box> Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu] spapr_pci: Add numa node id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: sbhat@linux.vnet.ibm.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Bharata B Rao --nQUlLD2FJeKEtFpv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 22, 2016 at 02:49:34PM +1000, David Gibson wrote: > On Wed, Sep 14, 2016 at 07:03:50AM -0500, Michael Roth wrote: > > Quoting Alexey Kardashevskiy (2016-09-14 04:39:10) > > > On 14/09/16 09:29, Michael Roth wrote: > > > > Quoting Alexey Kardashevskiy (2016-07-27 03:03:38) > > > >> This adds a numa id property to a PHB to allow linking passed PCI = device > > > >> to CPU/memory. It is up to the management stack to do CPU/memory p= inning > > > >> to the node with the actual PCI device. > > > >=20 > > > > It looks like x86 relies on PCIBus->numa_node() method (via > > > > pci_bus_numa_node()) to encode similar PCIBus affinities > > > > into ACPI tables, and currently exposes it via > > > > -device pci-[-express]-expander-bus,numa_node=3DX. > > >=20 > > >=20 > > >=20 > > > Well, until we allow DMA windows per PCI bus (not per PHB as it is no= w), > > > this won't make much sense for us (unless I am missing something here= ). > >=20 > > I didn't consider that it's not a bus-level setting; I think > > you're right that re-using the interface to both store/retrieve doesn't > > make much sense in that case. > >=20 > > My thought that was that since pci_bus_numa_node() could in theory come > > to be relied upon by common PCI code, that we should use it as well. But > > even if it doesn't make sense for us to use it, wouldn't it make sense = to > > still set PCIBus->numa_node (in addition to the PHB-wide value) in the > > off-chance that common code does come to rely on > > pci_bus_numa_node()? >=20 > Yes, it would be a good idea to set the PCIBus node value to inherit > the one that's set for the host bridge, just in case any generic code > looks at it in future. But that can be a followup patch, I've applied this to ppc-for-2.8 now. --=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 --nQUlLD2FJeKEtFpv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX5Ix8AAoJEGw4ysog2bOSuJ8P+wS/bun40S0FY+CpuBrjU8/y xno5fdBTtdSfAunt/iIn3LfKcwKXsE6Shy3ahrcZp0/uQ6oITDxAkzt23y0FDHaV Ce9EmHhwMJkKJ6Cv8pU46kgxVrs4c+gmvZun59tz1LGZ383EtQiCgM7ATuUPPOn3 0CkEblrSRoNC9MoRy9VDU1cpXo5VGBWjwKKsDzca12F6OsJGV+FgW2CF317dM4iV bV8wEXErmZj86s+EuLBsUBWVg7DZZeR38pWDy8OfPco0X9Urla60ZMudIcfgl5ra XwvmNO0GOQg+dgDn7JpKCw8hKgMQTHDCwa1sO7hXVztIPpI0ctN1MEG6FGz+RwU4 afnjJWGp2yHMjybNsdJg/6RtDThw4e9BcGPLhpFjqqONysnAVIfM6o2nedPbK2So e8/E8OGSrNhvuyGQAadL9kP+u2S2e96jy8AgMs8CTeBz2oa3UCtLFEoCAuktAdDq P9a7Y1V/mYWAz/P0db9WZcGA7vf5K6IN/PrP+wy80VsrG5ezv8A2YOZbnpMt7jqL MJsg3QNsMGxcn5mvCYzsPYiGP55zxPpXUyF/amd9JeY882T3Mfupgrk2Htv+VuTB /TBxAoVNwv3Gq6Br72GXVGcnEk1GQVxCmrw3+lMDIpnQj5tl5V6qv71lZf2wIleD pYvKYEZD+wAEVmHI46Pf =j3Ip -----END PGP SIGNATURE----- --nQUlLD2FJeKEtFpv--