From: Tom Rotenberg Subject: Re: Trying to pass-through Intel graphics device - causes a xen panic Date: Thu, 24 Sep 2009 16:07:10 +0300 Message-ID: <8686c3cd0909240607q1550598au62a9803adcc126f3@mail.gmail.com> References: <8686c3cd0909230916p11d87a36i56f6a787eae46f10@mail.gmail.com> <715D42877B251141A38726ABF5CABF2C05505A7A78@pdsmsx503.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <715D42877B251141A38726ABF5CABF2C05505A7A78@pdsmsx503.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Han, Weidong" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi, Thanks for your relpy. Do u have any estimation to when those patches will be released? BTW does it work in XCI? i saw some IGD PT related code there... Tom On Thu, Sep 24, 2009 at 4:38 AM, Han, Weidong wrote= : > Hi Tom, > > IGD passthrough is not supported on xen-unstable yet. We are working on i= t, will send out the patches in near future. > > Regards, > Weidong > > Tom Rotenberg wrote: >> Hi, >> >> I tried to pass-through the 00:02.0 & 00:02.1 devices (Intel >> integrated graphics device) on a Lenovo T500, using the latest >> xen-unstable, and i got a xen panic. >> Here are the last lines of the console log: >> " >> ..... >> (XEN) [VT-D]iommu.c:1296:d0 domain_context_unmap:PCI: bdf =3D 0:2.0 >> (XEN) [VT-D]iommu.c:716: iommu_page_fault: iommu->reg =3D >> ffff828bfff56000 (XEN) [VT-D]iommu.c:685: iommu_fault_status: Fault >> Overflow (XEN) [VT-D]iommu.c:688: iommu_fault_status: Primary Pending >> Fault (XEN) [VT-D]iommu.c:670: iommu_fault:DMA Write: 0:2.0 addr 0 >> REASON 2 iommu->reg =3D ffff828bfff56000 >> (XEN) [VT-D]iommu.c:1182:d0 domain_context_mapping:PCI: bdf =3D 0:2.0 >> (XEN) print_vtd_entries: iommu =3D ffff83007c4bd0d0 bdf =3D 0:2:0 gmfn = =3D 0 >> (XEN) =A0 =A0 root_entry =3D ffff83007c4ce000 >> (XEN) =A0 =A0 root_entry[0] =3D 78910001 >> (XEN) =A0 =A0 context =3D ffff830078910000 >> (XEN) =A0 =A0 context[10] =3D 0_0 >> (XEN) =A0 =A0 ctxt_entry[10] not present >> (XEN) [VT-D]iommu.c:1182:d0 domain_context_mapping:PCI: bdf =3D 0:2.0 >> (XEN) [VT-D]io.c:280:d0 VT-d irq bind: m_irq =3D 37 device =3D 5 intx = =3D 0 >> (XEN) [VT-D]iommu.c:1296:d0 domain_context_unmap:PCI: bdf =3D 0:2.1 >> (XEN) [VT-D]iommu.c:716: iommu_page_fault: iommu->reg =3D >> ffff828bfff56000 (XEN) [VT-D]iommu.c:685: iommu_fault_status: Fault >> Overflow (XEN) [VT-D]iommu.c:688: iommu_fault_status: Primary Pending >> Fault (XEN) [VT-D]iommu.c:1182:d0 domain_context_mapping:PCI: bdf =3D >> 0:2.1 (XEN) [VT-D]iommu.c:670: iommu_fault:DMA Write: 0:2.0 addr >> ffffff000 >> REASON 5 iommu->reg =3D ffff828bfff56000 >> (XEN) print_vtd_entries: iommu =3D ffff83007c4bd0d0 bdf =3D 0:2:0 gmfn = =3D >> ffffff (XEN) =A0 =A0 root_entry =3D ffff83007c4ce000 >> (XEN) =A0 =A0 root_entry[0] =3D 78910001 >> (XEN) =A0 =A0 context =3D ffff830078910000 >> (XEN) =A0 =A0 context[10] =3D 201_75131001 >> (XEN) =A0 =A0 l3 =3D ffff830075131000 >> (XEN) =A0 =A0 l3_index =3D 3f >> (XEN) =A0 =A0 l3[3f] =3D 0 >> (XEN) =A0 =A0 l3[3f] not present >> (XEN) [VT-D]iommu.c:716: iommu_page_fault: iommu->reg =3D >> ffff828bfff56000 (XEN) [VT-D]iommu.c:685: iommu_fault_status: Fault >> Overflow (XEN) [VT-D]iommu.c:688: iommu_fault_status: Primary Pending >> Fault (XEN) [VT-D]iommu.c:670: iommu_fault:DMA Write: 0:2.0 addr >> ffffff000 >> REASON 5 iommu->reg =3D ffff828bfff56000 >> (XEN) print_vtd_entries: iommu =3D ffff83007c4bd0d0 bdf =3D 0:2:0 gmfn = =3D >> ffffff (XEN) =A0 =A0 root_entry =3D ffff83007c4ce000 >> (XEN) =A0 =A0 root_entry[0] =3D 78910001 >> (XEN) =A0 =A0 context =3D ffff830078910000 >> (XEN) =A0 =A0 context[10] =3D 201_75131001 >> (XEN) =A0 =A0 l3 =3D ffff830075131000 >> (XEN) =A0 =A0 l3_index =3D 3f >> (XEN) =A0 =A0 l3[3f] =3D 0 >> (XEN) =A0 =A0 l3[3f] not present >> (XEN) [VT-D]iommu.c:716: iommu_page_fault: iommu->reg =3D >> ffff828bfff56000 (XEN) [VT-D]iommu.c:685: iommu_fault_status: Fault >> Overflow (XEN) [VT-D]iommu.c:688: iommu_fault_status: Primary Pending >> Fault (XEN) [VT-D]iommu.c:670: iommu_fault:DMA Write: 0:2.0 addr >> ffffff000 >> REASON 5 iommu->reg =3D ffff828bfff56000 >> (XEN) print_vtd_entries: iommu =3D ffff83007c4bd0d0 bdf =3D 0:2:0 gmfn = =3D >> ffffff (XEN) =A0 =A0 root_entry =3D ffff83007c4ce000 >> (XEN) =A0 =A0 root_entry[0] =3D 78910001 >> (XEN) =A0 =A0 context =3D ffff830078910000 >> (XEN) =A0 =A0 context[10] =3D 201_75131001 >> (XEN) =A0 =A0 l3 =3D ffff830075131000 >> (XEN) =A0 =A0 l3_index =3D 3f >> (XEN) =A0 =A0 l3[3f] =3D 0 >> (XEN) =A0 =A0 l3[3f] not present >> (XEN) [VT-D]iommu.c:716: iommu_page_fault: iommu->reg =3D >> ffff828bfff56000 (XEN) [VT-D]iommu.c:685: iommu_fault_status: Fault >> Overflow (XEN) [VT-D]iommu.c:688: iommu_fault_status: Primary Pending >> Fault (XEN) [VT-D]iommu.c:670: iommu_fault:DMA Write: 0:2.0 addr >> ffffff000 >> REASON 5 iommu->reg =3D ffff828bfff56000 >> (XEN) print_vtd_entries: iommu =3D ffff83007c4bd0d0 bdf =3D 0:2:0 gmfn = =3D >> ffffff (XEN) =A0 =A0 root_entry =3D ffff83007c4ce000 >> (XEN) =A0 =A0 root_entry[0] =3D 78910001 >> (XEN) =A0 =A0 context =3D ffff830078910000 >> (XEN) =A0 =A0 context[10] =3D 201_75131001 >> (XEN) =A0 =A0 l3 =3D ffff830075131000 >> (XEN) =A0 =A0 l3_index =3D 3f >> (XEN) =A0 =A0 l3[3f] =3D 0 >> (XEN) =A0 =A0 l3[3f] not present >> (XEN) Assertion '(sp =3D=3D 0) || (peoi[sp-1].vector < vector)' failed a= t >> irq.c:749 (XEN) ----[ Xen-3.5-unstable =A0x86_64 =A0debug=3Dy =A0Not tai= nted >> ]---- (XEN) CPU: =A0 =A00 >> (XEN) RIP: =A0 =A0e008:[] do_IRQ+0x2c3/0x690 >> (XEN) RFLAGS: 0000000000010046 =A0 CONTEXT: hypervisor >> (XEN) rax: 00000000000000c0 =A0 rbx: ffff83007c080a80 =A0 rcx: >> ffff828c8024c6c0 (XEN) rdx: 0000000000000001 =A0 rsi: 00000000000000c0 >> rdi: 0000000000000001 (XEN) rbp: ffff828c802d7d18 =A0 rsp: >> ffff828c802d7c78 =A0 r8: =A00000000000000002 (XEN) r9: =A00000ffff0000ff= ff >> r10: 00ff00ff00ff00ff =A0 r11: 0f0f0f0f0f0f0f0f (XEN) r12: >> 0000000000000014 =A0 r13: ffff828c802d7d28 =A0 r14: ffff83007c0dac50 >> (XEN) r15: ffff83007c4bcb60 =A0 cr0: 000000008005003b =A0 cr4: >> 00000000000026f0 (XEN) cr3: 000000007aaf9000 =A0 cr2: 0000000000d51550 >> (XEN) ds: 0000 =A0 es: 0000 =A0 fs: 0000 =A0 gs: 0000 =A0 ss: e010 =A0 c= s: e008 >> (XEN) Xen stack trace from rsp=3Dffff828c802d7c78: (XEN) >> 0000000000000004 0000000000000004 ffff8300751311f8 ffff830075131000 >> (XEN) =A0 =A00000000000000014 ffff83007c080ab4 00000014802d7cf8 >> ffff828c8013ad01 (XEN) =A0 =A0000000008011be55 0000000000000000 >> ffff83007c080a80 0000000000000086 (XEN) =A0 =A0ffff828c802d7cf8 >> ffff828c8011be30 ffff83007c4bd108 0000000000000002 (XEN) >> 0000000000000001 ffff828c80168374 ffff828c802d7e00 ffff83007c4bcb60 >> (XEN) =A0 =A000007d737fd282b7 ffff828c8014cb56 ffff83007c4bcb60 >> ffff828c802d7e00 (XEN) =A0 =A0ffff828c80168374 0000000000000001 >> ffff828c802d7df0 0000000000000002 (XEN) =A0 =A00f0f0f0f0f0f0f0f >> 00ff00ff00ff00ff 0000ffff0000ffff 0000000000000002 (XEN) >> 0000000000000000 0000000000000001 ffff828c802ea700 ffff828c8024ca20 >> (XEN) =A0 =A00000000000000008 000000c000000000 ffff828c80164e52 >> 000000000000e008 (XEN) =A0 =A00000000000000246 ffff828c802d7dd0 >> 000000000000e010 ffff828c8024c100 (XEN) =A0 =A00000000000000000 >> ffff828c8016831d ffff83007c4bcb68 ffff828c802d7e20 (XEN) >> ffff828c80168372 0000000000000003 0000000000000002 00000023468c5549 >> (XEN) =A0 =A00000000000000000 ffff828c802d7e50 ffff828c8011dc33 >> 0000000000000002 (XEN) =A0 =A0ffff828c80306a60 00000023468bdaa9 >> ffff828c8024c100 ffff828c802d7ea0 (XEN) =A0 =A0ffff828c8011dd5d >> ffff828c802d7f28 ffff828c8024c100 ffff83007c4bcb60 (XEN) >> 0000000000000000 ffff828c802285a0 ffff828c802d7f28 ffff828c802ea700 >> (XEN) =A0 =A0ffff828c802ec700 ffff828c802d7ee0 ffff828c8011bce1 >> 0000003000000000 (XEN) =A0 =A0ffff828c802d7f28 ffff828c802285a0 >> ffff828c802d7f28 ffff828c8024ca00 (XEN) =A0 =A0ffff828c80228ab8 >> ffff828c802d7f20 ffff828c80148ac5 ffff830078908000 (XEN) Xen call >> trace: (XEN) =A0 =A0[] do_IRQ+0x2c3/0x690 (XEN) >> [] common_interrupt+0x26/0x30 (XEN) >> [] on_selected_cpus+0xdb/0x11f (XEN) >> [] time_calibration+0x55/0x57 (XEN) >> [] execute_timer+0x2e/0x4c (XEN) >> [] timer_softirq_action+0x10c/0x331 (XEN) >> [] do_softirq+0x6f/0x8e (XEN) >> [] idle_loop+0x8f/0x94 (XEN) (XEN) (XEN) >> **************************************** (XEN) Panic on CPU 0: (XEN) >> Assertion '(sp =3D=3D 0) || (peoi[sp-1].vector < vector)' failed at >> irq.c:749 (XEN) **************************************** (XEN) (XEN) >> Reboot in five seconds... >> >> >> In previous versions i have tried it, it caused the whole machine to >> get stuck, with no output, so it looks like now, it's better - i >> finally get a xen panic :) >> >> Can someone please help me with this? >> >> Tom >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel > >