WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH] x86: suppress HPET broadcast initialization in t

To: Jan Beulich <JBeulich@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] x86: suppress HPET broadcast initialization in the presence of ARAT
From: "Wei, Gang" <gang.wei@xxxxxxxxx>
Date: Sat, 12 Feb 2011 15:15:34 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "Wei, Gang" <gang.wei@xxxxxxxxx>
Delivery-date: Fri, 11 Feb 2011 23:16:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D53FD3202000078000313F5@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4D53FD3202000078000313F5@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvJKtjJC1MX3WdtTkmBlr8Ula8GDwBWM7pw
Thread-topic: [Xen-devel] [PATCH] x86: suppress HPET broadcast initialization in the presence of ARAT
Jan Beulich wrote on 2011-02-10:
> 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 <jbeulich@xxxxxxxxxx>
> 
> --- a/xen/arch/x86/hpet.c
> +++ b/xen/arch/x86/hpet.c
> @@ -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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel