Re: Masking out one page of RAM because of bit-errors.

From: Christer Weinigel (wingel@hog.ctrl-c.liu.se)
Date: Tue Sep 12 2000 - 11:56:09 EST


In article <20000912181836.A29289@oscar.dorf.wh.uni-dortmund.de> you write:
>Dear list-readers,
>I have a bad SDRAM chip with exactly one bit error. Memtest86 shows
>that the bit error always occurs at the address 0x4eff508. I tried
>to calculate the page number and it should be 20223.
...
>Could someone tell me if there's another way to mark this single page
>as unusable ?

This ought to work. Put the code somewhere at the end of mem_init() in
arch/i386/mm/init.c

    long addr = 0x4eff508;
    set_bit(PG_reserved, &mem_map[MAP_NR(addr)].flags);

This is for linux-2.2.16 , I don't know if it works with 2.4.

  /Christer

-- 
"Just how much can I get away with and still go to heaven?"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:18 EST