From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhvWa-0000Ke-Uc for qemu-devel@nongnu.org; Wed, 16 Aug 2017 06:26:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhvWX-0002YT-R4 for qemu-devel@nongnu.org; Wed, 16 Aug 2017 06:26:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47410) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dhvWX-0002XZ-L3 for qemu-devel@nongnu.org; Wed, 16 Aug 2017 06:26:05 -0400 References: <1502808257-17395-1-git-send-email-matt.redfearn@imgtec.com> From: Marcel Apfelbaum Message-ID: <8f87ef69-f93e-d05e-00db-0a68dba85356@redhat.com> Date: Wed, 16 Aug 2017 13:25:58 +0300 MIME-Version: 1.0 In-Reply-To: <1502808257-17395-1-git-send-email-matt.redfearn@imgtec.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] PCI: PCIe access should always be little endian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Matt Redfearn , "Michael S . Tsirkin" Cc: qemu-devel@nongnu.org, Yongbok Kim On 15/08/2017 17:44, Matt Redfearn wrote: > PCIe busses are always little endian, so set the endianness of the > memory region to little endian rather than native such that operations > work as expected on big endian targets. > > Signed-off-by: Matt Redfearn Hi Matt, Thanks for the patch. > --- > > hw/pci/pcie_host.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/pci/pcie_host.c b/hw/pci/pcie_host.c > index dcebf57ed45e..553db56778b6 100644 > --- a/hw/pci/pcie_host.c > +++ b/hw/pci/pcie_host.c > @@ -81,7 +81,7 @@ static uint64_t pcie_mmcfg_data_read(void *opaque, > static const MemoryRegionOps pcie_mmcfg_ops = { > .read = pcie_mmcfg_data_read, > .write = pcie_mmcfg_data_write, > - .endianness = DEVICE_NATIVE_ENDIAN, > + .endianness = DEVICE_LITTLE_ENDIAN, > }; > > static void pcie_host_init(Object *obj) > Reviewed-by: Marcel Apfelbaum Thanks, Marcel