xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Wei Wang2 <wei.wang2@amd.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] Xenoprofile: Disable IBS on 32 bit
Date: Fri, 6 Aug 2010 15:19:20 +0200	[thread overview]
Message-ID: <201008061519.20777.wei.wang2@amd.com> (raw)

[-- 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

                 reply	other threads:[~2010-08-06 13:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201008061519.20777.wei.wang2@amd.com \
    --to=wei.wang2@amd.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).