xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "G.R." <firemeteor@users.sourceforge.net>
To: xen-devel <xen-devel@lists.xen.org>,
	Ross Philipson <Ross.Philipson@citrix.com>
Subject: Re: Need help to debug win7 BSOD on IGD passthrough
Date: Fri, 4 Jan 2013 21:49:39 +0800	[thread overview]
Message-ID: <CAKhsbWaAW1hEnvh--TOn0yfjDdLNjXZJCaofTDFW38kRbL-oGw@mail.gmail.com> (raw)
In-Reply-To: <CAKhsbWY_LpCKHzNCOqD7qysqeY+4vEtgGu6h=TNx6x3iacTrGg@mail.gmail.com>

Hi Ross,
Let's reuse this thread to discuss the win7 64bit BSOD issue in gfx
passthrough env.
I started this thread but later switched my focus to linux domU. It's
time to pick it up again.

Quoting your reply from the opregion patch thread:
>> Hmm, I found a similar issue with BSODs like this and I tacked it down to the Windows igfx drivers expecting to find vendor capabilities in the GMCH device (the root device at 00:00.0). It was actually looking there for capabilities specific to the gfx card. We fixed this by patching qemu to pass in the vendor capabilities on that device. I am not sure if that made it upstream - I will have to check.
>
> Great news to hear. It'll be great if you can locate that patch for me.
> I'm not sure which upstream you are referring to?
> I'm using the qemu-xen 4.2.1 version. I remember the upstream qemu
> does not support gfx-passthrough.

So here is the lspci -vvv -s 00:00.0 output from the dom0:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core
processor DRAM Controller (rev 09)
	Subsystem: ASRock Incorporation Device 0150
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: [e0] Vendor Specific Information: Len=0c <?>

And Linux domU:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core
processor DRAM Controller (rev 09)
	Subsystem: ASRock Incorporation Device 0150
	Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0

One notable difference is the 'Vendor Specific Information' line in
the host is missing in the domU.
Is it the fix you mention in your comment?

But the fix you mention seems to be igfx driver specific.
But I also observe BSOD without it -- I guess the system run with
basic VGA driver in that case.
Is it the expected behavior?

One more question: does the windows igfx passthrough rely on 1:1
mapping of MMIO bars?
According to tutorials, nvidia cards require such trick.
But it seems that igfx linux driver does not require this -- the lspci
output shows different memory region on dom0 vs domU.

Is there any info you are interested?

Thanks,
Timothy

On Tue, Dec 11, 2012 at 5:26 PM, G.R. <firemeteor@users.sourceforge.net> wrote:
> Hi guys,
> I met win7 vga passthrough problem and would like to analysis the memory
> dump to identify the issues. Could anybody lend me a hand when I'm in
> trouble?
>
> Some details below and would post follow up later.
> Any suggestion on the triage / experiment direction would be appreciated.
>
> I have a working build for passing through intel HD4000 to a debian domU.
> But win7 does not quite work. Issues I've randomly met so far:
> 1) black screen after windows loading files
> 2) failed to access install media (I access install media / virtual disk
> through NFS)
> 3) BSOD memory_mangement during boot
> 4) BSOD system_service_exception during boot
> As I continuously try restarting the domU, syndrome keeps change randomly.
>
> At first glance, these appear to be irrelevant. But they only happens when I
> try IGD passthrough.
> And these appear both during installation and, if I finish install by
> temporally disable vga passthrough, during reboot after video driver
> install.
>
> I'm now going to download windows SDK to analysis the memory dump.
> Will likely need your expertise later.
>
> Thanks,
> Timothy

  reply	other threads:[~2013-01-04 13:49 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11  9:26 Need help to debug win7 BSOD on IGD passthrough G.R.
2013-01-04 13:49 ` G.R. [this message]
2013-01-04 15:53   ` Ross Philipson
2013-01-04 16:30     ` G.R.
2013-01-04 18:14       ` Jean Guyader
2013-01-05  5:08         ` G.R.
2013-01-06 14:16           ` G.R.
2013-01-06 15:32             ` Pasi Kärkkäinen
2013-01-07 10:38             ` Stefano Stabellini
2013-01-09 15:07               ` G.R.
2013-01-09 16:12                 ` Stefano Stabellini
2013-01-09 16:21                 ` Ian Jackson
2013-01-07 15:51             ` Ross Philipson
2013-01-09 16:37             ` Stefano Stabellini
2013-01-10 10:18               ` G.R.
2013-01-10 10:31                 ` Stefano Stabellini
2013-01-10 15:51                   ` G.R.
2013-01-11 12:56                     ` Stefano Stabellini
2013-01-15 17:12                       ` G.R.
2013-01-15 18:40                         ` Stefano Stabellini
2013-01-20 16:26                           ` G.R.
2013-01-21 10:35                             ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKhsbWaAW1hEnvh--TOn0yfjDdLNjXZJCaofTDFW38kRbL-oGw@mail.gmail.com \
    --to=firemeteor@users.sourceforge.net \
    --cc=Ross.Philipson@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).