4G内存下linux的mtrr表不正确的解决


这个会导致nvidia的驱动不能加速2d,解决方案一般就是重写mtrr表,具体的google出来是这个

echo “disable=2” >| /proc/mtrr echo “disable=1” >| /proc/mtrr echo “disable=3” >| /proc/mtrr echo “disable=4” >| /proc/mtrr echo “disable=0” >| /proc/mtrr echo “base=0x00000000 size=0x80000000 type=write-back” >| /proc/mtrr echo “base=0x80000000 size=0x40000000 type=write-back” >| /proc/mtrr echo “base=0xC0000000 size=0x10000000 type=write-back” >| /proc/mtrr echo “base=0x100000000 size=0x20000000 type=write-back” >| /proc/mtrr echo “base=0x120000000 size=0x10000000 type=write-back” >| /proc/mtrr