From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Wang2 Subject: [PATCH] Xenoprofile: Disable IBS on 32 bit Date: Fri, 6 Aug 2010 15:19:20 +0200 Message-ID: <201008061519.20777.wei.wang2@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_YvAXMfySynqnDLI" 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 --Boundary-00=_YvAXMfySynqnDLI Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Extended PCI configuration space is not accessible on 32 bit systems. This= =20 patch disables IBS feature on 32 bit to avoid IBSCTL(0x1cc) accesses.=20 Thanks, Wei Signed-off-by: Wei Wang =2D-=20 AMD GmbH, Germany Operating System Research Center Legal Information: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34 85609 Dornach b. M=FCnchen Gesch=E4ftsf=FChrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis M=FCnchen Registergericht M=FCnchen, HRB Nr. 43632 --Boundary-00=_YvAXMfySynqnDLI Content-Type: text/x-diff; charset="iso-8859-1"; name="ibs_fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ibs_fix.patch" diff -r 8992134dcfd0 xen/arch/x86/oprofile/op_model_athlon.c --- a/xen/arch/x86/oprofile/op_model_athlon.c Wed Aug 04 19:24:17 2010 +0100 +++ b/xen/arch/x86/oprofile/op_model_athlon.c Fri Aug 06 14:58:53 2010 +0200 @@ -475,6 +475,9 @@ static int init_ibs_nmi(void) static u32 get_ibs_caps(void) { +#ifdef CONFIG_X86_32 + return 0; +#else unsigned int max_level; if (!boot_cpu_has(X86_FEATURE_IBS)) @@ -491,6 +494,7 @@ static u32 get_ibs_caps(void) return IBS_CAPS_AVAIL; return ibs_caps; +#endif } u32 ibs_init(void) --Boundary-00=_YvAXMfySynqnDLI 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 --Boundary-00=_YvAXMfySynqnDLI--