AMD IOMMU disabled - No Perdev Intremap
Hi!
Quoted 1 line
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
However, even when passing "iommu=no-amd-iommu-perdev-intremap" it still disables i/o virtualisatoin. Related Xen dmesg output:
(XEN) IVHD Error: Invalid IO-APIC 0
(XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
Is there _any_ way I can fix this to make IOMMU work again? Updating my BIOS had no effect.
I'm using Xen 4.4 unstable from the official git. Any help is greatly appreciated.
kind regards,
F. Nölscher
Quoted 5 lines · you
Hi!
Quoted 1 line
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
Quoted 9 lines
However, even when passing "iommu=no-amd-iommu-perdev-intremap" it still disables i/o virtualisatoin. Related Xen dmesg output:
(XEN) IVHD Error: Invalid IO-APIC 0
(XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabledIs there _any_ way I can fix this to make IOMMU work again? Updating my BIOS had no effect.
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter:
(add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
--
Sander
Quoted 5 lines
I'm using Xen 4.4 unstable from the official git. Any help is greatly appreciated.
kind regards,
F. Nölscher
Hi Sander,
Thanks for your reply.
Quoted 11 lines · Sander Eikelenboom
Quoted 6 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 10 lines
Quoted 9 lines
However, even when passing "iommu=no-amd-iommu-perdev-intremap" it still disables i/o virtualisatoin. Related Xen dmesg output:
(XEN) IVHD Error: Invalid IO-APIC 0 (XEN) AMD-Vi: Error initialization (XEN) I/O virtualisation disabled
Is there _any_ way I can fix this to make IOMMU work again? Updating my BIOS had no effect.
Quoted 8 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Quoted 18 lines
-- Sander
Quoted 4 lines
I'm using Xen 4.4 unstable from the official git. Any help is greatly appreciated.
kind regards, F. Nölscher
_______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Quoted 19 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 8 lines · Sander Eikelenboom
Quoted 5 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 3 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
Quoted 6 lines
Quoted 5 lines
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Quoted 22 lines · Andrew Cooper
Quoted 21 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 8 lines · Sander Eikelenboom
Quoted 5 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 5 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
Quoted 10 lines
Quoted 4 lines
Quoted 3 lines
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Hi Andrew,
This is what I got:
(XEN) Latest ChangeSet: Fri Oct 4 12:58:20 2013 +0200 git:8e0da8c-dirty (XEN) Bootloader: GRUB 1.99-27+deb7u1
(XEN) Command line: placeholder dom0_mem=3096M iommu=debug,verbose (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 4 MBR signatures
(XEN) Found 4 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN) 0000000000000000 - 000000000009d800 (usable) (XEN) 000000000009d800 - 00000000000a0000 (reserved) (XEN) 00000000000e0000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 000000009d81c000 (usable) (XEN) 000000009d81c000 - 000000009d86f000 (ACPI NVS) (XEN) 000000009d86f000 - 000000009d87a000 (ACPI data) (XEN) 000000009d87a000 - 000000009d87b000 (ACPI NVS) (XEN) 000000009d87b000 - 000000009daca000 (reserved) (XEN) 000000009daca000 - 000000009dadb000 (ACPI NVS) (XEN) 000000009dadb000 - 000000009daf0000 (reserved) (XEN) 000000009daf0000 - 000000009daf9000 (usable) (XEN) 000000009daf9000 - 000000009dafb000 (ACPI NVS) (XEN) 000000009dafb000 - 000000009db04000 (reserved)
(XEN) 000000009db04000 - 000000009db0a000 (ACPI NVS)
(XEN) 000000009db0a000 - 000000009db6c000 (reserved)
(XEN) 000000009db6c000 - 000000009dd6f000 (ACPI NVS)
(XEN) 000000009dd6f000 - 000000009df00000 (usable)
(XEN) 00000000f8000000 - 00000000fc000000 (reserved)
(XEN) 00000000fec00000 - 00000000fec01000 (reserved)
(XEN) 00000000fec10000 - 00000000fec11000 (reserved)
(XEN) 00000000fec20000 - 00000000fec21000 (reserved)
(XEN) 00000000fed00000 - 00000000fed01000 (reserved)
(XEN) 00000000fed61000 - 00000000fed71000 (reserved)
(XEN) 00000000fed80000 - 00000000fed90000 (reserved)
(XEN) 00000000fef00000 - 0000000100000000 (reserved)
(XEN) 0000000100001000 - 000000025f000000 (usable)
(XEN) ACPI: RSDP 000F0450, 0024 (r2 ALASKA)
(XEN) ACPI: XSDT 9D86F070, 0054 (r1 ALASKA A M I 1072009 AMI
10013)
(XEN) ACPI: FACP 9D877D18, 00F4 (r4 ALASKA A M I 1072009 AMI
10013)
(XEN) ACPI Warning (tbfadt-0464): Optional field "Pm2ControlBlock" has zero address or length: 0000000000000000/1 [20070126]
(XEN) ACPI: DSDT 9D86F158, 8BBC (r2 ALASKA A M I 0 INTL
20051117)
(XEN) ACPI: FACS 9DB04F80, 0040
(XEN) ACPI: APIC 9D877E10, 009E (r3 ALASKA A M I 1072009 AMI
10013)
(XEN) ACPI: MCFG 9D877EB0, 003C (r1 ALASKA A M I 1072009 MSFT
10013)
(XEN) ACPI: HPET 9D877EF0, 0038 (r1 ALASKA A M I 1072009 AMI
4)
(XEN) ACPI: SSDT 9D878058, 1714 (r1 AMD POWERNOW 1 AMD
1)
(XEN) ACPI: IVRS 9D877F80, 00D8 (r1 AMD RD890S 202031 AMD
0)
(XEN) System RAM: 8137MB (8332616kB)
(XEN) No NUMA configuration found
(XEN) Faking a node at 0000000000000000-000000025f000000
(XEN) Domain heap initialised
(XEN) DMI 2.7 present.
(XEN) Using APIC driver default
(XEN) ACPI: PM-Timer IO Port: 0x808
(XEN) ACPI: SLEEP INFO: pm1x_cnt[804,0], pm1x_evt[800,0]
(XEN) ACPI: 32/64X FACS address mismatch in FADT - 9db04f80/0000000000000000, using 32
(XEN) ACPI: wakeup_vec[9db04f8c], vec_size[20]
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x10] enabled) (XEN) Processor #16 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x11] enabled) (XEN) Processor #17 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x12] enabled) (XEN) Processor #18 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x13] enabled) (XEN) Processor #19 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x05] lapic_id[0x14] enabled) (XEN) Processor #20 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x06] lapic_id[0x15] enabled) (XEN) Processor #21 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x07] lapic_id[0x16] enabled) (XEN) Processor #22 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x08] lapic_id[0x17] enabled) (XEN) Processor #23 5:1 APIC version 16
(XEN) ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1]) (XEN) ACPI: IOAPIC (id[0x09] address[0xfec00000] gsi_base[0]) (XEN) IOAPIC[0]: apic_id 9, version 33, address 0xfec00000, GSI 0-23 (XEN) ACPI: IOAPIC (id[0x0a] address[0xfec20000] gsi_base[24]) (XEN) IOAPIC[1]: apic_id 10, version 33, address 0xfec20000, GSI 24-55 (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 low 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 2 I/O APICs
(XEN) ACPI: HPET id: 0x43538210 base: 0xfed00000
(XEN) ERST table was not found
(XEN) Using ACPI (MADT) for SMP configuration information (XEN) SMP: Allowing 8 CPUs (0 hotplug CPUs)
(XEN) IRQ limits: 56 GSI, 1496 MSI/MSI-X
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 3110.525 MHz processor.
(XEN) Initing memory sharing.
(XEN) xstate_init: using cntxt_size: 0x3c0 and states: 0x4000000000000007 (XEN) AMD Fam15h machine check reporting enabled
(XEN) PCI: MCFG configuration 0: base e0000000 segment 0000 buses 00 - ff (XEN) PCI: Not using MCFG for segment 0000 bus 00-ff
(XEN) AMD-Vi: Found MSI capability block at 0x54
(XEN) AMD-Vi: ACPI Table:
(XEN) AMD-Vi: Signature IVRS (XEN) AMD-Vi: Length 0xd8 (XEN) AMD-Vi: Revision 0x1 (XEN) AMD-Vi: CheckSum 0x22 (XEN) AMD-Vi: OEM_Id AMD (XEN) AMD-Vi: OEM_Table_Id RD890S (XEN) AMD-Vi: OEM_Revision 0x202031 (XEN) AMD-Vi: Creator_Id AMD (XEN) AMD-Vi: Creator_Revision 0
(XEN) AMD-Vi: IVRS Block: type 0x10 flags 0x3e len 0xa8 id 0x2 (XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0 -> 0x2
(XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x10 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0x100 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0x100 -> 0x101
(XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x20 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x200 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x28 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x300 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x30 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x400 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x38 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x500 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x50 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x600 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x88 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0x90 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0x90 -> 0x92
(XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0x98 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0x98 -> 0x9a
(XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa0 flags 0xd7 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa2 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa3 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa4 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x43 id 0x700 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0x700 -> 0x7ff alias 0xa4 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa5 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0xb0 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0xb0 -> 0xb2
(XEN) AMD-Vi: IVHD Device Entry: type 0x48 id 0 flags 0xd7 (XEN) AMD-Vi: IVHD Special: 0000:00:14.0 variety 0x1 handle 0 (XEN) IVHD Error: Invalid IO-APIC 0
(XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=-1 pin2=-1 (XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 64 KiB.
(XEN) HVM: ASIDs enabled.
(XEN) SVM: Supported advanced features:
(XEN) - Nested Page Tables (NPT) (XEN) - Last Branch Record (LBR) Virtualisation (XEN) - Next-RIP Saved on #VMEXIT (XEN) - VMCB Clean Bits (XEN) - DecodeAssists (XEN) - Pause-Intercept Filter (XEN) - TSC Rate MSR
(XEN) HVM: SVM enabled
(XEN) HVM: Hardware Assisted Paging (HAP) detected (XEN) HVM: HAP page sizes: 4kB, 2MB, 1GB
(XEN) microcode: CPU1 collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU2 collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU3 collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU4 collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU5 collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU6 collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU7 collect_cpu_info: patch_id=0x6000629 (XEN) Brought up 8 CPUs
(XEN) ACPI sleep modes: S3
(XEN) MCA: Use hw thresholding to adjust polling frequency (XEN) mcheck_poll: Machine check polling timer started. (XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_parse_binary: phdr: paddr=0x1000000 memsz=0x585000 (XEN) elf_parse_binary: phdr: paddr=0x1600000 memsz=0x9d0f0 (XEN) elf_parse_binary: phdr: paddr=0x169e000 memsz=0x14bc0 (XEN) elf_parse_binary: phdr: paddr=0x16b3000 memsz=0x5dd000 (XEN) elf_parse_binary: memory: 0x1000000 -> 0x1c90000 (XEN) elf_xen_parse_note: GUEST_OS = "linux"
(XEN) elf_xen_parse_note: GUEST_VERSION = "2.6" (XEN) elf_xen_parse_note: XEN_VERSION = "xen-3.0" (XEN) elf_xen_parse_note: VIRT_BASE = 0xffffffff80000000 (XEN) elf_xen_parse_note: ENTRY = 0xffffffff816b31e0 (XEN) elf_xen_parse_note: HYPERCALL_PAGE = 0xffffffff81001000 (XEN) elf_xen_parse_note: FEATURES = "!writable_page_tables|pae_pgdir_above_4gb"
(XEN) elf_xen_parse_note: PAE_MODE = "yes"
(XEN) elf_xen_parse_note: LOADER = "generic"
(XEN) elf_xen_parse_note: unknown xen elf note (0xd) (XEN) elf_xen_parse_note: SUSPEND_CANCEL = 0x1 (XEN) elf_xen_parse_note: HV_START_LOW = 0xffff800000000000 (XEN) elf_xen_parse_note: PADDR_OFFSET = 0x0
(XEN) elf_xen_addr_calc_check: addresses:
(XEN) virt_base = 0xffffffff80000000 (XEN) elf_paddr_offset = 0x0 (XEN) virt_offset = 0xffffffff80000000 (XEN) virt_kstart = 0xffffffff81000000 (XEN) virt_kend = 0xffffffff81c90000 (XEN) virt_entry = 0xffffffff816b31e0 (XEN) p2m_base = 0xffffffffffffffff
(XEN) Xen kernel: 64-bit, lsb, compat32
(XEN) Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x1c90000 (XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 0000000250000000->0000000254000000 (767107 pages
to be allocated)
(XEN) Init. ramdisk: 000000025cc83000->000000025f000000 (XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: ffffffff81000000->ffffffff81c90000 (XEN) Init. ramdisk: ffffffff81c90000->ffffffff8400d000 (XEN) Phys-Mach map: ffffffff8400d000->ffffffff84619000 (XEN) Start info: ffffffff84619000->ffffffff846194b4 (XEN) Page tables: ffffffff8461a000->ffffffff84641000 (XEN) Boot stack: ffffffff84641000->ffffffff84642000 (XEN) TOTAL: ffffffff80000000->ffffffff84800000 (XEN) ENTRY ADDRESS: ffffffff816b31e0
(XEN) Dom0 has maximum 8 VCPUs
(XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 -> 0xffffffff81585000 (XEN) elf_load_binary: phdr 1 at 0xffffffff81600000 -> 0xffffffff8169d0f0 (XEN) elf_load_binary: phdr 2 at 0xffffffff8169e000 -> 0xffffffff816b2bc0 (XEN) elf_load_binary: phdr 3 at 0xffffffff816b3000 -> 0xffffffff81788000 (XEN) Scrubbing Free RAM:
................................................done.
(XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 268kB init memory.
(XEN) traps.c:2510:d0 Domain attempted WRMSR 00000000c0010201 from 0x0000000000000000 to 0x000000000000ffff.
(XEN) PCI add device 0000:00:00.0
(XEN) PCI add device 0000:00:00.2
(XEN) PCI add device 0000:00:02.0
(XEN) PCI add device 0000:00:04.0
(XEN) PCI add device 0000:00:05.0
(XEN) PCI add device 0000:00:06.0
(XEN) PCI add device 0000:00:07.0
(XEN) PCI add device 0000:00:0a.0
(XEN) PCI add device 0000:00:11.0
(XEN) PCI add device 0000:00:12.0
(XEN) PCI add device 0000:00:12.2
(XEN) PCI add device 0000:00:13.0
(XEN) PCI add device 0000:00:13.2
(XEN) PCI add device 0000:00:14.0
(XEN) PCI add device 0000:00:14.2
(XEN) PCI add device 0000:00:14.3
(XEN) PCI add device 0000:00:14.4
(XEN) PCI add device 0000:00:14.5
(XEN) PCI add device 0000:00:16.0
(XEN) PCI add device 0000:00:16.2
(XEN) PCI add device 0000:00:18.0
(XEN) PCI add device 0000:00:18.1
(XEN) PCI add device 0000:00:18.2
(XEN) PCI add device 0000:00:18.3
(XEN) PCI add device 0000:00:18.4
(XEN) PCI add device 0000:00:18.5
(XEN) PCI add device 0000:01:00.0
(XEN) PCI add device 0000:01:00.1
(XEN) PCI add device 0000:02:00.0
(XEN) PCI add device 0000:03:00.0
(XEN) PCI add device 0000:04:00.0
(XEN) PCI add device 0000:05:00.0
(XEN) PCI add device 0000:06:00.0
(XEN) PCI add device 0000:07:06.0
Quoted 25 lines · you
Quoted 24 lines · Andrew Cooper
Quoted 23 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 8 lines · Sander Eikelenboom
Quoted 5 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 7 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Quoted 1 line
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
--
Sander
Quoted 175 lines
Hi Andrew,
This is what I got:(XEN) Latest ChangeSet: Fri Oct 4 12:58:20 2013 +0200 git:8e0da8c-dirty (XEN) Bootloader: GRUB 1.99-27+deb7u1
(XEN) Command line: placeholder dom0_mem=3096M iommu=debug,verbose (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 4 MBR signatures
(XEN) Found 4 EDD information structures
(XEN) Xen-e820 RAM map:(XEN) 0000000000000000 - 000000000009d800 (usable) (XEN) 000000000009d800 - 00000000000a0000 (reserved) (XEN) 00000000000e0000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 000000009d81c000 (usable) (XEN) 000000009d81c000 - 000000009d86f000 (ACPI NVS) (XEN) 000000009d86f000 - 000000009d87a000 (ACPI data) (XEN) 000000009d87a000 - 000000009d87b000 (ACPI NVS) (XEN) 000000009d87b000 - 000000009daca000 (reserved) (XEN) 000000009daca000 - 000000009dadb000 (ACPI NVS) (XEN) 000000009dadb000 - 000000009daf0000 (reserved) (XEN) 000000009daf0000 - 000000009daf9000 (usable) (XEN) 000000009daf9000 - 000000009dafb000 (ACPI NVS) (XEN) 000000009dafb000 - 000000009db04000 (reserved)(XEN)
000000009db04000-000000009db0a000(ACPI NVS)(XEN)
000000009db0a000-000000009db6c000(reserved)(XEN)
000000009db6c000-000000009dd6f000(ACPI NVS)(XEN)
000000009dd6f000-000000009df00000(usable)(XEN)
00000000f8000000-00000000fc000000(reserved)(XEN)
00000000fec00000-00000000fec01000(reserved)(XEN)
00000000fec10000-00000000fec11000(reserved)(XEN)
00000000fec20000-00000000fec21000(reserved)(XEN)
00000000fed00000-00000000fed01000(reserved)(XEN)
00000000fed61000-00000000fed71000(reserved)(XEN)
00000000fed80000-00000000fed90000(reserved)(XEN)
00000000fef00000- 0000000100000000 (reserved)(XEN) 0000000100001000 -
000000025f000000(usable)(XEN) ACPI: RSDP 000F0450, 0024 (r2 ALASKA)
(XEN) ACPI: XSDT 9D86F070, 0054 (r1 ALASKA A M I 1072009 AMI
10013)
(XEN) ACPI: FACP 9D877D18, 00F4 (r4 ALASKA A M I 1072009 AMI
10013)
(XEN) ACPI Warning (tbfadt-0464): Optional field "Pm2ControlBlock" has zero address or length: 0000000000000000/1 [20070126](XEN) ACPI: DSDT 9D86F158, 8BBC (r2 ALASKA A M I 0 INTL
20051117)
(XEN) ACPI: FACS 9DB04F80, 0040(XEN) ACPI: APIC 9D877E10, 009E (r3 ALASKA A M I 1072009 AMI
10013)
(XEN) ACPI: MCFG 9D877EB0, 003C (r1 ALASKA A M I 1072009 MSFT
10013)
(XEN) ACPI: HPET 9D877EF0, 0038 (r1 ALASKA A M I 1072009 AMI
4)
(XEN) ACPI: SSDT 9D878058, 1714 (r1 AMD POWERNOW 1 AMD
1)
(XEN) ACPI: IVRS 9D877F80, 00D8 (r1 AMD RD890S 202031 AMD
0)
(XEN) System RAM: 8137MB (8332616kB)(XEN) No NUMA configuration found
(XEN) Faking a node at 0000000000000000-000000025f000000
(XEN) Domain heap initialised
(XEN) DMI 2.7 present.
(XEN) Using APIC driver default
(XEN) ACPI: PM-Timer IO Port:
0x808(XEN) ACPI: SLEEP INFO: pm1x_cnt[804,0], pm1x_evt[800,0]
(XEN) ACPI: 32/64X FACS address mismatch in FADT - 9db04f80/0000000000000000, using 32
(XEN) ACPI: wakeup_vec[9db04f8c], vec_size[20]
(XEN) ACPI: Local APIC address0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x10] enabled) (XEN) Processor #16 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x11] enabled) (XEN) Processor #17 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x12] enabled) (XEN) Processor #18 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x13] enabled) (XEN) Processor #19 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x05] lapic_id[0x14] enabled) (XEN) Processor #20 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x06] lapic_id[0x15] enabled) (XEN) Processor #21 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x07] lapic_id[0x16] enabled) (XEN) Processor #22 5:1 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x08] lapic_id[0x17] enabled) (XEN) Processor #23 5:1 APIC version 16
(XEN) ACPI:LAPIC_NMI(acpi_id[0xff] high edge lint[0x1]) (XEN) ACPI: IOAPIC (id[0x09] address[0xfec00000] gsi_base[0]) (XEN) IOAPIC[0]:apic_id9, version 33, address0xfec00000, GSI 0-23 (XEN) ACPI: IOAPIC (id[0x0a] address[0xfec20000] gsi_base[24]) (XEN) IOAPIC[1]:apic_id10, version 33, address0xfec20000, GSI 24-55 (XEN) ACPI:INT_SRC_OVR(bus 0bus_irq0global_irq2 dfl dfl) (XEN) ACPI:INT_SRC_OVR(bus 0bus_irq9global_irq9 low 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 2 I/O APICs
(XEN) ACPI: HPET id:0x43538210base:0xfed00000
(XEN) ERST table was not found
(XEN) Using ACPI (MADT) for SMP configuration information (XEN) SMP: Allowing 8 CPUs (0 hotplug CPUs)
(XEN) IRQ limits: 56 GSI, 1496 MSI/MSI-X
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 3110.525 MHz processor.
(XEN) Initing memory sharing.
(XEN)xstate_init: usingcntxt_size:0x3c0and states:0x4000000000000007(XEN) AMD Fam15h machine check reporting enabled
(XEN) PCI: MCFG configuration 0: basee0000000segment 0000 buses 00 - ff (XEN) PCI: Not using MCFG for segment 0000 bus 00-ff
(XEN) AMD-Vi: Found MSI capability block at0x54
(XEN) AMD-Vi: ACPI Table:(XEN) AMD-Vi: Signature IVRS (XEN) AMD-Vi: Length 0xd8 (XEN) AMD-Vi: Revision 0x1 (XEN) AMD-Vi: CheckSum 0x22 (XEN) AMD-Vi: OEM_Id AMD (XEN) AMD-Vi: OEM_Table_Id RD890S (XEN) AMD-Vi: OEM_Revision 0x202031 (XEN) AMD-Vi: Creator_Id AMD (XEN) AMD-Vi: Creator_Revision 0(XEN) AMD-Vi: IVRS Block: type
0x10flags0x3elen0xa8id0x2(XEN) AMD-Vi: IVHD Device Entry: type0x3id 0 flags 0 (XEN) AMD-Vi:Dev_IdRange: 0 ->0x2
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x10flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x100flags 0 (XEN) AMD-Vi:Dev_IdRange:0x100->0x101
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x20flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x200flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x28flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x300flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x30flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x400flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x38flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x500flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x50flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x600flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x88flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x90flags 0 (XEN) AMD-Vi:Dev_IdRange:0x90->0x92
(XEN) AMD-Vi: IVHD Device Entry: type0x3id0x98flags 0 (XEN) AMD-Vi:Dev_IdRange:0x98->0x9a
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa0flags0xd7(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa2flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa3flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa4flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x43id0x700flags 0 (XEN) AMD-Vi:Dev_IdRange:0x700->0x7ffalias0xa4(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa5flags 0
Quoted 8 lines
(XEN) AMD-Vi: IVHD Device Entry: type
0x3id0xb0flags 0 (XEN) AMD-Vi:Dev_IdRange:0xb0->0xb2
(XEN) AMD-Vi: IVHD Device Entry: type0x48id 0 flags0xd7(XEN) AMD-Vi: IVHD Special: 0000:00:14.0 variety0x1handle 0 (XEN) IVHD Error: Invalid IO-APIC 0
(XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
(XEN) ENABLING IO-APIC IRQs
(XEN) ->> Using new ACK method
Quoted 119 lines
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=-1 pin2=-1 (XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 64 KiB.
(XEN) HVM: ASIDs enabled.
(XEN) SVM: Supported advanced features:(XEN) - Nested Page Tables (NPT) (XEN) - Last Branch Record (LBR) Virtualisation (XEN) - Next-RIP Saved on #VMEXIT (XEN) - VMCB Clean Bits (XEN) - DecodeAssists (XEN) - Pause-Intercept Filter (XEN) - TSC Rate MSR(XEN) HVM: SVM enabled
(XEN) HVM: Hardware Assisted Paging (HAP) detected (XEN) HVM: HAP page sizes: 4kB, 2MB, 1GB
(XEN) microcode: CPU1collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU2collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU3collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU4collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU5collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU6collect_cpu_info: patch_id=0x6000629 (XEN) microcode: CPU7collect_cpu_info: patch_id=0x6000629 (XEN) Brought up 8 CPUs
(XEN) ACPI sleep modes: S3
(XEN) MCA: Use hw thresholding to adjust polling frequency (XEN)mcheck_poll: Machine check polling timer started. (XEN) *** LOADING DOMAIN 0 ***
(XEN)elf_parse_binary: phdr: paddr=0x1000000 memsz=0x585000 (XEN)elf_parse_binary: phdr: paddr=0x1600000 memsz=0x9d0f0 (XEN)elf_parse_binary: phdr: paddr=0x169e000 memsz=0x14bc0 (XEN)elf_parse_binary: phdr: paddr=0x16b3000 memsz=0x5dd000 (XEN)elf_parse_binary: memory:0x1000000->0x1c90000(XEN)elf_xen_parse_note:GUEST_OS= "linux"
(XEN)elf_xen_parse_note:GUEST_VERSION= "2.6" (XEN)elf_xen_parse_note:XEN_VERSION= "xen-3.0" (XEN)elf_xen_parse_note:VIRT_BASE=0xffffffff80000000(XEN)elf_xen_parse_note: ENTRY =0xffffffff816b31e0(XEN)elf_xen_parse_note:HYPERCALL_PAGE=0xffffffff81001000(XEN)elf_xen_parse_note: FEATURES = "!writable_page_tables|pae_pgdir_above_4gb"
(XEN)elf_xen_parse_note:PAE_MODE= "yes"
(XEN)elf_xen_parse_note: LOADER = "generic"
(XEN)elf_xen_parse_note: unknown xen elf note (0xd) (XEN)elf_xen_parse_note:SUSPEND_CANCEL=0x1(XEN)elf_xen_parse_note:HV_START_LOW=0xffff800000000000(XEN)elf_xen_parse_note:PADDR_OFFSET=0x0
(XEN)elf_xen_addr_calc_check: addresses:(XEN) virt_base = 0xffffffff80000000 (XEN) elf_paddr_offset = 0x0 (XEN) virt_offset = 0xffffffff80000000 (XEN) virt_kstart = 0xffffffff81000000 (XEN) virt_kend = 0xffffffff81c90000 (XEN) virt_entry = 0xffffffff816b31e0 (XEN) p2m_base = 0xffffffffffffffff(XEN) Xen kernel: 64-bit, lsb, compat32
(XEN) Dom0 kernel: 64-bit, PAE, lsb, paddr0x1000000->0x1c90000(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 0000000250000000->0000000254000000 (767107 pages
to be allocated)
(XEN) Init. ramdisk: 000000025cc83000->000000025f000000 (XEN) VIRTUAL MEMORY ARRANGEMENT:(XEN) Loaded kernel: ffffffff81000000->ffffffff81c90000 (XEN) Init. ramdisk: ffffffff81c90000->ffffffff8400d000 (XEN) Phys-Mach map: ffffffff8400d000->ffffffff84619000 (XEN) Start info: ffffffff84619000->ffffffff846194b4 (XEN) Page tables: ffffffff8461a000->ffffffff84641000 (XEN) Boot stack: ffffffff84641000->ffffffff84642000 (XEN) TOTAL: ffffffff80000000->ffffffff84800000 (XEN) ENTRY ADDRESS: ffffffff816b31e0(XEN) Dom0 has maximum 8 VCPUs
(XEN)elf_load_binary: phdr 0 at0xffffffff81000000->0xffffffff81585000(XEN)elf_load_binary: phdr 1 at0xffffffff81600000->0xffffffff8169d0f0(XEN)elf_load_binary: phdr 2 at0xffffffff8169e000->0xffffffff816b2bc0(XEN)elf_load_binary: phdr 3 at0xffffffff816b3000->0xffffffff81788000(XEN) Scrubbing Free RAM:
................................................done.
(XEN) Initial low memory virq threshold set at0x4000pages. (XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 268kB init memory.
(XEN) traps.c:2510:d0 Domain attempted WRMSR00000000c0010201from0x0000000000000000to0x000000000000ffff.
(XEN) PCI add device 0000:00:00.0
(XEN) PCI add device 0000:00:00.2
(XEN) PCI add device 0000:00:02.0
(XEN) PCI add device 0000:00:04.0
(XEN) PCI add device 0000:00:05.0
(XEN) PCI add device 0000:00:06.0
(XEN) PCI add device 0000:00:07.0
(XEN) PCI add device 0000:00:0a.0
(XEN) PCI add device 0000:00:11.0
(XEN) PCI add device 0000:00:12.0
(XEN) PCI add device 0000:00:12.2
(XEN) PCI add device 0000:00:13.0
(XEN) PCI add device 0000:00:13.2
(XEN) PCI add device 0000:00:14.0
(XEN) PCI add device 0000:00:14.2
(XEN) PCI add device 0000:00:14.3
(XEN) PCI add device 0000:00:14.4
(XEN) PCI add device 0000:00:14.5
(XEN) PCI add device 0000:00:16.0
(XEN) PCI add device 0000:00:16.2
(XEN) PCI add device 0000:00:18.0
(XEN) PCI add device 0000:00:18.1
(XEN) PCI add device 0000:00:18.2
(XEN) PCI add device 0000:00:18.3
(XEN) PCI add device 0000:00:18.4
(XEN) PCI add device 0000:00:18.5
(XEN) PCI add device 0000:01:00.0
(XEN) PCI add device 0000:01:00.1
(XEN) PCI add device 0000:02:00.0
(XEN) PCI add device 0000:03:00.0
(XEN) PCI add device 0000:04:00.0
(XEN) PCI add device 0000:05:00.0
(XEN) PCI add device 0000:06:00.0
(XEN) PCI add device 0000:07:06.0
Quoted 34 lines · Sander Eikelenboom
Quoted 25 lines · you
Quoted 24 lines · Andrew Cooper
Quoted 23 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 8 lines · Sander Eikelenboom
Quoted 5 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 7 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 1 line
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Quoted 10 lines
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
--
Sander
parse_ivrs_ioapic uses simple_strtoul(..., 0), so decimal or 0xa is fine, but 'a' on its own wont be.
Seeing as I clearly don't understand how this fix is working, do you mind explaining (as you seem to have worked out the problem) ?
~Andrew
Quoted 46 lines · you
Quoted 34 lines · Sander Eikelenboom
Quoted 25 lines · you
Quoted 24 lines · Andrew Cooper
Quoted 23 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 8 lines · Sander Eikelenboom
Quoted 5 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 7 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 1 line
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Quoted 10 lines
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
--
Sander
Quoted 5 lines
parse_ivrs_ioapicusessimple_strtoul(..., 0), so decimal or0xais fine, but 'a' on its own wont be.Seeing as I clearly don't understand how this fix is working, do you mind explaining (as you seem to have worked out the problem) ?
Bios provided tables are a mess .. regarding to iommu's it seems to be a double mess.
And motherboard manufacturers seem to be quite incapable to provide sane tables for years now, and it doesn't have any kind of priority. (ok that little rant is out :-p )
But on (current / consumer) AMD systems, the mapping always seems to be the same ioapic northbridge to 00:00.1 and southbridge to 00:14.0. So if you know the ioapic handle's from the xl dmesg output, you can easily determine the needed override.
It's perhaps a bit unfortunate that the error without iommu=debug,verbose doesn't show the handle but only the id:
(XEN) IVHD Error: Invalid IO-APIC 0
(XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
And it should probably be something for the next document day to have some documentation for it on the iommu part of the xen-wiki.
--
Sander
Quoted 1 line
~Andrew
Quoted 40 lines · Sander Eikelenboom
Quoted 28 lines · you
Quoted 27 lines · Andrew Cooper
Quoted 26 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 9 lines · Sander Eikelenboom
Quoted 6 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 9 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Quoted 9 lines
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
-- Sander
Booting with this parameters I can see "I/O Virtualisation Enabled" but shortly after that, I get a CPU Panic:
Xen Call Trace:amd_iommu_ioapic_update_ire ...iommu_update_ire_from_apic ...set_ioapic_affinity_irq ...smp_cpus_done ...__start_xen ...
Panic on CPU 0:
Assertion "get_rte_index(rte) == offset" failed at iommu_intr.c:188
Quoted 61 lines · you
Quoted 40 lines · Sander Eikelenboom
Quoted 28 lines · you
Quoted 27 lines · Andrew Cooper
Quoted 26 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 9 lines · Sander Eikelenboom
Quoted 6 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 9 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Quoted 9 lines
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
-- Sander
Booting with this parameters I can see "I/O Virtualisation Enabled" but shortly after that, I get a CPU Panic:
Xen Call Trace:
amd_iommu_ioapic_update_ire...iommu_update_ire_from_apic...set_ioapic_affinity_irq...smp_cpus_done...__start_xen...
Quoted 2 lines
Panic on CPU 0:
Assertion "get_rte_index(rte)== offset" failed at iommu_intr.c:188
Hmm, could you check if you can get a recent linux kernel to boot on baremetal (so without xen) with the iommu enabled ? (that would most certainly require one or both of the ivrs_ioapic overrides as well)
I assumed but don't know for sure, did you previously had successfully used the iommu with the iommu=no-amd-iommu-perdev-intremap boot option ? And i understand you upgraded your bios, if the previous answer was yes .. did you try to revert to your previous bios version ?
Also added Jan and Suravee to the CC.
--
Sander
BTW: please keep everyone that was in the CC listed in replies.
Quoted 79 lines · Sander Eikelenboom
Quoted 55 lines · you
Quoted 41 lines · Sander Eikelenboom
Quoted 31 lines · you
Quoted 30 lines · Andrew Cooper
Quoted 28 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 9 lines · Sander Eikelenboom
Quoted 6 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know
that there has been abug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 9 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o
virtualisation.Quoted 6 lines
Quoted 6 lines
Can you post a full xl dmesg, booting with
iommu=debug,verbose as well?~Andrew
Quoted 9 lines
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
-- Sander
Booting with this parameters I can see "I/O Virtualisation Enabled" but shortly after that, I get a CPU Panic:
Quoted 6 lines
Xen Call Trace:
amd_iommu_ioapic_update_ire...iommu_update_ire_from_apic...set_ioapic_affinity_irq...smp_cpus_done...__start_xen...Panic on CPU 0: Assertion "
get_rte_index(rte)== offset" failed at iommu_intr.c:188Hmm, could you check if you can get a recent linux kernel to boot on baremetal (so without xen) with the iommu enabled ? (that would most certainly require one or both of the
ivrs_ioapicoverrides as well)I assumed but don't know for sure, did you previously had successfully used the iommu with the iommu=no-amd-iommu-perdev-intremap boot option ? And i understand you upgraded your bios, if the previous answer was yes .. did you try to revert to your previous bios version ?
Also added Jan and Suravee to the CC.
Quoted 9 lines
-- Sander
BTW: please keep everyone that was in the CC listed in replies.
_______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
What "recent" version? Currently, I'm using 3.10-3, is that ok?
I have used iommu successfully before they added the new checking stuff, so I can't tell for sure.
I just tried the new xen version because it kept panicking after some changes half a year ago. Now it's working again but without iommu. That's why I updated my bios, sadly, without any success.
I'll try booting with Andrews patch now.
kind regards
Quoted 85 lines · you
Quoted 84 lines · Sander Eikelenboom
Quoted 55 lines · you
Quoted 41 lines · Sander Eikelenboom
Quoted 31 lines · you
Quoted 30 lines · Andrew Cooper
Quoted 28 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 9 lines · Sander Eikelenboom
Quoted 6 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know
that there has been abug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 9 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o
virtualisation.Quoted 6 lines
Quoted 6 lines
Can you post a full xl dmesg, booting with
iommu=debug,verbose as well?~Andrew
Quoted 9 lines
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
-- Sander
Booting with this parameters I can see "I/O Virtualisation Enabled" but shortly after that, I get a CPU Panic:
Quoted 6 lines
Xen Call Trace:
amd_iommu_ioapic_update_ire...iommu_update_ire_from_apic...set_ioapic_affinity_irq...smp_cpus_done...__start_xen...Panic on CPU 0: Assertion "
get_rte_index(rte)== offset" failed at iommu_intr.c:188Hmm, could you check if you can get a recent linux kernel to boot on baremetal (so without xen) with the iommu enabled ? (that would most certainly require one or both of the
ivrs_ioapicoverrides as well)I assumed but don't know for sure, did you previously had successfully used the iommu with the iommu=no-amd-iommu-perdev-intremap boot option ? And i understand you upgraded your bios, if the previous answer was yes .. did you try to revert to your previous bios version ?
Also added Jan and Suravee to the CC.
-- Sander
BTW: please keep everyone that was in the CC listed in replies.
Quoted 6 lines
Quoted 4 lines
_______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
What "recent" version? Currently, I'm using 3.10-3, is that ok?
I think so, you will need this patchset in the kernel:
http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/01567.html
which implemented the overrides for linux.
Quoted 5 lines
I have used iommu successfully before they added the new checking stuff, so I can't tell for sure.
I just tried the new xen version because it kept panicking after some changes half a year ago. Now it's working again but without iommu. That's why I updated my bios, sadly, without any success.
I know the pain :-)
Quoted 3 lines
I'll try booting with Andrews patch now.
kind regards
Quoted 102 lines · Sander Eikelenboom
Quoted 86 lines · you
Quoted 85 lines · Sander Eikelenboom
Quoted 55 lines · you
Quoted 41 lines · Sander Eikelenboom
Quoted 31 lines · you
Quoted 30 lines · Andrew Cooper
Quoted 28 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 9 lines · Sander Eikelenboom
Quoted 6 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know
that there has been abug related to the issue described in Xen
Security Advisory 36 that disables iommu for some
AMD users like me.What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 9 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o
virtualisation.Quoted 6 lines
Quoted 6 lines
Can you post a full xl dmesg, booting with
iommu=debug,verbose as well?~Andrew
Quoted 9 lines
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
-- Sander
Booting with this parameters I can see "I/O Virtualisation Enabled" but shortly after that, I get a CPU Panic:
Quoted 6 lines
Xen Call Trace:
amd_iommu_ioapic_update_ire...iommu_update_ire_from_apic...set_ioapic_affinity_irq...smp_cpus_done...__start_xen...Panic on CPU 0: Assertion "
get_rte_index(rte)== offset" failed at iommu_intr.c:188Hmm, could you check if you can get a recent linux kernel to boot on baremetal (so without xen) with the iommu enabled ? (that would most certainly require one or both of the
ivrs_ioapicoverrides as well)I assumed but don't know for sure, did you previously had successfully used the iommu with the iommu=no-amd-iommu-perdev-intremap boot option ? And i understand you upgraded your bios, if the previous answer was yes .. did you try to revert to your previous bios version ?
Also added Jan and Suravee to the CC.
-- Sander
BTW: please keep everyone that was in the CC listed in replies.
Quoted 7 lines
Quoted 5 lines
_______________________________________________ Xen-devel mailing list [email protected]
http://lists.xen.org/xen-develWhat "recent" version? Currently, I'm using 3.10-3, is that ok?
I think so, you will need this patchset in the kernel:
http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/01567.html
which implemented the overrides for linux.
Quoted 15 lines
Quoted 5 lines
I have used iommu successfully before they added the new checking stuff, so I can't tell for sure. I just tried the new xen version because it kept panicking after some changes half a year ago. Now it's working again but without iommu. That's why I updated my bios, sadly, without any success.
I know the pain :-)
Quoted 3 lines
I'll try booting with Andrews patch now.
kind regards
Today, I tested booting with the latest 3.12 kernel only, without xen, and it panicked after complaining about faulty remaps - sadly it didn't write any logs.
I will look into this further the next days and I will post the information you asked for.
kind regards
Quoted 119 lines · you
Quoted 102 lines · Sander Eikelenboom
Quoted 86 lines · you
Quoted 85 lines · Sander Eikelenboom
Quoted 55 lines · you
Quoted 41 lines · Sander Eikelenboom
Quoted 31 lines · you
Quoted 30 lines · Andrew Cooper
Quoted 28 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 9 lines · Sander Eikelenboom
Quoted 6 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know
that there has been abug related to the issue described in Xen
Security Advisory 36 that disables iommu for some
AMD users like me.What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 9 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o
virtualisation.Quoted 6 lines
Quoted 6 lines
Can you post a full xl dmesg, booting with
iommu=debug,verbose as well?~Andrew
Quoted 9 lines
Ah it seems i got the id's mixed up :-)
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
-- Sander
Booting with this parameters I can see "I/O Virtualisation Enabled" but shortly after that, I get a CPU Panic:
Quoted 6 lines
Xen Call Trace:
amd_iommu_ioapic_update_ire...iommu_update_ire_from_apic...set_ioapic_affinity_irq...smp_cpus_done...__start_xen...Panic on CPU 0: Assertion "
get_rte_index(rte)== offset" failed at iommu_intr.c:188Hmm, could you check if you can get a recent linux kernel to boot on baremetal (so without xen) with the iommu enabled ? (that would most certainly require one or both of the
ivrs_ioapicoverrides as well)I assumed but don't know for sure, did you previously had successfully used the iommu with the iommu=no-amd-iommu-perdev-intremap boot option ? And i understand you upgraded your bios, if the previous answer was yes .. did you try to revert to your previous bios version ?
Also added Jan and Suravee to the CC.
-- Sander
BTW: please keep everyone that was in the CC listed in replies.
Quoted 7 lines
Quoted 5 lines
_______________________________________________ Xen-devel mailing list [email protected]
http://lists.xen.org/xen-develWhat "recent" version? Currently, I'm using 3.10-3, is that ok?
I think so, you will need this patchset in the kernel:
http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/01567.html
which implemented the overrides for linux.Quoted 15 lines
Quoted 5 lines
I have used iommu successfully before they added the new checking stuff, so I can't tell for sure. I just tried the new xen version because it kept panicking after some changes half a year ago. Now it's working again but without iommu. That's why I updated my bios, sadly, without any success.
I know the pain :-)
Quoted 3 lines
I'll try booting with Andrews patch now.
kind regards
Quoted 6 lines
Today, I tested booting with the latest 3.12 kernel only, without xen, and it panicked after complaining about faulty remaps - sadly it didn't write any logs.
I will look into this further the next days and I will post the information you asked for.
One other thing i would also try is to revert to your older bios with which you had a working iommu in the past on a older xen version (with the no-amd-iommu-perdev-intremap option)
It could very well be you more recent bios is actually worse than your previous was ..
--
Sander
Quoted 1 line
kind regards
Quoted 20 lines
Quoted 1 line
Quoted 1 line · Ferdinand Nölscher
Quoted 7 lines · Sander Eikelenboom
ivrs_ioapic[9]=00:00.1 ivrs_ioapic[10]=00:14.0
Should do it i guess .. or should the ioapic handle be in hex .. (then the last should be ivrs_ioapic[a]=00:14.0 )
-- Sander
Booting with this parameters I can see "I/O Virtualisation Enabled" but shortly after that, I get a CPU Panic:
Xen Call Trace:
amd_iommu_ioapic_update_ire...iommu_update_ire_from_apic...set_ioapic_affinity_irq...smp_cpus_done...__start_xen...
Quoted 2 lines
Panic on CPU 0:
Assertion "get_rte_index(rte)== offset" failed at iommu_intr.c:188
Please provide a _full_ log and, in order to decipher things, a link to the matching xen-syms or xen.efi (depending on the way you boot - GrUB2 apparently being used, I'd guess it's the former we need).
Also - how certain are both of you that the exact values used in the overrides are valid? After all - if they aren't, we can't make any guarantees that the system would work _at all_.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 34 lines · Ferdinand Nölscher
Quoted 22 lines · Andrew Cooper
Quoted 21 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 8 lines · Sander Eikelenboom
Quoted 5 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 5 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
Quoted 9 lines
Quoted 4 lines
Quoted 3 lines
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Hi Andrew,
This is what I got:
<snip>
Quoted 41 lines
(XEN) AMD-Vi: Found MSI capability block at
0x54
(XEN) AMD-Vi: ACPI Table:(XEN) AMD-Vi: Signature IVRS (XEN) AMD-Vi: Length 0xd8 (XEN) AMD-Vi: Revision 0x1 (XEN) AMD-Vi: CheckSum 0x22 (XEN) AMD-Vi: OEM_Id AMD (XEN) AMD-Vi: OEM_Table_Id RD890S (XEN) AMD-Vi: OEM_Revision 0x202031 (XEN) AMD-Vi: Creator_Id AMD (XEN) AMD-Vi: Creator_Revision 0(XEN) AMD-Vi: IVRS Block: type
0x10flags0x3elen0xa8id0x2(XEN) AMD-Vi: IVHD Device Entry: type0x3id 0 flags 0 (XEN) AMD-Vi:Dev_IdRange: 0 ->0x2
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x10flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x100flags 0 (XEN) AMD-Vi:Dev_IdRange:0x100->0x101
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x20flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x200flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x28flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x300flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x30flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x400flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x38flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x500flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x50flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x600flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x88flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x90flags 0 (XEN) AMD-Vi:Dev_IdRange:0x90->0x92
(XEN) AMD-Vi: IVHD Device Entry: type0x3id0x98flags 0 (XEN) AMD-Vi:Dev_IdRange:0x98->0x9a
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa0flags0xd7(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa2flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa3flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa4flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x43id0x700flags 0 (XEN) AMD-Vi:Dev_IdRange:0x700->0x7ffalias0xa4(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa5flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0xb0flags 0
Quoted 8 lines
(XEN) AMD-Vi:
Dev_IdRange:0xb0->0xb2
(XEN) AMD-Vi: IVHD Device Entry: type0x48id 0 flags0xd7(XEN) AMD-Vi: IVHD Special: 0000:00:14.0 variety0x1handle 0 (XEN) IVHD Error: Invalid IO-APIC 0
(XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
Ok - my gut feeling is that this is a bug with the new command line override code. There is certainly not enough debug printing to work out exactly what is going on, and at a glance of the other information in the log, the state looks reasonable. (cc'ing Jan and Suravee as the authors)
Could you try running with this patch (compile tested only) and seeing what it says?
~Andrew
8<------
(quoted diff) +0 -0
b/xen/drivers/passthrough/amd/iommu_acpi.c
index fca2037..66755fa 100644
xen/drivers/passthrough/amd/iommu_acpi.c +2 -0
@@ -25,6 +25,7 @@#include <asm/io_apic.h> #include <asm/amd-iommu.h> #include <asm/hvm/svm/amd-iommu-proto.h> +#include <xen/keyhandler.h> /* Some helper structures, particularly to deal with ranges. */
@@ -785,6 +786,11 @@ static u16 __init parse_ivhd_device_special( {printk (XENLOG_ERR "IVHD Error: Invalid IO-APIC %#x\n" , special->handle); + bitmap_scnprintf(keyhandler_scratch,
sizeof(keyhandler_scratch),
+ ioapic_cmdline,
+ BITS_TO_LONGS(ARRAY_SIZE(ioapic_sbdf)) );
+ printk("**DEBUG: apic = %d, nr_ioapics = %d, ioapic_cmdline
= %s\n",
+ apic, nr_ioapics, keyhandler_scratch);
return 0;
}
break;Quoted 125 lines · Andrew Cooper
Quoted 34 lines · Ferdinand Nölscher
Quoted 22 lines · Andrew Cooper
Quoted 21 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 8 lines · Sander Eikelenboom
Quoted 5 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has been a
bug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 5 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
Quoted 9 lines
Quoted 4 lines
Quoted 3 lines
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Hi Andrew,
This is what I got:<snip>
Quoted 41 lines
(XEN) AMD-Vi: Found MSI capability block at
0x54
(XEN) AMD-Vi: ACPI Table:(XEN) AMD-Vi: Signature IVRS (XEN) AMD-Vi: Length 0xd8 (XEN) AMD-Vi: Revision 0x1 (XEN) AMD-Vi: CheckSum 0x22 (XEN) AMD-Vi: OEM_Id AMD (XEN) AMD-Vi: OEM_Table_Id RD890S (XEN) AMD-Vi: OEM_Revision 0x202031 (XEN) AMD-Vi: Creator_Id AMD (XEN) AMD-Vi: Creator_Revision 0(XEN) AMD-Vi: IVRS Block: type
0x10flags0x3elen0xa8id0x2(XEN) AMD-Vi: IVHD Device Entry: type0x3id 0 flags 0 (XEN) AMD-Vi:Dev_IdRange: 0 ->0x2
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x10flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x100flags 0 (XEN) AMD-Vi:Dev_IdRange:0x100->0x101
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x20flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x200flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x28flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x300flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x30flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x400flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x38flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x500flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x50flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x600flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x88flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x90flags 0 (XEN) AMD-Vi:Dev_IdRange:0x90->0x92
(XEN) AMD-Vi: IVHD Device Entry: type0x3id0x98flags 0 (XEN) AMD-Vi:Dev_IdRange:0x98->0x9a
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa0flags0xd7(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa2flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa3flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa4flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x43id0x700flags 0 (XEN) AMD-Vi:Dev_IdRange:0x700->0x7ffalias0xa4(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa5flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0xb0flags 0Quoted 8 lines
(XEN) AMD-Vi:
Dev_IdRange:0xb0->0xb2
(XEN) AMD-Vi: IVHD Device Entry: type0x48id 0 flags0xd7(XEN) AMD-Vi: IVHD Special: 0000:00:14.0 variety0x1handle 0 (XEN) IVHD Error: Invalid IO-APIC 0
(XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK methodOk - my gut feeling is that this is a bug with the new command line override code. There is certainly not enough debug printing to work out exactly what is going on, and at a glance of the other information in the log, the state looks reasonable. (cc'ing Jan and Suravee as the authors)
Could you try running with this patch (compile tested only) and seeing what it says?
~Andrew
8<------
xen/drivers/passthrough/amd/iommu_acpi.c +6
-0@@ -25,6 +25,7 @@#include <asm/io_apic.h> #include <asm/amd-iommu.h> #include <asm/hvm/svm/amd-iommu-proto.h> +#include <xen/keyhandler.h> /* Some helper structures, particularly to deal with ranges. */ @@ -785,6 +786,11 @@ static u16 __init parse_ivhd_device_special( {printk (XENLOG_ERR "IVHD Error: Invalid IO-APIC %#x\n" , special->handle); +bitmap_scnprintf (keyhandler_scratch,sizeof (keyhandler_scratch), + ioapic_cmdline, +BITS_TO_LONGS (ARRAY_SIZE (ioapic_sbdf)) ); +printk ("**DEBUG: apic = %d, nr_ioapics = %d, ioapic_cmdline = %s\n", + apic, nr_ioapics, keyhandler_scratch);return 0 ;
Quoted 5 lines
}
break;I applied your patch, this is the related output:
(XEN) AMD-Vi: Found MSI capability block at 0x54
(XEN) AMD-Vi: ACPI Table:
(XEN) AMD-Vi: Signature IVRS (XEN) AMD-Vi: Length 0xd8 (XEN) AMD-Vi: Revision 0x1 (XEN) AMD-Vi: CheckSum 0x22 (XEN) AMD-Vi: OEM_Id AMD (XEN) AMD-Vi: OEM_Table_Id RD890S (XEN) AMD-Vi: OEM_Revision 0x202031 (XEN) AMD-Vi: Creator_Id AMD (XEN) AMD-Vi: Creator_Revision 0
(XEN) AMD-Vi: IVRS Block: type 0x10 flags 0x3e len 0xa8 id 0x2 (XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0 -> 0x2
(XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x10 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0x100 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0x100 -> 0x101
(XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x20 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x200 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x28 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x300 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x30 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x400 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x38 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x500 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x50 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x600 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0x88 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0x90 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0x90 -> 0x92
(XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0x98 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0x98 -> 0x9a
(XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa0 flags 0xd7 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa2 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa3 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa4 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x43 id 0x700 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0x700 -> 0x7ff alias 0xa4 (XEN) AMD-Vi: IVHD Device Entry: type 0x2 id 0xa5 flags 0 (XEN) AMD-Vi: IVHD Device Entry: type 0x3 id 0xb0 flags 0 (XEN) AMD-Vi: Dev_Id Range: 0xb0 -> 0xb2
(XEN) AMD-Vi: IVHD Device Entry: type 0x48 id 0 flags 0xd7 (XEN) AMD-Vi: IVHD Special: 0000:00:14.0 variety 0x1 handle 0 (XEN) IVHD Error: Invalid IO-APIC 0
(XEN) **DEBUG: apic = 2, nr_ioapics = 2, ioapic_cmdline = 0 (XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
kind regards
Quoted 180 lines · Ferdinand Nölscher
Quoted 122 lines · Andrew Cooper
Quoted 34 lines · Ferdinand Nölscher
Quoted 22 lines · Andrew Cooper
Quoted 21 lines · Ferdinand Nölscher
Hi Sander,
Thanks for your reply.
Quoted 8 lines · Sander Eikelenboom
Quoted 5 lines · you
Hi!
Quoted 2 lines
From other people posting to this list, I know that there has
been abug related to the issue described in Xen Security Advisory 36 that disables iommu for some AMD users like me.
What motherboard do you have ?
I have an ASUS M5A99X EVO Rev 1.01
Quoted 5 lines
It depends if it's the north or southbridge ioapic but try using the new xen boot parameter: (add it to the xen.gz line in grub)
ivrs_ioapic[0]=00:14.0
Quoted 9 lines
Quoted 4 lines
Quoted 3 lines
or
ivrs_ioapic[0]=00:00.1
I tried both, it still fails to enable i/o virtualisation.
Can you post a full xl dmesg, booting with iommu=debug,verbose as well?
~Andrew
Hi Andrew,
This is what I got:<snip>
Quoted 40 lines
(XEN) AMD-Vi: Found MSI capability block at
0x54
(XEN) AMD-Vi: ACPI Table:(XEN) AMD-Vi: Signature IVRS (XEN) AMD-Vi: Length 0xd8 (XEN) AMD-Vi: Revision 0x1 (XEN) AMD-Vi: CheckSum 0x22 (XEN) AMD-Vi: OEM_Id AMD (XEN) AMD-Vi: OEM_Table_Id RD890S (XEN) AMD-Vi: OEM_Revision 0x202031 (XEN) AMD-Vi: Creator_Id AMD (XEN) AMD-Vi: Creator_Revision 0(XEN) AMD-Vi: IVRS Block: type
0x10flags0x3elen0xa8id0x2(XEN) AMD-Vi: IVHD Device Entry: type0x3id 0 flags 0 (XEN) AMD-Vi:Dev_IdRange: 0 ->0x2
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x10flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x100flags 0 (XEN) AMD-Vi:Dev_IdRange:0x100->0x101
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x20flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x200flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x28flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x300flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x30flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x400flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x38flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x500flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x50flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x600flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x88flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x90flags 0 (XEN) AMD-Vi:Dev_IdRange:0x90->0x92
(XEN) AMD-Vi: IVHD Device Entry: type0x3id0x98flags 0 (XEN) AMD-Vi:Dev_IdRange:0x98->0x9a
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa0flags0xd7(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa2flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa3flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa4flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x43id0x700flags 0 (XEN) AMD-Vi:Dev_IdRange:0x700->0x7ffalias0xa4(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa5flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0xb0flags 0Quoted 8 lines
(XEN) AMD-Vi:
Dev_IdRange:0xb0->0xb2
(XEN) AMD-Vi: IVHD Device Entry: type0x48id 0 flags0xd7(XEN) AMD-Vi: IVHD Special: 0000:00:14.0 variety0x1handle 0 (XEN) IVHD Error: Invalid IO-APIC 0
(XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK methodOk - my gut feeling is that this is a bug with the new command line override code. There is certainly not enough debug printing to work out exactly what is going on, and at a glance of the other information in the log, the state looks reasonable. (cc'ing Jan and Suravee as the authors)
Could you try running with this patch (compile tested only) and seeing what it says?
~Andrew
8<------
xen/drivers/passthrough/amd/iommu_acpi.c +6
-0@@ -25,6 +25,7 @@#include <asm/io_apic.h> #include <asm/amd-iommu.h> #include <asm/hvm/svm/amd-iommu-proto.h> +#include <xen/keyhandler.h> /* Some helper structures, particularly to deal with ranges. */ @@ -785,6 +786,11 @@ static u16 __init parse_ivhd_device_special( {printk (XENLOG_ERR "IVHD Error: Invalid IO-APIC %#x\n" , special->handle); +bitmap_scnprintf (keyhandler_scratch,sizeof (keyhandler_scratch), + ioapic_cmdline, +BITS_TO_LONGS (ARRAY_SIZE (ioapic_sbdf)) ); +printk ("**DEBUG: apic = %d, nr_ioapics = %d, ioapic_cmdline = %s\n", + apic, nr_ioapics, keyhandler_scratch);return 0 ;Quoted 5 lines
} break;I applied your patch, this is the related output:
(XEN) AMD-Vi: Found MSI capability block at
0x54
(XEN) AMD-Vi: ACPI Table:(XEN) AMD-Vi: Signature IVRS (XEN) AMD-Vi: Length 0xd8 (XEN) AMD-Vi: Revision 0x1 (XEN) AMD-Vi: CheckSum 0x22 (XEN) AMD-Vi: OEM_Id AMD (XEN) AMD-Vi: OEM_Table_Id RD890S (XEN) AMD-Vi: OEM_Revision 0x202031 (XEN) AMD-Vi: Creator_Id AMD (XEN) AMD-Vi: Creator_Revision 0(XEN) AMD-Vi: IVRS Block: type
0x10flags0x3elen0xa8id0x2(XEN) AMD-Vi: IVHD Device Entry: type0x3id 0 flags 0 (XEN) AMD-Vi:Dev_IdRange: 0 ->0x2
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x10flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x100flags 0 (XEN) AMD-Vi:Dev_IdRange:0x100->0x101
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0x20flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x200flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x28flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x300flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x30flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x400flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x38flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x500flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x50flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x600flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0x88flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0x90flags 0 (XEN) AMD-Vi:Dev_IdRange:0x90->0x92
(XEN) AMD-Vi: IVHD Device Entry: type0x3id0x98flags 0 (XEN) AMD-Vi:Dev_IdRange:0x98->0x9a
(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa0flags0xd7(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa2flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa3flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa4flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x43id0x700flags 0 (XEN) AMD-Vi:Dev_IdRange:0x700->0x7ffalias0xa4(XEN) AMD-Vi: IVHD Device Entry: type0x2id0xa5flags 0 (XEN) AMD-Vi: IVHD Device Entry: type0x3id0xb0flags 0 (XEN) AMD-Vi:Dev_IdRange:0xb0->0xb2
(XEN) AMD-Vi: IVHD Device Entry: type0x48id 0 flags0xd7(XEN) AMD-Vi: IVHD Special: 0000:00:14.0 variety0x1handle 0 (XEN) IVHD Error: Invalid IO-APIC 0
(XEN) **DEBUG: apic = 2,nr_ioapics= 2,ioapic_cmdline= 0 (XEN) AMD-Vi: Error initialization
(XEN) I/O virtualisation disabled
(XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
Quoted 2 lines
kind regards
Could you pleasealso provide the output from "acpidump" utility or from /sys/firmware/acpi/tables/IVRS /sys/firmware/acpi/tables/APIC /sys/firmware/acpi/tables/HPET
What optiondid you specify for xen.gz?
Also, are you running from the latest code? Jan and I have been working on the patch and just recently add more changes.
Thank you,
Suravee
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel