söndag 26 februari 2012

How to compile mtrr-uncover for recent Linux versions


While trying to fix the degraded graphics performance with Ubuntu 11.10 (Oneiric Ocelot) on my Acer Aspire One (AOA150 ZG5 with 945GME/GMA 950), I found the following in dmesg:


[   25.513451] mtrr: no more MTRRs available
[   25.513463] [drm] MTRR allocation failed.  Graphics performance may suffer.

There is a tool called mtrr-uncover that supposedly helps with this, but the latest version I could find was from 2009: ftp://ftp.cs.utoronto.ca/pub/hugh/

It doesn't compile here, I'm on kernel 3.2.x and it seems they added a mtrr_type typedef to the kernel headers since mtrr-uncover was last updated. So to get mtrr-uncover to compile, you just have to rename the mtrr_type struct that's in mtrr-uncover.c.

Patch: 

http://pastebin.com/ZKKkdjLe

Now it at least compiles, but I've yet to test whether it's useful for the original problem. :)

2 kommentarer:

  1. In the same folder of that FTP site you have the file ftp://ftp.cs.utoronto.ca/pub/hugh/mtrr-uncover-2009may13.tgz which compiles OK in kernel 3.2 with debian wheezy/testing

    SvaraRadera
  2. ftp://ftp.cs.utoronto.ca/pub/hugh/mtrr-uncover-2009august14.tgz was the upadted file

    SvaraRadera