Panic when starting DomU with passthrough
Hi all,
I'm getting panic errors when doing passthrough. The attached log occurs when I start DomU with passthrough on 00:02.0. Anybody else getting this?
Thanks.
-Alex
(XEN) [VT-D]iommu.c:1346:d0 domain_context_unmap:PCI: bdf = 0:2.0
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:1237:d0 domain_context_mapping:PCI: bdf = 0:2.0
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr 7e000000 REASON 2 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = 7e000
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370ea001 (XEN) l3 = ffff8301370ea000 (XEN) l3_index = 1 (XEN) l3[1] = 7d213003 (XEN) l2 = ffff83007d213000 (XEN) l2_index = 1f0 (XEN) l2[1f0] = 0 (XEN) l2[1f0] not present
(XEN) [VT-D]iommu.c:1237:d0 domain_context_mapping:PCI: bdf = 0:2.0
(XEN) [VT-D]io.c:202:d0 VT-d irq bind: m_irq = ff device = 6 intx = 0
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr ffffff000 REASON 5 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = ffffff
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370ea001 (XEN) l3 = ffff8301370ea000 (XEN) l3_index = 3f (XEN) l3[3f] = 0 (XEN) l3[3f] not present
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr ffffff000 REASON 5 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = ffffff
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370ea001 (XEN) l3 = ffff8301370ea000 (XEN) l3_index = 3f (XEN) l3[3f] = 0 (XEN) l3[3f] not present
(XEN) Assertion '(sp == 0) || (peoi[sp-1].vector < vector)' failed at irq.c:322 (XEN) ----[ Xen-3.4-unstable x86_64 debug=y Not tainted ]----
(XEN) CPU: 0
(XEN) RIP: e008:[<ffff828c80147bff>] do_IRQ+0x131/0x456
(XEN) RFLAGS: 0000000000010046 CONTEXT: hypervisor
(XEN) rax: 00000000000000b8 rbx: ffff828c802a3000 rcx: 0000000000000001 (XEN) rdx: ffff828c8022d340 rsi: 0000000000000001 rdi: 00000000000000b8 (XEN) rbp: ffff828c80277f18 rsp: ffff828c80277eb8 r8: ffff880006502000 (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000246 (XEN) r12: ffff828c80277f28 r13: 0000000000000000 r14: ffff83017762bd90 (XEN) r15: 0000000000000000 cr0: 000000008005003b cr4: 00000000000026f0 (XEN) cr3: 000000016f5fd000 cr2: 0000000000818428 (XEN) ds: 002b es: 002b fs: 0000 gs: 0000 ss: 0000 cs: e008 (XEN) Xen stack trace from rsp=ffff828c80277eb8: (XEN) ffff828c80277f28 ffff828c80277f28 ffff828c8028e900 ffff828c802a3024 (XEN) 000000b8000000b8 ffff828c802a3000 00000000000000b8 0000000000000001 (XEN) ffffffff807d0000 0000000000000000 0000000000000000 0000000000000000 (XEN) 00007d737fd880b7 ffff828c801413e6 0000000000000000 0000000000000000 (XEN) 0000000000000000 ffffffff807d0000 ffff880006503f10 0000000000000001 (XEN) 0000000000000246 0000000000000000 0000000000000000 ffff880006502000 (XEN) 0000000000000000 ffffffff8020b2f8 0000000000000001 00000000deadbeef (XEN) 00000000deadbeef 000000b800000000 ffffffff8020b2f8 000000000000e033 (XEN) 0000000000000246 ffff880006503e98 000000000000e02b 0000000000000000 (XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000 (XEN) ffff83007d2fa000
(XEN) Xen call trace:
(XEN) [<ffff828c80147bff>] do_IRQ+0x131/0x456
(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Assertion '(sp == 0) || (peoi[sp-1].vector < vector)' failed at irq.c:322 (XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
(XEN) Resetting with ACPI MEMORY or I/O RESET_REG.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I presume that 00:02.0 is the graphics card you mentioned in your earlier mail? Could you do an lspci on the device in question ('lspci -vv -s 0:2.0'). Is the dumU a PV or a HVM guest? If it is a PV guest, is iommu=pv enabled or not?
Looks like the device is trying to write to 'fffff000' which seems like a bit of an odd address to be accessing.
Anyhow, even if the accesses of the device seem a bit mad it still should not be able to access random xen internal memory. I can't see any good reason why the assertion should be triggered. Could you perhaps apply the patch below to give us some more clue as to what is happening?
Keir, could this assertion possibly be related to the recent IRQ acktype changes?
eSk
--
xen/arch/x86/irq.c Thu Feb 19 12:17:55 2009 +0000 renamed from xen/arch/x86/irq.c Thu Feb 19 11:34:10 2009 +0000 +3 -0
@@ -319,6 +319,9 @@ static void __do_IRQ_guest(int vector) if ( action->ack_type == ACKTYPE_EOI ) { sp = pending_eoi_sp(peoi); + if ( !((sp == 0) || (peoi[sp-1].vector < vector)) ) + printk("sp = %d, peoi[sp-1].vector = %d, vector = %d\n", + sp, peoi[sp-1].vector, vector); ASSERT((sp == 0) || (peoi[sp-1].vector < vector)); ASSERT(sp < (NR_VECTORS-1)); peoi[sp].vector = vector;
[Alexia Benington]
Quoted 4 lines
Hi all,
I'm getting panic errors when doing passthrough. The attached log occurs when I start DomU with passthrough on 00:02.0. Anybody else getting this?
Hi,
If you were referring to the mail "iommu hangs boot", then yes, I'm referring to the integrated Intel gfx, which I managed to get passthrough to work, briefly, before this happened. I never got the ATI gfx to work, although somehow it needs to be present for Dom0 to even boot correctly. But I think these are two different issues.
The lspci output is in "090219.2.log". It's a HVM guest.
This is the output after the patch: sp = 1, peoi[sp-1].vector = 184, vector = 184
The complete log is in "090219.1.log".
Thanks.
-Alex
Quoted 14 lines · Espen Skoglund
I presume that 00:02.0 is the graphics card you mentioned in your earlier mail? Could you do an lspci on the device in question ('lspci -vv -s 0:2.0'). Is the dumU a PV or a HVM guest? If it is a PV guest, is iommu=pv enabled or not?
Looks like the device is trying to write to '
fffff000' which seems like a bit of an odd address to be accessing.Anyhow, even if the accesses of the device seem a bit mad it still should not be able to access random xen internal memory. I can't see any good reason why the assertion should be triggered. Could you perhaps apply the patch below to give us some more clue as to what is happening?
Quoted 5 lines
Keir, could this assertion possibly be related to the recent IRQ acktype changes?
eSk
(XEN) [VT-D]iommu.c:1346:d0 domain_context_unmap:PCI: bdf = 0:2.0
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:1237:d0 domain_context_mapping:PCI: bdf = 0:2.0
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr 7e000000 REASON 2 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = 7e000
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370e6001 (XEN) l3 = ffff8301370e6000 (XEN) l3_index = 1 (XEN) l3[1] = 7d213003 (XEN) l2 = ffff83007d213000 (XEN) l2_index = 1f0 (XEN) l2[1f0] = 0 (XEN) l2[1f0] not present
(XEN) [VT-D]iommu.c:1237:d0 domain_context_mapping:PCI: bdf = 0:2.0
(XEN) [VT-D]io.c:202:d0 VT-d irq bind: m_irq = ff device = 6 intx = 0
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr 7d000000 REASON 5 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = 7d000
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370e6001 (XEN) l3 = ffff8301370e6000 (XEN) l3_index = 1 (XEN) l3[1] = 7d213003 (XEN) l2 = ffff83007d213000 (XEN) l2_index = 1e8 (XEN) l2[1e8] = 0 (XEN) l2[1e8] not present
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr 7d000000 REASON 5 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = 7d000
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370e6001 (XEN) l3 = ffff8301370e6000 (XEN) l3_index = 1 (XEN) l3[1] = 7d213003 (XEN) l2 = ffff83007d213000 (XEN) l2_index = 1e8 (XEN) l2[1e8] = 0 (XEN) l2[1e8] not present
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr 7d000000 REASON 5 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = 7d000
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370e6001 (XEN) l3 = ffff8301370e6000 (XEN) l3_index = 1 (XEN) l3[1] = 7d213003 (XEN) l2 = ffff83007d213000 (XEN) l2_index = 1e8 (XEN) l2[1e8] = 0 (XEN) l2[1e8] not present
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr 7d000000 REASON 5 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = 7d000
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370e6001 (XEN) l3 = ffff8301370e6000 (XEN) l3_index = 1 (XEN) l3[1] = 7d213003 (XEN) l2 = ffff83007d213000 (XEN) l2_index = 1e8 (XEN) l2[1e8] = 0 (XEN) l2[1e8] not present
(XEN) [VT-D]iommu.c:722: iommu_page_fault: iommu->reg = ffff828bfff56000
(XEN) [VT-D]iommu.c:691: iommu_fault_status: Fault Overflow
(XEN) [VT-D]iommu.c:694: iommu_fault_status: Primary Pending Fault
(XEN) [VT-D]iommu.c:676: iommu_fault:DMA Write: 0:2.0 addr 7d000000 REASON 5 iommu->reg = ffff828bfff56000 (XEN) print_vtd_entries: iommu = ffff83017bfba190 bdf = 0:2:0 gmfn = 7d000
(XEN) root_entry = ffff83017bfb8000 (XEN) root_entry[0] = 177642001 (XEN) context = ffff830177642000 (XEN) context[10] = 201_1370e6001 (XEN) l3 = ffff8301370e6000 (XEN) l3_index = 1 (XEN) l3[1] = 7d213003 (XEN) l2 = ffff83007d213000 (XEN) l2_index = 1e8 (XEN) l2[1e8] = 0 (XEN) l2[1e8] not present
(XEN) sp = 1, peoi[sp-1].vector = 184, vector = 184
(XEN) Assertion '(sp == 0) || (peoi[sp-1].vector < vector)' failed at irq.c:325 (XEN) ----[ Xen-3.4-unstable x86_64 debug=y Not tainted ]----
(XEN) CPU: 0
(XEN) RIP: e008:[<ffff828c80147c26>] do_IRQ+0x158/0x47f
(XEN) RFLAGS: 0000000000010046 CONTEXT: hypervisor
(XEN) rax: 00000000000000b8 rbx: ffff828c8022d340 rcx: 0000000000000000 (XEN) rdx: 0000000000000000 rsi: 000000000000000a rdi: ffff828c801f6fec (XEN) rbp: ffff828c80277e68 rsp: ffff828c80277e08 r8: 0000000000000004 (XEN) r9: ffff828c801d85a0 r10: 00000000fffffffa r11: 0000000000000003 (XEN) r12: 0000000000000001 r13: 0000000000000001 r14: ffff83017762be40 (XEN) r15: ffff828c8022d340 cr0: 000000008005003b cr4: 00000000000026f0 (XEN) cr3: 000000016dc14000 cr2: ffff880001003060 (XEN) ds: 0000 es: 0000 fs: 0000 gs: 0000 ss: 0000 cs: e008 (XEN) Xen stack trace from rsp=ffff828c80277e08: (XEN) ffff828c80277e28 ffff828c8011b4bf ffff83017bfba1d0 ffff828c802a3024 (XEN) 000000b8000000b8 ffff828c802a3000 00000000000000b8 ffff83007c0d8000 (XEN) 00000000007f9a70 0000003aacf6de28 065b36c7e59fbcaa 000000000000000d (XEN) 00007d737fd88167 ffff828c801413e6 000000000000000d 065b36c7e59fbcaa (XEN) 0000003aacf6de28 00000000007f9a70 00007d737fd880b7 ffff83007c0d8000 (XEN) 0000000000000003 00000000fffffffa ffff828c801d85a0 ffff828bfff5621c (XEN) 0000000000000000 ffff828c8028e900 0000000000000082 0000000000000082 (XEN) ffff828c802a2024 000000b800000000 ffff828c8011b33f 000000000000e008 (XEN) 0000000000000202 ffff828c80277f20 0000000000000000 ffff828c801cc296 (XEN) 000000000000000d 065b36c7e59fbcaa 0000003aacf6de28 00000000007f9a70 (XEN) 000000000000002e 00000000007fb9e8 0000003aacc73610 0000000000000000 (XEN) 00002ab892c83e30 0000000000007fff 0000003aacf47820 00002ab896099000 (XEN) 00002ab896091fd8 0000000000601380 00002ab896091fd8 0000009800000000 (XEN) 0000003aacc5bb01 000000000000e033 0000000000000246 00007fff1cbeff40 (XEN) 000000000000e02b 0000000000000000 0000000000000000 0000000000000000 (XEN) 0000000000000000 0000000000000000 ffff83007c0d8000 (XEN) Xen call trace: (XEN) [<ffff828c80147c26>] do_IRQ+0x158/0x47f (XEN) [<ffff828c801413e6>] common_interrupt+0x26/0x30 (XEN) [<ffff828c8011b33f>] do_softirq+0x0/0x81
(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Assertion '(sp == 0) || (peoi[sp-1].vector < vector)' failed at irq.c:325 (XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
(XEN) Resetting with ACPI MEMORY or I/O RESET_REG.
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
Subsystem: Intel Corporation Device 1003
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-
Interrupt: pin A routed to IRQ 16
Region 0: Memory at d0400000 (64-bit, non-prefetchable) [disabled] [size=4M]
Region 2: Memory at b0000000 (64-bit, prefetchable) [disabled] [size=256M]
Region 4: I/O ports at d220 [disabled] [size=8]
Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Count=1/1 Enable-
Address: 00000000 Data: 0000
Capabilities: [d0] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: pciback
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi all,
This doesn't seem to be going anywhere. Has anyone encountered this before? Why would it try to write to 7e000000 with Reason 2, followed by 7d000000 with Reason 5? Note that this differs from my first post where it tries to write to fffff000.
What does the numbers represent for the various reasons? Is the interrupt request triggered due to the series of illegal writes?
Thanks and have a good weekend.
-Alex
Quoted 40 lines · Alexia Benington
Hi,
If you were referring to the mail "iommu hangs boot", then yes, I'm referring to the integrated Intel gfx, which I managed to get passthrough to work, briefly, before this happened. I never got the ATI gfx to work, although somehow it needs to be present for Dom0 to even boot correctly. But I think these are two different issues.
The lspci output is in "090219.2.log". It's a HVM guest.
This is the output after the patch: sp = 1, peoi[sp-1].vector = 184, vector = 184
The complete log is in "090219.1.log".Thanks.
-Alex
Quoted 19 lines · Espen Skoglund
I presume that 00:02.0 is the graphics card you mentioned in your earlier mail? Could you do an lspci on the device in question ('lspci -vv -s 0:2.0'). Is the dumU a PV or a HVM guest? If it is a PV guest, is iommu=pv enabled or not?
Looks like the device is trying to write to '
fffff000' which seems like a bit of an odd address to be accessing.Anyhow, even if the accesses of the device seem a bit mad it still should not be able to access random xen internal memory. I can't see any good reason why the assertion should be triggered. Could you perhaps apply the patch below to give us some more clue as to what is happening?
Keir, could this assertion possibly be related to the recent IRQ acktype changes?
eSk
Quoted 7 lines · Alexia Benington
Hi all,
This doesn't seem to be going anywhere. Has anyone encountered this before? Why would it try to write to
7e000000with Reason 2, followed by7d000000with Reason 5? Note that this differs from my first post where it tries to write tofffff000.
Reason 2 means "The Present (P) field in the context-entry used to process the DMA request is Clear." That is to say the context mapping was not done for 00:02.0.
Reason 5 means "The Write (W) field in a page-table entry used for address translation of a write request or AtomicOp request is Clear." That is to say context mapping was done for 00:02.0, but the address was not mapped in VT-d page table.
Current Xen unstable doesn't support graphics assignment. There are many tricks on graphic assignment. Can you try to assign a NIC to guest with VT-d? Let's to say if this issue still exist or not.
Regards,
Weidong
Quoted 53 lines
What does the numbers represent for the various reasons? Is the interrupt request triggered due to the series of illegal writes?
Thanks and have a good weekend.
-Alex
Quoted 13 lines · Alexia Benington
Hi,
If you were referring to the mail "iommu hangs boot", then yes, I'm referring to the integrated Intel gfx, which I managed to get passthrough to work, briefly, before this happened. I never got the ATI gfx to work, although somehow it needs to be present for Dom0 to even boot correctly. But I think these are two different issues.
The lspci output is in "090219.2.log". It's a HVM guest.
This is the output after the patch: sp = 1, peoi[sp-1].vector = 184, vector = 184 The complete log is in "090219.1.log".
Quoted 26 lines
Thanks.
-Alex
Quoted 19 lines · Espen Skoglund
I presume that 00:02.0 is the graphics card you mentioned in your earlier mail? Could you do an lspci on the device in question ('lspci -vv -s 0:2.0'). Is the dumU a PV or a HVM guest? If it is a PV guest, is iommu=pv enabled or not?
Looks like the device is trying to write to '
fffff000' which seems like a bit of an odd address to be accessing.Anyhow, even if the accesses of the device seem a bit mad it still should not be able to access random xen internal memory. I can't see any good reason why the assertion should be triggered. Could you perhaps apply the patch below to give us some more clue as to what is happening?
Keir, could this assertion possibly be related to the recent IRQ acktype changes?
eSk
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel