From: Andrew Morton <akpm@osdl.org>
To: Steve <s.egbert@sbcglobal.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.10-r1 MTRR bug
Date: Wed, 12 Jan 2005 23:05:53 -0800 [thread overview]
Message-ID: <20050112230553.683a813b.akpm@osdl.org> (raw)
In-Reply-To: <41E595E9.8040805@sbcglobal.net>
Steve <s.egbert@sbcglobal.net> wrote:
>
> For the Athlon 2100, I get the following outputs and then the VGA
> console is frozen from further output (but it doesn't prevent the full
> bootup into X windows session of which I am able to resume normal
> Linux/X session, but not able to regain any virtual console session.)
hm. Not sure what could have caused that.
> The virtual console (locked) shows the following outputs:
>
> vesafb: scrolling: redraw:
Have you tried disabling vesafb in config?
> mtrr: size and base must be multiples of 4kiB (<<-- this line is
> repeated 20 times).
Could you add this so we can track down the culprit?
--- 25/arch/i386/kernel/cpu/mtrr/main.c~mtrr-size-and-base-debug 2005-01-12 23:01:03.732426224 -0800
+++ 25-akpm/arch/i386/kernel/cpu/mtrr/main.c 2005-01-12 23:03:14.081610136 -0800
@@ -375,6 +375,19 @@ int mtrr_add_page(unsigned long base, un
return error;
}
+static int mtrr_check(unsigned long base, unsigned long size)
+{
+ if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) {
+ printk(KERN_WARNING
+ "mtrr: size and base must be multiples of 4 kiB\n");
+ printk(KERN_DEBUG
+ "mtrr: size: 0x%lx base: 0x%lx\n", size, base);
+ dump_stack();
+ return -1;
+ }
+ return 0;
+}
+
/**
* mtrr_add - Add a memory type region
* @base: Physical base address of region
@@ -415,11 +428,8 @@ int
mtrr_add(unsigned long base, unsigned long size, unsigned int type,
char increment)
{
- if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) {
- printk(KERN_WARNING "mtrr: size and base must be multiples of 4 kiB\n");
- printk(KERN_DEBUG "mtrr: size: 0x%lx base: 0x%lx\n", size, base);
+ if (mtrr_check(base, size))
return -EINVAL;
- }
return mtrr_add_page(base >> PAGE_SHIFT, size >> PAGE_SHIFT, type,
increment);
}
@@ -511,11 +521,8 @@ int mtrr_del_page(int reg, unsigned long
int
mtrr_del(int reg, unsigned long base, unsigned long size)
{
- if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1))) {
- printk(KERN_INFO "mtrr: size and base must be multiples of 4 kiB\n");
- printk(KERN_DEBUG "mtrr: size: 0x%lx base: 0x%lx\n", size, base);
+ if (mtrr_check(base, size))
return -EINVAL;
- }
return mtrr_del_page(reg, base >> PAGE_SHIFT, size >> PAGE_SHIFT);
}
_
next prev parent reply other threads:[~2005-01-13 7:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-12 21:26 Steve
2005-01-12 21:34 ` Steve
2005-01-13 7:05 ` Andrew Morton [this message]
2005-01-14 22:26 ` Daniel Drake
2005-01-15 0:50 ` disabling VESAFB no longer locks up VT (was Re: 2.4.10-r1 MTRR bug) Steve
2005-01-15 0:57 ` 2.4.10-r1 MTRR bug ( Steve
2005-01-15 23:59 ` Steve
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=20050112230553.683a813b.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=s.egbert@sbcglobal.net \
/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
all inboxes | Powered by JetHome®