mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Rumpf <prumpf@mandrakesoft.com>
To: Jeff Lessem <Jeff.Lessem@Colorado.EDU>
Cc: linux-kernel@vger.kernel.org,
	Jeff Garzik <jgarzik@mandrakesoft.mandrakesoft.com>
Subject: Re: PCI oddities on Dell Inspiron 5000e w/ 2.4.x
Date: Sat, 24 Feb 2001 11:55:07 -0600	[thread overview]
Message-ID: <20010224115507.B28983@mandrakesoft.mandrakesoft.com> (raw)
In-Reply-To: <200102240941.CAA09708@ibg.colorado.edu> <Pine.LNX.4.10.10102240532030.30331-100000@penguin.transmeta.com> <20010224095447.A28983@mandrakesoft.mandrakesoft.com> <200102241725.KAA19514@ibg.colorado.edu>
In-Reply-To: <200102241725.KAA19514@ibg.colorado.edu>; from Jeff Lessem on Sat, Feb 24, 2001 at 10:25:42AM -0700

On Sat, Feb 24, 2001 at 10:25:42AM -0700, Jeff Lessem wrote:
> In your message of: Sat, 24 Feb 2001 09:54:47 CST, you write:
> >Jeff, are you using the e820 memory map at all ?  In particular, are you
> >using grub or some other buggy bootloader that insists on specifying a
> >mem= option on the kernel command line ?  There should be a kernel command
> >line message very early on, what does that say ?
> 
> Yes, I am using grub, the buggy bootloader.  The relevant chunk of
> kernal messages are:
> 
>  BIOS-provided physical RAM map:
>   BIOS-e820: 000000000009f800 @ 0000000000000000 (usable)
>   BIOS-e820: 0000000000000800 @ 000000000009f800 (reserved)
>   BIOS-e820: 0000000000019800 @ 00000000000e6800 (reserved)
>   BIOS-e820: 0000000013ef0000 @ 0000000000100000 (usable)
>   BIOS-e820: 000000000000fc00 @ 0000000013ff0000 (ACPI data)
>   BIOS-e820: 0000000000000400 @ 0000000013fffc00 (ACPI NVS)
>   BIOS-e820: 0000000000080000 @ 00000000fff80000 (reserved)
>  On node 0 totalpages: 81904
>  zone(0): 4096 pages.
>  zone(1): 77808 pages.
>  zone(2): 0 pages.
>  Kernel command line: root=/dev/hda1 mem=327616K
> 
> You are dead on, mem= seems a bit small.  Forcing mem=320M on the
> command line fixes the problem completely.

Careful, you're overwriting ACPI data now (and using it as normal RAM).

Can you try one of a) LILO b) a fixed version of grub c) this patch ?

diff -ur linux/arch/i386/kernel/setup.c linux-prumpf/arch/i386/kernel/setup.c
--- linux/arch/i386/kernel/setup.c	Fri Feb 23 13:37:38 2001
+++ linux-prumpf/arch/i386/kernel/setup.c	Sat Feb 24 09:49:50 2001
@@ -555,30 +555,9 @@
 				e820.nr_map = 0;
 				usermem = 1;
 			} else {
-				/* If the user specifies memory size, we
-				 * blow away any automatically generated
-				 * size
-				 */
-				unsigned long start_at, mem_size;
- 
-				if (usermem == 0) {
-					/* first time in: zap the whitelist
-					 * and reinitialize it with the
-					 * standard low-memory region.
-					 */
-					e820.nr_map = 0;
-					usermem = 1;
-					add_memory_region(0, LOWMEMSIZE(), E820_RAM);
-				}
-				mem_size = memparse(from+4, &from);
+				memparse(from+4, &from);
 				if (*from == '@')
-					start_at = memparse(from+1, &from);
-				else {
-					start_at = HIGH_MEMORY;
-					mem_size -= HIGH_MEMORY;
-					usermem=0;
-				}
-				add_memory_region(start_at, mem_size, E820_RAM);
+					memparse(from+1, &from);
 			}
 		}
 		c = *(from++);

  reply	other threads:[~2001-02-24 17:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-22  7:18 Jeff Lessem
     [not found] ` <000201c09d0c$d53a73c0$25040a0a@zeusinc.com>
2001-02-23  3:27   ` Jeff Lessem
2001-02-23  4:45     ` Tom Sightler
2001-02-23  7:01       ` Barry K. Nathan
2001-02-23  8:40         ` Brad Douglas
     [not found]   ` <200102230340.TAA19644@penguin.transmeta.com>
2001-02-23  4:06     ` Jeff Lessem
2001-02-23  4:37       ` Linus Torvalds
2001-02-23  5:34         ` Jeff Lessem
2001-02-23 17:48           ` Linus Torvalds
2001-02-24  9:41             ` Jeff Lessem
2001-02-24 13:36               ` Linus Torvalds
2001-02-24 15:54                 ` Philipp Rumpf
2001-02-24 17:25                   ` Jeff Lessem
2001-02-24 17:55                     ` Philipp Rumpf [this message]
2001-02-24 18:36                       ` Jeff Lessem
2001-02-24 22:28                         ` Tom Sightler

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=20010224115507.B28983@mandrakesoft.mandrakesoft.com \
    --to=prumpf@mandrakesoft.com \
    --cc=Jeff.Lessem@Colorado.EDU \
    --cc=jgarzik@mandrakesoft.mandrakesoft.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®