[ltp] R40 and ACPI with Suspend/Resume

Jordi G. March linux-thinkpad@linux-thinkpad.org
Thu, 03 Jun 2004 15:01:54 -0400


--=-2eT5IiNPwcZcJuR9XEBa
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Well, I'm not sure if the X server uses it automatically.... If that's
not the case, check this out:

* Grab the base memory address of your video card, using lspci -v:
"lspci -v
....
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV200 LX
[Mobility FireGL 7800 M7] (prog-if 00 [VGA])
        Subsystem: IBM: Unknown device 0518
        Flags: bus master, stepping, fast Back2Back, 66Mhz, medium
devsel, latency 66, IRQ 11
-->        Memory at e8000000 (32-bit, prefetchable) [size=128M]
        I/O ports at 3000 [size=256]
        Memory at d0100000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [58] AGP version 2.0
        Capabilities: [50] Power Management version 2
....
  In my case, it is e8000000.
* Compute your video card total memory in hexadecimal: 128 MB -> 8000000
(you can use kcalc to do this)
* And finally, put it all together in this way:
echo "base=0xe8000000 size=0x8000000 type=write-combining" > /proc/mtrr

That's all ;-)

As a final note about performance, glxgears at its normal size, without
using DRI, goes from 69fps to 200fps just after adding that line...
Quite appealing, I'd say ;-)

Regards,
Jordi

El jue, 03-06-2004 a las 14:31, +0200, Guenther Rackl escribió:

> Hello,
> 
> thank you for the information about the MTRRs, that's interesting!
> 
> Once I compile my kernel with the MTRR enabled, what do I have to do to
> make my X server use it?
> 
> Regards
> Günther
> 
> 
> -- 
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

-- 
http://www.devilmaster.org

--=-2eT5IiNPwcZcJuR9XEBa
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.1.12">
</HEAD>
<BODY>
Well, I'm not sure if the X server uses it automatically.... If that's not the case, check this out:<BR>
<BR>
* Grab the base memory address of your video card, using lspci -v:<BR>
&quot;lspci -v<BR>
....<BR>
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV200 LX [Mobility FireGL 7800 M7] (prog-if 00 [VGA])<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subsystem: IBM: Unknown device 0518<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags: bus master, stepping, fast Back2Back, 66Mhz, medium devsel, latency 66, IRQ 11<BR>
--&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Memory at e8000000 (32-bit, prefetchable) [size=128M]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I/O ports at 3000 [size=256]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Memory at d0100000 (32-bit, non-prefetchable) [size=64K]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expansion ROM at &lt;unassigned&gt; [disabled] [size=128K]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Capabilities: [58] AGP version 2.0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Capabilities: [50] Power Management version 2<BR>
....<BR>
&nbsp; In my case, it is e8000000.<BR>
* Compute your video card total memory in hexadecimal: 128 MB -&gt; 8000000 (you can use kcalc to do this)<BR>
* And finally, put it all together in this way:<BR>
echo &quot;base=0xe8000000 size=0x8000000 type=write-combining&quot; &gt; /proc/mtrr<BR>
<BR>
That's all ;-)<BR>
<BR>
As a final note about performance, glxgears at its normal size, without using DRI, goes from 69fps to 200fps just after adding that line... Quite appealing, I'd say ;-)<BR>
<BR>
Regards,<BR>
Jordi<BR>
<BR>
El jue, 03-06-2004 a las 14:31, +0200, Guenther Rackl escribi&#243;:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hello,</FONT>

<FONT COLOR="#000000">thank you for the information about the MTRRs, that's interesting!</FONT>

<FONT COLOR="#000000">Once I compile my kernel with the MTRR enabled, what do I have to do to</FONT>
<FONT COLOR="#000000">make my X server use it?</FONT>

<FONT COLOR="#000000">Regards</FONT>
<FONT COLOR="#000000">G&#252;nther</FONT>


<FONT COLOR="#000000">-- </FONT>
<FONT COLOR="#000000">The linux-thinkpad mailing list home page is at:</FONT>
<A HREF="http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad"><FONT COLOR="#000000">http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad</FONT></A>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
<A HREF="http://www.devilmaster.org">http://www.devilmaster.org</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

--=-2eT5IiNPwcZcJuR9XEBa--