All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen 4.2.1 boot failure with IOMMU enabled
@ 2013-02-11 17:31 povder
  0 siblings, 0 replies; 26+ messages in thread
From: povder @ 2013-02-11 17:31 UTC (permalink / raw)
  To: xen-devel

Hi all

I already posted about this problem on xen-users some time ago
(http://markmail.org/message/sbgtyjqh6bzmqx4s) but I couldn't
resolve my problem using help from people on xen-users, so I'm posting here .

I have a problem with enabling IOMMU on Xen 4.2.1. When I enable it in BIOS
and in grub.conf using iommu=1 kernel option, my machine cannot boot.
I get a following error on serial console:

(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at pci_amd_iommu.c:35
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...

Is it a bug in Xen or maybe bug in BIOS?

I run CentOS 6.3 and use dom0 kernel 3.7.1 and Xen from
http://au1.mirror.crc.id.au/repo/el6/x86_64/ repository,
but I also tried with other 3.x and 2.6.32 kernels and different Xen
builds with no luck.

GRUB entry:
 title CentOS Xen kernel IOMMU serial console (3.7.1-3.el6xen.x86_64)
        root (hd0,0)
        kernel /xen.gz dom0_mem=1G,max:1G dom0_max_vcpus=1
dom0_vcpus_pin iommu=verbose loglvl=all guest_loglvl=all iommu=1
com1=38400,8n1 console=com1
        module /vmlinuz-3.7.1-3.el6xen.x86_64 ro
root=/dev/mapper/vg_titan_raid5-lv_titan_root
rd_LVM_LV=vg_titan_raid5/lv_titan_root rd_NO_LUKS LANG=en_US.UTF-8
rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto
rd_LVM_LV=vg_titan_raid5/lv_titan_swap  KEYBOARDTYPE=pc KEYTABLE=us
rd_NO_DM console=hvc0 earlyprintk=xen nomodeset
        module /initramfs-3.7.1-3.el6xen.x86_64.img

Hardware info:
 Motherboard: ASUS M4A89TD PRO USB3 (AMD 890FX chipset, reported to
work with IOMMU on Xen wiki)
 CPU: AMD Phenom II X6 1045T

Software info:
 OS: CentOS 6.3 64bit
 Xen: 4.2.1
 BIOS version: 3029 (up to date, also tried with older versions)

Detailed information:
 Full serial output: http://pastebin.com/raw.php?i=K1DuhDcj
 xl info (when booting with iommu=0): http://pastebin.com/raw.php?i=jU7bEFrN
 lspci -vvv: http://pastebin.com/raw.php?i=3wpKPQT9
 dmidecode: http://pastebin.com/raw.php?i=7wEcTXzr
 kernel config: http://pastebin.com/raw.php?i=zYgGZ84f

Please help
povder

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: Xen 4.2.1 boot failure with IOMMU enabled
@ 2013-02-12  3:20 Boris Ostrovsky
  2013-02-12  6:26 ` povder
  0 siblings, 1 reply; 26+ messages in thread
From: Boris Ostrovsky @ 2013-02-12  3:20 UTC (permalink / raw)
  To: povder; +Cc: xen-devel


----- povder@gmail.com wrote:

> 
> GRUB entry:
>  title CentOS Xen kernel IOMMU serial console (3.7.1-3.el6xen.x86_64)
>         root (hd0,0)
>         kernel /xen.gz dom0_mem=1G,max:1G dom0_max_vcpus=1
> dom0_vcpus_pin iommu=verbose loglvl=all guest_loglvl=all iommu=1
> com1=38400,8n1 console=com1

Try adding "iommu=debug" option --- it will print more information including 
dump of the ACPI table that describes IOMMU.

-boris

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: Xen 4.2.1 boot failure with IOMMU enabled
@ 2013-02-13  1:33 Boris Ostrovsky
  2013-02-13  8:24 ` Jan Beulich
  0 siblings, 1 reply; 26+ messages in thread
From: Boris Ostrovsky @ 2013-02-13  1:33 UTC (permalink / raw)
  To: povder; +Cc: JBeulich, xen-devel


----- povder@gmail.com wrote:

> I disabled id BIOS IDE interface that was causing problems and system
> boots fine. Thanks for your help!
> 
> I just wonder if it's a bug in BIOS or in Xen. If it's ASUS bug I
> would like to report bug to them.


This looks like BIOS bug -- there is no entry for the IDE interface in IVRS
table (which is used by IOMMU driver to discover devices). 

I am wondering whether such cases (undeclared devices in IVRS) should cause a
panic or disabling of IOMMU. This may be a more generic case of Jan's earlier 
patch for dealing with missing IOAPIC. Not sure whether it would be possible 
to "unwind" IOMMU at this point though.

(For the record, I asked povder to run with xen-unstable that I provided 
to him because for some reason I thought this might be combined mode problem.
Obviously this had nothing to do with combined mode)

-boris

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2013-02-15 15:21 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-11 17:31 Xen 4.2.1 boot failure with IOMMU enabled povder
2013-02-12  3:20 Boris Ostrovsky
2013-02-12  6:26 ` povder
2013-02-12 10:06   ` Jan Beulich
2013-02-12 10:55     ` povder
2013-02-12 11:03       ` Jan Beulich
2013-02-12 11:15         ` povder
2013-02-12 11:22           ` Jan Beulich
2013-02-12 11:29             ` Jan Beulich
2013-02-12 15:20               ` Boris Ostrovsky
2013-02-12 15:50                 ` povder
2013-02-12 16:04                   ` Jan Beulich
2013-02-12 17:44                     ` povder
2013-02-12 18:23                       ` povder
2013-02-12 18:40                         ` povder
2013-02-13  8:05                           ` Jan Beulich
2013-02-13  8:28                             ` povder
2013-02-13  8:37                               ` Jan Beulich
2013-02-13 18:21                                 ` povder
2013-02-14 11:03                                   ` Jan Beulich
2013-02-14 11:29                                   ` Jan Beulich
2013-02-14 14:55                                     ` Boris Ostrovsky
2013-02-15  8:21                                       ` Jan Beulich
2013-02-15 15:21                                         ` Boris Ostrovsky
2013-02-13  1:33 Boris Ostrovsky
2013-02-13  8:24 ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.