Re: [PATCH] x86_32: trim memory by updating e820 v3

From: Yinghai Lu
Date: Mon Apr 28 2008 - 05:10:08 EST


On Mon, Apr 28, 2008 at 1:38 AM, Mika Fischer <mika.fischer@xxxxxxxxxx> wrote:
> Hi Yinghai,
>
> Yinghai Lu schrieb:
>
> >> reg00: base=0xc0000000 (3072MB), size=1024MB: uncachable, count=1
> >> reg01: base=0x00000000 ( 0MB), size=4096MB: write-back, count=1
> >> reg02: base=0x100000000 (4096MB), size=1024MB: write-back, count=1
> >> reg03: base=0xbf700000 (3063MB), size= 1MB: uncachable, count=1
> >> reg04: base=0xbf800000 (3064MB), size= 8MB: uncachable, count=1
> >>
> >> which screws up the X server's attempt to map the video memory at
> >> 0xd0000000.
> >
> > please try the patch at
> >
> > http://lkml.org/lkml/2008/4/28/52
> >
> > with mtrr_chunk_size=1g, and you should get
> >
> > you should get
> >> reg00: base=0x00000000 ( 0MB), size=2048MB: write-back, count=1
> >> reg01: base=0x80000000 (2048MB), size=1024MB: write-back, count=1
> >> reg02: base=0xbf700000 (3063MB), size= 1MB: uncachable, count=1
> >> reg03: base=0xbf800000 (3064MB), size= 8MB: uncachable, count=1
> >> reg04: base=0x100000000 (4096MB), size=1024MB: write-back, count=1
>
> Wow, thanks a lot for this patch! It almost works. This is what I get
> with mtrr_chunk_size=1g:
>
> reg00: base=0x00000000 ( 0MB), size=2048MB: write-back, count=1
> reg01: base=0x80000000 (2048MB), size=1024MB: write-back, count=1
> reg02: base=0xbf700000 (3063MB), size= 1MB: uncachable, count=1
> reg03: base=0xbf800000 (3064MB), size= 8MB: uncachable, count=1
> reg04: base=0x100001000 (4096MB), size= 4KB: write-back, count=1
> reg05: base=0x100002000 (4096MB), size= 8KB: write-back, count=1
> reg06: base=0x100004000 (4096MB), size= 16KB: write-back, count=1
> reg07: base=0x100008000 (4096MB), size= 32KB: write-back, count=1
>
> And this is what I get without mtrr_chunk_size=1g:
>
> reg00: base=0x00000000 ( 0MB), size=2048MB: write-back, count=1
> reg01: base=0x80000000 (2048MB), size= 512MB: write-back, count=1
> reg02: base=0xa0000000 (2560MB), size= 256MB: write-back, count=1
> reg03: base=0xb0000000 (2816MB), size= 256MB: write-back, count=1
> reg04: base=0xbf700000 (3063MB), size= 1MB: uncachable, count=1
> reg05: base=0xbf800000 (3064MB), size= 8MB: uncachable, count=1
> reg06: base=0x100001000 (4096MB), size= 4KB: write-back, count=1
> reg07: base=0x100002000 (4096MB), size= 8KB: write-back, count=1
>
> I attached these outputs and the dmesgs to the bug report:
>
> http://bugzilla.kernel.org/show_bug.cgi?id=10508
>
> dmesg with mtrr_chunk_size=1g:
> http://bugzilla.kernel.org/attachment.cgi?id=15945
>
> dmesg without mtrr_chunk_size=1g:
> http://bugzilla.kernel.org/attachment.cgi?id=15946
>

thanks for testing

please check
http://lkml.org/lkml/2008/4/28/115

also, can you try 64bit too?

YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/