Skip to contentSkip to conversation

iommu hangs boot

DISCUSSION Alexia Benington 2 participants 2 messages Feb 18, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,

There was a similar thread I started earlier, however as the title didn't correctly reflect the symptoms. I created this after more experiments.

Here's some background. I was able to get graphics passthrough to work on Fedora 10 with Intel DQ45CB and an ATI gfx card inserted. I passed through the integrated Intel gfx instead of ATI. BIOS was set to use Intel gfx.

However, when I took out the ATI gfx, the iommu option seems to cause the boot up to hang, as shown in "090218.1.log". Without iommu=1, bootup seems normal. But of course passthrough won't work. Interestingly, when I closed minicom and start it again, I have the output as shown in "090218.2.log". It doesn't matter whether I'm hiding any PCI devices from Dom0. Setting iommu=1 is sufficient to cause the hang. Why is so?

Does anyone have any idea why the presence of ATI gfx seems to make things work, and removing it causes the hanging?

Thanks and have a good day.

-Alex

__ __ _____ _ _ _ _ _

 \ \/ /___ _ __   |___ /| || |     _   _ _ __  ___| |_ __ _| |__ | | ___ 
  \  // _ \ '_ \    |_ \| || |_ __| | | | '_ \/ __| __/ _` | '_ \| |/ _ \
  /  \  __/ | | |  ___) |__   _|__| |_| | | | \__ \ || (_| | |_) | |  __/
 /_/\_\___|_| |_| |____(_) |_|     \__,_|_| |_|___/\__\__,_|_.__/|_|\___|

(XEN) Xen version 3.4-unstable ([email protected]) (gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) ) Wed Feb 18 05:35:55 EST 2009 (XEN) Latest ChangeSet: Wed Feb 18 08:59:26 2009 +0000 19228:b29a64d04a01
(XEN) Command line: loglvl=all guest_loglvl=all dom0_mem=1G com1=115200,8n1 console=com1 iommu=1
(XEN) Video information:
(XEN) VGA is text mode 80x25, font 8x16
(XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN) Found 1 MBR signatures
(XEN) Found 1 EDD information structures
(XEN) Xen-e820 RAM map:

(XEN)  0000000000000000 - 000000000009fc00 (usable)
(XEN)  000000000009fc00 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 00000000bd6cb000 (usable)
(XEN)  00000000bd6cb000 - 00000000bd70d000 (ACPI NVS)
(XEN)  00000000bd70d000 - 00000000bd82b000 (reserved)
(XEN)  00000000bd82b000 - 00000000bd83f000 (ACPI NVS)
(XEN)  00000000bd83f000 - 00000000bd940000 (reserved)
(XEN)  00000000bd940000 - 00000000bd941000 (ACPI NVS)
(XEN)  00000000bd941000 - 00000000bd946000 (reserved)
(XEN)  00000000bd946000 - 00000000bd94e000 (ACPI data)
(XEN)  00000000bd94e000 - 00000000bd969000 (ACPI NVS)
(XEN)  00000000bd969000 - 00000000bd988000 (reserved)
(XEN)  00000000bd988000 - 00000000bd98e000 (ACPI NVS)
(XEN)  00000000bd98e000 - 00000000bdb00000 (usable)
(XEN)  00000000bdc00000 - 00000000c0000000 (reserved)
(XEN)  00000000fed1c000 - 00000000fed20000 (reserved)
(XEN)  00000000ff000000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 000000013c000000 (usable)

(XEN) System RAM: 3991MB (4087664kB)
(XEN) ACPI: RSDP 000F03C0, 0024 (r2 INTEL)
(XEN) ACPI: XSDT BD94CE18, 005C (r1 INTEL DQ45CB 49 MSFT 10013)
(XEN) ACPI: FACP BD94BD98, 00F4 (r4 INTEL A M I 6222004 MSFT 10013)
(XEN) ACPI: DSDT BD946018, 4EE8 (r1 INTEL DQ45CB 49 INTL 20051117)
(XEN) ACPI: FACS BD954F40, 0040

