x86: suppress HPET broadcast initialization in the presence of ARAT
PATCH 1/1 x86: suppress HPET broadcast initialization in the presence of ARAT
This follows Linux commit 39fe05e58c5e448601ce46e6b03900d5bf31c4b0, noticing that all this setup is pointless when ARAT support is there, and knowing that on SLED11's native kernel it has actually caused S3 resume issues.
A question would be whether HPET legacy interrupts should be forced off in this case (rather than leaving whatever came from firmware).
xen/arch/x86/hpet.c +3 -0
@@ -557,6 +557,9 @@ void hpet_broadcast_init(void)u32 hpet_id, cfg;int i; +if (boot_cpu_has (X86_FEATURE_ARAT ) ) +return ; +if ( irq_channel ==NULL ) { irq_channel =xmalloc_array (int, nr_irqs);
This follows Linux commit 39fe05e58c5e448601ce46e6b03900d5bf31c4b0, noticing that all this setup is pointless when ARAT support is there, and knowing that on SLED11's native kernel it has actually caused S3 resume issues.
A question would be whether HPET legacy interrupts should be forced off in this case (rather than leaving whatever came from firmware).
xen/arch/x86/hpet.c +3 -0
@@ -557,6 +557,9 @@ void hpet_broadcast_init(void)u32 hpet_id, cfg;int i; +if (boot_cpu_has (X86_FEATURE_ARAT ) ) +return ; +if ( irq_channel ==NULL ) { irq_channel =xmalloc_array (int, nr_irqs);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Jan Beulich wrote on 2011-02-10:
Quoted 12 lines
This follows Linux commit
39fe05e58c5e448601ce46e6b03900d5bf31c4b0, noticing that all this setup is pointless when ARAT support is there, and knowing that on SLED11's native kernel it has actually caused S3 resume issues.A question would be whether HPET legacy interrupts should be forced off in this case (rather than leaving whatever came from firmware).
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/hpet.c void hpet_broadcast_init(void) · line 565
Quoted 9 lines
xen/arch/x86/hpet.c +3
-0@@ -557,6 +557,9 @@ void hpet_broadcast_init(void)u32 hpet_id, cfg;int i; +if (boot_cpu_has (X86_FEATURE_ARAT ) ) +return ; +if ( irq_channel ==NULL ) { irq_channel =xmalloc_array (int, nr_irqs);
Although this patch was already checked in, I still have to say it is not necessary for Xen. Because hpet_broadcast_init() fn is only called if (xen_cpuidle && !boot_cpu_has(X86_FEATURE_ARAT)) in disable_pit_irq(). Of course I agree to keep it as a never used double check.
Jimmy
Quoted 11 lines · Gang
Jan Beulich wrote on 2011-02-10:
Quoted 5 lines
This follows Linux commit
39fe05e58c5e448601ce46e6b03900d5bf31c4b0, noticing that all this setup is pointless when ARAT support is there, and knowing that on SLED11's native kernel it has actually caused S3 resume issues.Although this patch was already checked in, I still have to say it is not necessary for Xen. Because
hpet_broadcast_init()fn is only called if (xen_cpuidle&& !boot_cpu_has(X86_FEATURE_ARAT)) indisable_pit_irq(). Of course I agree to keep it as a never used double check.
Hmm I didn't spot that. Actually it is part of a more complex series of checks in the caller, so I wonder whether repeating just that one check in the function itself really makes much sense. I'm somewhat inclibned to revert it.
-- Keir
Quoted 8 lines
Jimmy
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Keir Fraser wrote on 2011-02-12:
Quoted 7 lines · Gang
Quoted 6 lines
Jan Beulich wrote on 2011-02-10:
Quoted 4 lines
This follows Linux commit
39fe05e58c5e448601ce46e6b03900d5bf31c4b0, noticing that all this setup is pointless when ARAT support is there, and knowing that on SLED11's native kernel it has actually caused S3 resume issues.
Quoted 8 lines
Quoted 4 lines
Although this patch was already checked in, I still have to say it is not necessary for Xen. Because
hpet_broadcast_init()fn is only called if (xen_cpuidle&& !boot_cpu_has(X86_FEATURE_ARAT)) indisable_pit_irq(). Of course I agree to keep it as a never used double check.Hmm I didn't spot that. Actually it is part of a more complex series
of checks in the caller, so I wonder whether repeating just that one
check in the function itself really makes much sense. I'm somewhat inclibned to revert it.
Revert it would be better.
Jimmy
Quoted 15 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 11 lines · Gang
Jan Beulich wrote on 2011-02-10:
Quoted 5 lines
This follows Linux commit
39fe05e58c5e448601ce46e6b03900d5bf31c4b0, noticing that all this setup is pointless when ARAT support is there, and knowing that on SLED11's native kernel it has actually caused S3 resume issues.Although this patch was already checked in, I still have to say it is not necessary for Xen. Because
hpet_broadcast_init()fn is only called if (xen_cpuidle&& !boot_cpu_has(X86_FEATURE_ARAT)) indisable_pit_irq(). Of course I agree to keep it as a never used double check.
Quoted 4 lines
Hmm I didn't spot that. Actually it is part of a more complex series of checks in the caller, so I wonder whether repeating just that one check in the function itself really makes much sense. I'm somewhat inclibned to revert it.
Yes, revert it - somehow I managed to not notice we do this check already.
Jan