From: Sander Eikelenboom Subject: Re: [xen-unstable] Commit 2ca9fbd739b8a72b16dd790d0fff7b75f5488fb8 AMD IOMMU: allocate IRTE entries instead of using a static mapping, makes dom0 boot process stall several times. Date: Fri, 23 Aug 2013 17:05:08 +0200 Message-ID: <1636534211.20130823170508@eikelenboom.it> References: <1831656044.20130722225004@eikelenboom.it> <51FF74E502000078000E9267@nat28.tlf.novell.com> <52011A78.2040701@amd.com> <757500547.20130815164341@eikelenboom.it> <520D0CBF02000078000EC4FF@nat28.tlf.novell.com> <1182640844.20130816012228@eikelenboom.it> <33876223.20130816014116@eikelenboom.it> <520DEEFD02000078000EC76F@nat28.tlf.novell.com> <208201973.20130816094246@eikelenboom.it> <520DF8F302000078000EC7AD@nat28.tlf.novell.com> <1157392160.20130816104005@eikelenboom.it> <520E0AA002000078000EC82B@nat28.tlf.novell.com> <451541998.20130816124429@eikelenboom.it> <520E422602000078000EC94D@nat28.tlf.novell.com> <1834274604.20130823005128@eikelenboom.it> <52178DBB02000078000EE0BC@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52178DBB02000078000EE0BC@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Andrew Cooper , Suravee Suthikulanit , xen-devel List-Id: xen-devel@lists.xenproject.org Friday, August 23, 2013, 4:28:43 PM, you wrote: >>>> On 23.08.13 at 00:51, Sander Eikelenboom wrote: >> After i got things working on baremetal Linux, i adjusted Xen and hardcoded >> it to add a mapping for ioapic[6]=00:14.0. >> (the entries for ivrs_ioapic[7] and hpet[0] are actually correct in the bios >> tables, so they don't need correction for me at the moment) > Are you sure about the HPET part of this? I ask because that being > wrong could be an explanation for the stalls you see when using > cpuidle (as that could mean those HPET interrupts needed for > waking CPUs don't arrive). > Speaking of which - why don't you try whether when not using > FSB-capable HPET channels, the stalls go away? All you'd need > to change is hpet_fsb_cap_lookup() - it ought to return without > doing anything (i.e., if you look at the code, as if > acpi_gbl_FADT.boot_flags had ACPI_FADT_NO_MSI set). Ok adding: @@ -392,6 +392,9 @@ static void __init hpet_fsb_cap_lookup(void) u32 id; unsigned int i, num_chs; + printk(XENLOG_INFO "SEIK HPET: return as if acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_MSI\n"); + return; + if ( unlikely(acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_MSI) ) return; Indeed made the stalls go away .. > Jan