From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVJn3-0003Ns-QA for qemu-devel@nongnu.org; Mon, 05 Nov 2012 05:20:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVJn1-0007ZL-RF for qemu-devel@nongnu.org; Mon, 05 Nov 2012 05:20:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:27049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVJn1-0007Yj-Id for qemu-devel@nongnu.org; Mon, 05 Nov 2012 05:20:19 -0500 Message-ID: <509792D9.4030208@redhat.com> Date: Mon, 05 Nov 2012 11:20:09 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1351823524-7149-1-git-send-email-david@gibson.dropbear.id.au> <509376CB.8000905@redhat.com> <20121105042048.GY27695@truffula.fritz.box> In-Reply-To: <20121105042048.GY27695@truffula.fritz.box> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] xhci: Fix some DMA host endian bugs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On 11/05/12 05:20, David Gibson wrote: > Here's an updated version that uses a temporary buffer. > > From 588a8f874c8d5a658ef95e35164e182a915091db Mon Sep 17 00:00:00 2001 > From: David Gibson > Date: Mon, 5 Nov 2012 14:29:01 +1100 > Subject: [PATCH] xhci: Fix some DMA host endian bugs > > The xhci device does correct endian switches on the results of some DMAs > but not all. In particular, there are many DMAs of what are essentially > arrays of 32-bit integers which never get byteswapped. This causes them > to be interpreted incorrectly on big-endian hosts, since (as per the xhci > spec) these arrays are always little-endian in guest memory. > > This patch adds some helper functions to fix these bugs. This may not be > all the endian bugs in the xhci code, but it's certainly some of them and > the Linux guest xhci driver certainly gets further with these fixes. Patch added to usb patch queue. thanks, Gerd