From: "Jan Beulich" Subject: [PATCH] x86: suppress HPET broadcast initialization in the presence of ARAT Date: Thu, 10 Feb 2011 13:58:58 +0000 Message-ID: <4D53FD3202000078000313F5@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartAB87B832.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartAB87B832.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- 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; =20 + if ( boot_cpu_has(X86_FEATURE_ARAT) ) + return; + if ( irq_channel =3D=3D NULL ) { irq_channel =3D xmalloc_array(int, nr_irqs); --=__PartAB87B832.0__= Content-Type: text/plain; name="x86-arat-no-hpet-irq.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-arat-no-hpet-irq.patch" This follows Linux commit 39fe05e58c5e448601ce46e6b03900d5bf31c4b0,=0Anotic= ing that all this setup is pointless when ARAT support is there,=0Aand = knowing that on SLED11's native kernel it has actually caused S3=0Aresume = issues.=0A=0AA question would be whether HPET legacy interrupts should be = forced=0Aoff in this case (rather than leaving whatever came from = firmware).=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/xen/arch/x86/hpet.c=0A+++ b/xen/arch/x86/hpet.c=0A@@ -557,6 +557,9 @@ = void hpet_broadcast_init(void)=0A u32 hpet_id, cfg;=0A int i;=0A = =0A+ if ( boot_cpu_has(X86_FEATURE_ARAT) )=0A+ return;=0A+=0A = if ( irq_channel =3D=3D NULL )=0A {=0A irq_channel =3D = xmalloc_array(int, nr_irqs);=0A --=__PartAB87B832.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartAB87B832.0__=--