From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnZOT-0000Fb-Ek for qemu-devel@nongnu.org; Mon, 02 Dec 2013 14:43:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnZOK-0002Bk-SF for qemu-devel@nongnu.org; Mon, 02 Dec 2013 14:42:57 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:26547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnZOK-0002Bb-LF for qemu-devel@nongnu.org; Mon, 02 Dec 2013 14:42:48 -0500 Date: Mon, 2 Dec 2013 14:41:31 -0500 From: Konrad Rzeszutek Wilk Message-ID: <20131202194131.GA3212@phenom.dumpdata.com> References: <656205981.20130917163339@eikelenboom.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <656205981.20130917163339@eikelenboom.it> Subject: Re: [Qemu-devel] [Xen-devel] RESEND [Xen-unstable][Qemu-xen] HVM Guest reading of Expansion ROM from passthroughed PCI device returns data from emulated VGA rom List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sander Eikelenboom Cc: Anthony PERARD , xen-devel , qemu-devel@nongnu.org, Stefano Stabellini On Tue, Sep 17, 2013 at 04:33:39PM +0200, Sander Eikelenboom wrote: > *RESEND* due to exceeding the mailinglists limit for attachment size. > > Hi, > > I'm trying to get secondary vga-passthrough on a HVM guest to work with a AMD HD6570 and the native kernel radeon driver and kernel modesetting. > So the guest still gets the emulated stdvga or cirrus device(used in my case here) as primary/boot vga adapter. > > - When i don't passthrough the radeon card, the linux native radeon driver loads fine. > - When i do passtrough the device to a HVM with the same kernel: > The driver in the guest tries to read the pci expansion rom from the passthroughed device to get the vbios. > The driver reports a successful read, but fails because it can't find the right string at the right offset. > > So I inspected the rom by using sysfs with: > echo 1 > /sys/bus/pci/devices//rom > cat /sys/bus/pci/devices//rom > > - When i use this in dom0 (so without passthrough) i the contents of the ROM are valid (as expected since the driver loads fine) > - When i use this in the Guest (passthrouhed), the contents of the ROM i get are not from the passedthrough adapter, but from the emulated cirrus card. > (it's the same as the "tools/firmware/vgabios/VGABIOS-lgpl-latest.cirrus.bin") I hadn't tried that, but I do get the same error: [ 4.143445] [drm] radeon defaulting to kernel modesetting. [ 4.143452] [drm] radeon kernel modesetting enabled. [ 4.143525] checking generic (f0000000 160000) vs hw (110000000 10000000) [ 4.143976] xen: --> pirq=24 -> irq=40 (gsi=40) [ 4.147760] [drm] initializing kernel modesetting (RV770 0x1002:0x9440 0x174B:0xE850). [ 4.148204] [drm] register mmio base: 0xF3040000 [ 4.148209] [drm] register mmio size: 65536 [ 4.152035] radeon 0000:00:06.0: >Expecting atombios for R600 GPU [ 4.152040] radeon 0000:00:06.0: >Fatal error during GPU init [ 4.152044] [drm] radeon: finishing device. [ 4.152047] [TTM] Memory type 2 has not been initialized [ 4.168163] radeon 0000:00:06.0: >no bo for sa manager [ 4.174380] radeon: probe of 0000:00:06.0 failed with error -22 This is with the latest Xen version. No idea yet what is broken.