[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH] x86/hpet: Disable legacy replacement mode after IRQ test if not needed
As far as I understand the HPET legacy mode is not required on systems with ARAT after the timer IRQ test. For previous discussion see [1]. Keeping it enabled prevents reaching S0ix residency. Link: https://lore.kernel.org/xen-devel/cb408368-077d-edb5-b4ad-f80086db48c1@xxxxxxxxxxxxxxxxxxxxxx/ # [1] Signed-off-by: Simon Gaiser <simon@xxxxxxxxxxxxxxxxxxxxxx> --- xen/arch/x86/io_apic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c index 9b8a972cf5..ea98d717d0 100644 --- a/xen/arch/x86/io_apic.c +++ b/xen/arch/x86/io_apic.c @@ -1966,6 +1966,10 @@ static void __init check_timer(void) if ( timer_irq_works() ) { + if ( boot_cpu_has(X86_FEATURE_ARAT) ) { + printk(XENLOG_INFO "IRQ test with HPET Legacy Replacement Mode worked. Disabling it again.\n"); + hpet_disable_legacy_replacement_mode(); + } local_irq_restore(flags); return; } -- 2.40.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |