Received: from eggs.gnu.org ([140.186.70.92]:44455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPWQn-0000RE-G5 for qemu-devel@nongnu.org; Thu, 26 May 2011 05:00:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPWQm-0008EK-EG for qemu-devel@nongnu.org; Thu, 26 May 2011 05:00:37 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:54308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPWQl-0008DE-RT for qemu-devel@nongnu.org; Thu, 26 May 2011 05:00:36 -0400 Date: Thu, 26 May 2011 18:00:30 +0900 From: Isaku Yamahata Message-ID: <20110526090030.GA9303@valinux.co.jp> References: <20110516215523.1d77baf4@shadowfax.no-ip.com> <4DD2209B.6080502@siemens.com> <4DDCACAB.1090208@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DDCACAB.1090208@web.de> Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: adnan@khaleel.us, qemu-devel@nongnu.org On Wed, May 25, 2011 at 09:15:55AM +0200, Jan Kiszka wrote: > FWIW, patch below fixes UHCI here. I suspect more bugs in this area as > accessing the chip_config registers appears to rely on the host being > little endian (direct memcpy). > > In contrast, the PCI mapping issue turned out to be a read herring. The > unmapped regions were actually ROM BARs which are usually unmapped. And > the network issues were related to an outdated DSDT. Somehow rebuilding > Seabios did not always properly regenerate them, so my polarity fixes > were not inluded. Haven't looked into details, but deleting out/ and > src/*.hex resolved that. Good catch. I queued it in my repo. > > I'll have to put this topic aside for now as it looks like we don't > depend on it for PCIe pass-through. Still, it's a cool thing, and I > would be happy to find it upstream soon! > > Jan > > ------8<------- > > From: Jan Kiszka > Subject: [PATCH] q35: Fix irr initialization for slots 25..31 > > This was totally off: The CC registers are 16 bit (stored as little > endian), their offsets run in reverse order, and D26IR as well as D25IR > have 4 bytes offset to their successors. > > Signed-off-by: Jan Kiszka > --- > hw/q35.c | 10 +++++++--- > 1 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/hw/q35.c b/hw/q35.c > index a06ea7d..0ab8532 100644 > --- a/hw/q35.c > +++ b/hw/q35.c > @@ -424,14 +424,18 @@ static void ich9_cc_update_ir(uint8_t irr[PCI_NUM_PINS], uint32_t ir) > static void ich9_cc_update(ICH9_LPCState *lpc) > { > int slot; > - int reg_offset; > + int reg; > int intx; > > /* D{25 - 31}IR, but D30IR is read only to 0. */ > - for (slot = 25, reg_offset = 0; slot < 32; slot++, reg_offset++) { > + for (slot = 31, reg = ICH9_CC_D31IR; slot >= 25; slot--, reg += 2) { > if (slot != 30) { > ich9_cc_update_ir(lpc->irr[slot], > - lpc->chip_config[ICH9_CC_D31IR + reg_offset]); > + lpc->chip_config[reg] | > + (uint32_t)lpc->chip_config[reg + 1] << 8); > + } > + if (slot <= 27) { > + reg += 2; > } > } > > -- > 1.7.1 > -- yamahata