(XEN) ACPI: APIC BD94BF18, 006C (r2 INTEL  DQ45CB         49 MSFT    10013)
(XEN) ACPI: MCFG BD956E18, 003C (r1 INTEL  DQ45CB         49 MSFT       97)
(XEN) ACPI: ASF! BD955D18, 00A0 (r32 INTEL  DQ45CB         49 TFSM    F4240)
(XEN) ACPI: SPCR BD956D18, 0050 (r1 INTEL  DQ45CB         49 AMI.        3)
(XEN) ACPI: TCPA BD956C98, 0032 (r2 INTEL  DQ45CB         49 MSFT  1000013)
(XEN) ACPI: DMAR BD940C18, 0120 (r1 INTEL  DQ45CB         49 INTL        1)

(XEN) NUMA turned off
(XEN) Faking a node at 0000000000000000-000000013c000000 (XEN) Domain heap initialised
(XEN) DMI 2.4 present.
(XEN) Using APIC driver default
(XEN) ACPI: PM-Timer IO Port: 0x408
(XEN) ACPI: ACPI SLEEP INFO: pm1x_cnt[404,0], pm1x_evt[400,0]
(XEN) ACPI: wakeup_vec[bd954f4c], vec_size[20]
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) (XEN) Processor #0 7:7 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled) (XEN) Processor #1 7:7 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x02] enabled) (XEN) Processor #2 7:7 APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled) (XEN) Processor #3 7:7 APIC version 20
(XEN) ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0]) (XEN) IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23 (XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) (XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) (XEN) ACPI: IRQ0 used by override.
(XEN) ACPI: IRQ2 used by override.
(XEN) ACPI: IRQ9 used by override.
(XEN) Enabling APIC mode: Flat. Using 1 I/O APICs
(XEN) [VT-D]dmar.c:460: Host address width 36
(XEN) [VT-D]dmar.c:469: found ACPI_DMAR_DRHD
(XEN) [VT-D]dmar.c:337: dmaru->address = fed90000
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1b.0 (XEN) [VT-D]dmar.c:469: found ACPI_DMAR_DRHD
(XEN) [VT-D]dmar.c:337: dmaru->address = fed91000
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:2.0
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:2.1
(XEN) [VT-D]dmar.c:469: found ACPI_DMAR_DRHD
(XEN) [VT-D]dmar.c:337: dmaru->address = fed92000
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:3.0
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:3.2
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:3.3
(XEN) [VT-D]dmar.c:469: found ACPI_DMAR_DRHD
(XEN) [VT-D]dmar.c:337: dmaru->address = fed93000
(XEN) [VT-D]dmar.c:346: found INCLUDE_ALL
(XEN) [VT-D]dmar.c:473: found ACPI_DMAR_RMRR
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1d.0 (XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1d.1 (XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1d.2 (XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1d.7 (XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1a.0 (XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1a.1 (XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1a.2 (XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:1a.7 (XEN) [VT-D]dmar.c:473: found ACPI_DMAR_RMRR
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:2.0
(XEN) [VT-D]dmar.c:288: found endpoint: bdf = 0:2.1
(XEN) Intel VT-d has been enabled
(XEN) Using ACPI (MADT) for SMP configuration information (XEN) Using scheduler: SMP Credit Scheduler (credit) (XEN) Initializing CPU#0
(XEN) Detected 2499.742 MHz processor.
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 3072K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 0
(XEN) VMX: Supported advanced features:

(XEN)  - APIC MMIO access virtualisation
(XEN)  - APIC TPR shadow
(XEN)  - Virtual NMI
(XEN)  - MSR direct-access bitmap

(XEN) HVM: VMX enabled
(XEN) MCE: Intel newly family MC Init
(XEN) Intel machine check reporting enabled on CPU#0.
(XEN) CPU0: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU0 has no CMCI support
(XEN) CPU0: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping 07
(XEN) Booting processor 1/1 eip 8c000
(XEN) Initializing CPU#1
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 3072K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 1
(XEN) MCE: Intel newly family MC Init
(XEN) Intel machine check reporting enabled on CPU#1.
(XEN) CPU1: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU1 has no CMCI support
(XEN) CPU1: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping 07
(XEN) Booting processor 2/2 eip 8c000
(XEN) Initializing CPU#2
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 3072K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 2
(XEN) MCE: Intel newly family MC Init
(XEN) Intel machine check reporting enabled on CPU#2.
(XEN) CPU2: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU2 has no CMCI support
(XEN) CPU2: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping 07
(XEN) Booting processor 3/3 eip 8c000
(XEN) Initializing CPU#3
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 3072K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 3
(XEN) MCE: Intel newly family MC Init
(XEN) Intel machine check reporting enabled on CPU#3.
(XEN) CPU3: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU3 has no CMCI support
(XEN) CPU3: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz stepping 07
(XEN) Total of 4 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=-1 pin2=-1 (XEN) checking TSC synchronization across 4 CPUs: passed. (XEN) Platform timer is 3.579MHz ACPI PM Timer
(XEN) microcode.c:73:d32767 microcode: CPU1 resumed
(XEN) microcode.c:73:d32767 microcode: CPU2 resumed
(XEN) Brought up 4 CPUs
(XEN) microcode.c:73:d32767 microcode: CPU3 resumed
(XEN) [VT-D]iommu.c:1691: Queued Invalidation hardware not found (XEN) [VT-D]iommu.c:1691: Queued Invalidation hardware not found (XEN) [VT-D]iommu.c:1691: Queued Invalidation hardware not found (XEN) [VT-D]iommu.c:1691: Queued Invalidation hardware not found (XEN) [VT-D]iommu.c:1699: Interrupt Remapping hardware not found (XEN) [VT-D]iommu.c:1699: Interrupt Remapping hardware not found (XEN) [VT-D]iommu.c:1699: Interrupt Remapping hardware not found (XEN) [VT-D]iommu.c:1699: Interrupt Remapping hardware not found (XEN) Intel VT-d snoop control disabled
(XEN) I/O virtualisation enabled
(XEN) I/O virtualisation for PV guests disabled
(XEN) ACPI sleep modes: S3
(XEN) mcheck_poll: Init_mcheck_timer
(XEN) mcheck_poll: Machine check polling timer started.
(XEN) 'S' pressed -> blowing all shadow tables
(XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:0.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:2.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:2.1 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:3.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:3.2 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:3.3 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:19.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1a.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1a.1 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1a.2 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1a.7 (XEN) [VT-D]iommu.c:1230:d32767 domain_context_mapping:PCIe: bdf = 0:1b.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1d.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1d.1 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1d.2 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1d.7 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1f.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1f.2 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1f.3 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 0:1f.5 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 1:0.0 (XEN) [VT-D]iommu.c:1237:d32767 domain_context_mapping:PCI: bdf = 1:1.0

(XEN) 'S' pressed -> blowing all shadow tables
(XEN)
(XEN) iommu 0: nr_pt_levels = 3.
(XEN) Queued Invalidation: not supported.
(XEN) Interrupt Remapping: not supported.
(XEN)
(XEN) iommu 1: nr_pt_levels = 3.
(XEN) Queued Invalidation: not supported.
(XEN) Interrupt Remapping: not supported.
(XEN)
(XEN) iommu 2: nr_pt_levels = 3.
(XEN) Queued Invalidation: not supported.
(XEN) Interrupt Remapping: not supported.
(XEN)
(XEN) iommu 3: nr_pt_levels = 3.
(XEN) Queued Invalidation: not supported.
(XEN) Interrupt Remapping: not supported.
(XEN) ==== PCI devices ====

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 19 lines · Alexia Benington

Hi all,

There was a similar thread I started earlier, however as the title didn't correctly reflect the symptoms. I created this after more experiments.

Here's some background. I was able to get graphics passthrough to work on Fedora 10 with Intel DQ45CB and an ATI gfx card inserted. I passed through the integrated Intel gfx instead of ATI. BIOS was set to use Intel gfx.

However, when I took out the ATI gfx, the iommu option seems to cause the boot up to hang, as shown in "090218.1.log". Without iommu=1, bootup seems normal. But of course passthrough won't work. Interestingly, when I closed minicom and start it again, I have the output as shown in "090218.2.log". It doesn't matter whether I'm hiding any PCI devices from Dom0. Setting iommu=1 is sufficient to cause the hang. Why is so?

Quoted 2 lines

Does anyone have any idea why the presence of ATI gfx seems to make things work, and removing it causes the hanging?

This smells a lot like fall-out from 19175 to me. Unfortunately I don't have any ideas of fixes at this time.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en