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] RE: [PATCH] vpmu: Add processors Westmere E7-8837 and Sa

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] RE: [PATCH] vpmu: Add processors Westmere E7-8837 and SandyBridge i5-2500 to the vpmu list
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
Date: Tue, 30 Aug 2011 08:06:58 +0200
Cc: "Shan, Haitao" <haitao.shan@xxxxxxxxx>
Delivery-date: Mon, 29 Aug 2011 23:08:57 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=dietmar.hahn@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1314684421; x=1346220421; h=from:to:subject:date:cc:references:in-reply-to: mime-version:content-transfer-encoding:message-id; bh=tuJCFEqznjAfbV7ZAftTe80ezSSmbB5VL05fNW3hX3g=; b=ZTkrNpZkU0JHBGCzWopmlxJBqlR1iQnBDjm/oPMHN1KtzogfzSdN3shQ /qOAmWSBiABuTgzbYj1R4hfTMWLGXZO4wOric1Mnt4GUyLVGHnUxllR4k RXFPnDmWaoFbVy1Q62oYf/yKGX6/jbY90OwhKDXGj3NsLMPEEXgwFprHq u0lZqyyGD2BiFaauEVGqejJXxURc+0Qk9aChPgqvTnntj0iZ1NEZg0RGs dF2MQ3TXKBaoPBGCoKyt5o7FooSyD;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent:Cc: References:In-Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id; b=okt2c/AKAqqTKwp3zKExlE8jCtBVvPpOCBedhcEWDIKsRj4eVYI1d9Et oVrRxr1zbH9pIYJcPbyu7CuAV7MOdZATVFmiQCQS+rLJSxZIKLeoS5ja0 YXhDnSNywjuD2ZE3kHJJpZmihfZYK8dVh8BUCtUrTzniyRWepQAtyFHHe PHuR+/FzuCukibYft5PbRgOCekYCQBbJobzFZ4Ai7yihR0ihmViWtWH3m RQn+aj0ydX93UPAM48cpLNEz5fMRH;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <04F972F38B3C4E4E91C4697DA8BF9F526C2327AA21@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <201108291439.15910.dietmar.hahn@xxxxxxxxxxxxxx> <04F972F38B3C4E4E91C4697DA8BF9F526C2327AA21@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.7-xen; KDE/4.6.0; x86_64; ; )
Am 29.08.2011 schrieb ""Shan, Haitao" <haitao.shan@xxxxxxxxx>":
> Hi,Hahn,
> 
> I will have a check tomorrow, though I myself do not own all of the machine 
> now.
> As for the quirk, I don't know whether it is needed by later processors. But 
> as far as I know, it should not harm profiling tools inside guests.

Without the quirk handling for the E7-8837 I could reproduce the same endless
interrupt loop on some processors so that the system must get rebooted like
what we had with the X7542 processor. As far as I know the i5-2500 uses the
same pmu (but with more general usable registers) so I added it to the quirk
handling too.

Dietmar.

> 
> Shan Haitao
> 
> > -----Original Message-----
> > From: Dietmar Hahn [mailto:dietmar.hahn@xxxxxxxxxxxxxx]
> > Sent: Monday, August 29, 2011 8:39 PM
> > To: xen-devel@xxxxxxxxxxxxxxxxxxx
> > Cc: Shan, Haitao
> > Subject: [PATCH] vpmu: Add processors Westmere E7-8837 and SandyBridge
> > i5-2500 to the vpmu list
> > 
> > Hi,
> > 
> > the following patch adds the mentioned processors to the list of vpmu able
> > procs.
> > Maybe some other processors could get added (i3..., i7...), but I have no
> > machines to check this - Haitao?
> > I think this patch would be a candidate for backports to 4.0.3 and 4.1.2.
> > Should I send a patch too?
> > 
> > Thanks.
> > Dietmar.
> > 
> > Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
> > 
> > Add processors Westmere E7-8837 and SandyBridge i5-2500 to the vpmu list.
> > 
> > diff -r 227130622561 -r 8ae871cf435a xen/arch/x86/hvm/vmx/vpmu_core2.c
> > --- a/xen/arch/x86/hvm/vmx/vpmu_core2.c     Thu Aug 25 12:03:14 2011 +0100
> > +++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c     Mon Aug 29 14:13:44 2011
> > +0200
> > @@ -58,7 +58,8 @@
> >      is_pmc_quirk = 0;
> >      if ( family == 6 )
> >      {
> > -        if ( cpu_model == 46 || cpu_model == 26 )
> > +        if ( cpu_model == 47 || cpu_model == 46 || cpu_model == 42 ||
> > +             cpu_model == 26 )
> >              is_pmc_quirk = 1;
> >      }
> >  }
> > diff -r 227130622561 -r 8ae871cf435a xen/arch/x86/hvm/vpmu.c
> > --- a/xen/arch/x86/hvm/vpmu.c       Thu Aug 25 12:03:14 2011 +0100
> > +++ b/xen/arch/x86/hvm/vpmu.c       Mon Aug 29 14:13:44 2011 +0200
> > @@ -119,7 +119,9 @@
> >              case 23:
> >              case 26:
> >              case 29:
> > +            case 42:
> >              case 46:
> > +            case 47:
> >                  vpmu->arch_vpmu_ops = &core2_vpmu_ops;
> >                  break;
> >              }
> > 
> > --
> > Company details: http://ts.fujitsu.com/imprint.html
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> 
-- 
Company details: http://ts.fujitsu.com/imprint.html

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

<Prev in Thread] Current Thread [Next in Thread>