From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPtD0-0000gJ-JJ for qemu-devel@nongnu.org; Fri, 05 Sep 2014 09:05:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPtCt-0001Ip-83 for qemu-devel@nongnu.org; Fri, 05 Sep 2014 09:05:46 -0400 Date: Fri, 5 Sep 2014 22:41:37 +1000 From: David Gibson Message-ID: <20140905124137.GE29795@voom.redhat.com> References: <1409307142-2600-1-git-send-email-aik@ozlabs.ru> <1409307142-2600-5-git-send-email-aik@ozlabs.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xA/XKXTdy9G3iaIz" Content-Disposition: inline In-Reply-To: <1409307142-2600-5-git-send-email-aik@ozlabs.ru> Subject: Re: [Qemu-devel] [RFC PATCH v3 04/18] spapr_pci: Introduce a liobn number generating macros List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Alex Williamson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Alexander Graf --xA/XKXTdy9G3iaIz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 29, 2014 at 08:12:08PM +1000, Alexey Kardashevskiy wrote: > We are going to have multiple DMA windows per PHB and we want them to > migrate so we need a predictable way of assigning LIOBNs. >=20 > This introduces a macro which makes up a LIOBN from fixed prefix, > PHB index (unique PHB id) and window number. >=20 > This introduces a SPAPR_PCI_DMA_WINDOW_NUM() to know the window number > from LIOBN. It is used to distinguish the default 32bit windows from > dynamic windows and avoid picking default DMA window properties from > a wrong TCE table. >=20 > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson --=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 --xA/XKXTdy9G3iaIz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUCa+BAAoJEGw4ysog2bOSQx8QAIhz0g52TeItwwFMJvfNYO77 nXotmO5y6GwFuPWJ9wnuPPYQMJ/OKfDa0clGMjMnTkW2c2TT8YywP3Bwk0jKQTu9 nztdq7d0E7WQqyWNZ0Zra3rGUqgIDGPyAVFTvfWxjb22iYQyxs5RpPF0Xe1TAei6 kzlBYPuR5LUcH55oSPhC9THIIG8TEaM9ThGYOU+0A9RbsX+WfEGLM3MDZoHf0tmg qoawwNRG67MwL/2SihewCQPX1Rw4ToWv5Y5Op/SJ+qh7b4iogjrRDrRDiDTG1KWv WQY7guNPM3iJh5OOs6ba9rOmY4LysRNxHpbzx6wTNY3eiG/lStEORALtMGckcMKp l9WOaWGyzcK7sMt5Ba94jcULy5K6h0sSzv5QJ9VsmY9NqmVTvto8Br1BdZM1mkZi dPPJcFqpAQLdbXX22XGwzJrMHg96XSvqJo1VkEQ95lSY1XHW7nQhmRnZ5N2bMcTy m5WlE4wQcfgnGPhbUi/gKuxrUrKzkzzJ+YQUXKk5axyBYZFPn7GchZtgoAJzQon8 0r2tfeazJqm2Z6OR0/f0sFtFv9e7+WRSRvwtHXBi+E8RIb28lgm+b46zurcuMx0B NIyhNOr7mKeJjhCvxXbcvtUCYp5cEOhy/SBu4oKrt0asNWamHMMs/4E7NdnR5bwE X0cCyyW0QauGmyBFL6Mo =Qufy -----END PGP SIGNATURE----- --xA/XKXTdy9G3iaIz--