From: Keir Fraser <keir@xen.org>
To: Wei Huang <wei.huang2@amd.com>,
"'xen-devel@lists.xensource.com'" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] MTRR: clear DramModEn bit of sys_cfg MSR
Date: Tue, 05 Apr 2011 12:51:32 +0100 [thread overview]
Message-ID: <C9C0C0D4.2C500%keir@xen.org> (raw)
In-Reply-To: <4D9A44E2.2060103@amd.com>
On 04/04/2011 23:23, "Wei Huang" <wei.huang2@amd.com> wrote:
> Some buggy BIOS might set sys_cfg DramModEn bit to 1, which can cause
> unexpected behavior on AMD platforms. This patch clears DramModEn bit.
> The patch was derived from upstream kernel patch (see
> https://patchwork.kernel.org/patch/11425/).
This patch also removes k8_enable_fixed_iorrs(), and it's not clear why.
That would at least belong in a separate patch, but I would think we don't
want to delete that code anyway.
The indentation is wrong (spaces in a file that is hard-tab-indented). And
the printk is probably unnecessary -- at most you should print it once
rather than potentially for every core brought up.
But further, I don't see why you need to hang off {get,set}_fixed_ranges at
all. Why not do this check-and-fixup in cpu/amd.c:init_amd()? It's a handy
early-cpu-bringup amd-specific function which is rather designed ofr this
kind of purpose. The k8_enable_fixed_iorrs() work could better be done in
the same place, too (perhaps move it in a separate patch?).
-- Keir
> Signed-off-by: Wei Huang <wei.huang2@amd.com>
>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2011-04-05 11:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 22:23 [PATCH] MTRR: clear DramModEn bit of sys_cfg MSR Wei Huang
2011-04-05 11:51 ` Keir Fraser [this message]
2011-04-05 17:26 ` Wei Huang
2011-04-05 18:12 ` Keir Fraser
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=C9C0C0D4.2C500%keir@xen.org \
--to=keir@xen.org \
--cc=wei.huang2@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).