Skip to contentSkip to conversation

Xenoprofile: Disable IBS on 32 bit

PATCH New Wei Wang2 1 participant 1 message Aug 6, 2010

lore
Share & tools
lore

Wei Wang2

author
#0 lore raw

PATCH 1/1 Xenoprofile: Disable IBS on 32 bit

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

Signature · 11 lines
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
xen/arch/x86/oprofile/op_model_athlon.c +4 -0
diff -r 8992134dcfd0 xen/arch/x86/oprofile/op_model_athlon.c
@@ -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)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel