Re: desktop effects gone with kernel 2.6.30
On Thu, 2009-06-11 at 16:21 +0200, Marcus Better wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Cade Robinson wrote:
> > One thing I found was my MTRRs were messed up
> ~$ cat /proc/mtrr
> reg00: base=0x0c0000000 ( 3072MB), size= 1024MB, count=1: uncachable
> reg01: base=0x13c000000 ( 5056MB), size= 64MB, count=1: uncachable
> reg02: base=0x000000000 ( 0MB), size= 4096MB, count=1: write-back
> reg03: base=0x100000000 ( 4096MB), size= 1024MB, count=1: write-back
> reg04: base=0x0bf700000 ( 3063MB), size= 1MB, count=1: uncachable
> reg05: base=0x0bf800000 ( 3064MB), size= 8MB, count=1: uncachable
> How does this look?
> > To figure out your base addr and size look at lspci -vvv for your vid
> > card and find a line with "prefetchable" in it like:
> Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
I think your reg00 and reg02 are overlapping with your video mem region.
Your video memory starts at e0000000 which is 3584MB (if I am
calculating that right)
So reg00 starts at 3072MB and is 1024MB large so there is an overlap
reg02 starts a 0MB and is 4096MB so again an overlap
How much system memory is there in the machine?
I think you use that for what would be your reg02.
I think you need to resize your reg02 (the below will give you a 2GB
echo "disable=2" >| /proc/mtrr
echo "base=0x0 size=0x80000000 type=write-back" >| /proc/mtrr
And then also enable a 256MB region
echo 'base=0xe0000000 size=0x10000000 type=write-combining'
One other option that doesn't work / do anything for me is the kernel
I also don't think I had any issues with removing all regions first and
adding the reg0 and my write-combined region.
But that is commented out in the script since I didn't "need" to do it.
#for X in $(cat /proc/mtrr | cut -c 5 | sort
# echo "disable=$X"