lkml.org 
[lkml]   [2000]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Masking out one page of RAM because of bit-errors.
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.066 / U:0.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site