[ltp] R40 and ACPI with Suspend/Resume

Jordi G. March linux-thinkpad@linux-thinkpad.org
Thu, 03 Jun 2004 12:21:10 -0400


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

No, they are not needed... It was just to show you how well this last
patch works...  Win4Linux is a program to run Win98 completely under it
(more or less like VMWare in concept, but much different inside)

And, MTRRs are a special type of registers that have modern CPUs (and
not so modern) that improve video memory performance. In short, a brief
introduction can be found at /usr/src/linux/Documentation/mtrr.txt.
Initially this is automatically adjusted by the X server, but when
switching back to X using this version of swsusp (don't know it this is
the question or not, doesn't matter...), seems that MTRRs are lost and
not dynamically adjusted by the running X server.

>From /usr/src/linux/Documentation/mtrr.txt:
"On Intel P6 family processors (Pentium Pro, Pentium II and later)
  the Memory Type Range Registers (MTRRs) may be used to control
  processor access to memory ranges. This is most useful when you have
  a video (VGA) card on a PCI or AGP bus. Enabling write-combining
  allows bus write transfers to be combined into a larger transfer
  before bursting over the PCI/AGP bus. This can increase performance
  of image write operations 2.5 times or more.
....
  The CONFIG_MTRR option creates a /proc/mtrr file which may be used
  to manipulate your MTRRs. Typically the X server should use
  this. This should have a reasonably generic interface so that
  similar control registers on other processors can be easily
  supported."

Regards,
Jordi
  

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

> Hi,
> 
> > I've just tried with 2.6.6 & swsusp 2.0.0.81 + Win4Lin patches....
> > Works flawlessly. The only problem seems related to MTRRs when
> > switching back to X, causing a big impact in performance. Hopefully
> > this can be solved by tuning /proc/mtrr dynamically ;-)
> 
> - what are the win4lin patches and do you have an idea, why they are
> needed for swsusp?
> - sorry, but what are MTRRs?
> 
> Günther
> -- 
> Guenther Rackl   Tel 089 / 890 50 998
> Holzstrasse 20   Web http://www.rackls.de
> 80469 Muenchen   Email guenther@rackls.de
> 
> -- 
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

-- 
http://www.devilmaster.org

--=-4529o43jOQqsxsBP3QYP
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>
No, they are not needed... It was just to show you how well this last patch works...&nbsp; Win4Linux is a program to run Win98 completely under it (more or less like VMWare in concept, but much different inside)<BR>
<BR>
And, MTRRs are a special type of registers that have modern CPUs (and not so modern) that improve video memory performance. In short, a brief introduction can be found at /usr/src/linux/Documentation/mtrr.txt.<BR>
Initially this is automatically adjusted by the X server, but when switching back to X using this version of swsusp (don't know it this is the question or not, doesn't matter...), seems that MTRRs are lost and not dynamically adjusted by the running X server.<BR>
<BR>
>From /usr/src/linux/Documentation/mtrr.txt:<BR>
&quot;On Intel P6 family processors (Pentium Pro, Pentium II and later)<BR>
&nbsp; the Memory Type Range Registers (MTRRs) may be used to control<BR>
&nbsp; processor access to memory ranges. This is most useful when you have<BR>
&nbsp; a video (VGA) card on a PCI or AGP bus. Enabling write-combining<BR>
&nbsp; allows bus write transfers to be combined into a larger transfer<BR>
&nbsp; before bursting over the PCI/AGP bus. This can increase performance<BR>
&nbsp; of image write operations 2.5 times or more.<BR>
....<BR>
&nbsp; The CONFIG_MTRR option creates a /proc/mtrr file which may be used<BR>
&nbsp; to manipulate your MTRRs. Typically the X server should use<BR>
&nbsp; this. This should have a reasonably generic interface so that<BR>
&nbsp; similar control registers on other processors can be easily<BR>
&nbsp; supported.&quot;<BR>
<BR>
Regards,<BR>
Jordi<BR>
&nbsp; <BR>
<BR>
El jue, 03-06-2004 a las 12:02, +0200, Guenther Rackl escribi&#243;:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi,</FONT>

<FONT COLOR="#000000">&gt; I've just tried with 2.6.6 &amp; swsusp 2.0.0.81 + Win4Lin patches....</FONT>
<FONT COLOR="#000000">&gt; Works flawlessly. The only problem seems related to MTRRs when</FONT>
<FONT COLOR="#000000">&gt; switching back to X, causing a big impact in performance. Hopefully</FONT>
<FONT COLOR="#000000">&gt; this can be solved by tuning /proc/mtrr dynamically ;-)</FONT>

<FONT COLOR="#000000">- what are the win4lin patches and do you have an idea, why they are</FONT>
<FONT COLOR="#000000">needed for swsusp?</FONT>
<FONT COLOR="#000000">- sorry, but what are MTRRs?</FONT>

<FONT COLOR="#000000">G&#252;nther</FONT>
<FONT COLOR="#000000">-- </FONT>
<FONT COLOR="#000000">Guenther Rackl   Tel 089 / 890 50 998</FONT>
<FONT COLOR="#000000">Holzstrasse 20   Web http://www.rackls.de</FONT>
<FONT COLOR="#000000">80469 Muenchen   Email guenther@rackls.de</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>

--=-4529o43jOQqsxsBP3QYP--