Re: [Xen-devel] IOMMU initialization failure when using linux-as-bootloader

2016-08-30 Thread Andrew Cooper
On 29/08/16 13:45, Jan Beulich wrote: On 29.08.16 at 14:00, wrote: >>> I think this is reasonable, despite it certainly being unexpected for >>> the BIOS to turn such on when not putting the system into x2APIC >>> mode. >> It seems that linux doesn't use x2APIC because the BIOS explicitly >>

Re: [Xen-devel] IOMMU initialization failure when using linux-as-bootloader

2016-08-29 Thread Jan Beulich
>>> On 29.08.16 at 14:00, wrote: >> I think this is reasonable, despite it certainly being unexpected for >> the BIOS to turn such on when not putting the system into x2APIC >> mode. > > It seems that linux doesn't use x2APIC because the BIOS explicitly > "opts out" of it : > > "DMAR-IR: x2apic

Re: [Xen-devel] IOMMU initialization failure when using linux-as-bootloader

2016-08-29 Thread Sylvain Munaut
Hi Jan, > I think this is reasonable, despite it certainly being unexpected for > the BIOS to turn such on when not putting the system into x2APIC > mode. It seems that linux doesn't use x2APIC because the BIOS explicitly "opts out" of it : "DMAR-IR: x2apic is disabled because BIOS sets x2apic

Re: [Xen-devel] IOMMU initialization failure when using linux-as-bootloader

2016-08-29 Thread Jan Beulich
>>> On 27.08.16 at 12:40, wrote: > I'll test this in more detail next week to make sure things really > work as expected (atm I'm just testing if dom0 boots properly). And if > things turn OK and you think this is a proper fix for the issue and > safe to apply, I can send the patch properly to the

Re: [Xen-devel] IOMMU initialization failure when using linux-as-bootloader

2016-08-27 Thread Sylvain Munaut
Hi, >> (XEN) DMAR_IQA_REG = 47ad78002 >> (XEN) DMAR_IQH_REG = 440 >> (XEN) DMAR_IQT_REG = 20 >> (XEN) >> (XEN) >> (XEN) Panic on CPU 0: >> (XEN) queue invalidate wait descriptor was not executed >> (XEN) >> > > We ga

Re: [Xen-devel] IOMMU initialization failure when using linux-as-bootloader

2016-08-26 Thread Andrew Cooper
On 26/08/16 10:57, Sylvain Munaut wrote: Hello, I'm trying to use "linux as a bootloader", i.e. kexec into Xen 4.7 and I've been struggling for the past week. I've been able to debug and fix some issues on my own ( ELF header issue, invalid BDA entries, some kexec-tools bugs, ...) but I've been

[Xen-devel] IOMMU initialization failure when using linux-as-bootloader

2016-08-26 Thread Sylvain Munaut
Hello, I'm trying to use "linux as a bootloader", i.e. kexec into Xen 4.7 and I've been struggling for the past week. I've been able to debug and fix some issues on my own ( ELF header issue, invalid BDA entries, some kexec-tools bugs, ...) but I've been stuck on this one with no idea how to even