* [PATCH] Xenoprofile: Disable IBS on 32 bit
@ 2010-08-06 13:19 Wei Wang2
0 siblings, 0 replies; only message in thread
From: Wei Wang2 @ 2010-08-06 13:19 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 537 bytes --]
Hi,
Extended PCI configuration space is not accessible on 32 bit systems. This
patch disables IBS feature on 32 bit to avoid IBSCTL(0x1cc) accesses.
Thanks,
Wei
Signed-off-by: Wei Wang <wei.wang2@amd.com>
--
AMD GmbH, Germany
Operating System Research Center
Legal Information:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34
85609 Dornach b. München
Geschäftsführer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis München
Registergericht München, HRB Nr. 43632
[-- Attachment #2: ibs_fix.patch --]
[-- Type: text/x-diff, Size: 538 bytes --]
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)
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-06 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-06 13:19 [PATCH] Xenoprofile: Disable IBS on 32 bit Wei Wang2
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.