public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Use MTRRs by default for vesafb on x86-64
@ 2003-05-15 14:56 Andi Kleen
  2003-05-15 15:16 ` Dave Jones
  2003-05-16 22:58 ` Eric W. Biederman
  0 siblings, 2 replies; 18+ messages in thread
From: Andi Kleen @ 2003-05-15 14:56 UTC (permalink / raw)
  To: kraxel, jsimmons, linux-kernel


x86-64 cannot call the 32bit VESA BIOS. This means when vesafb is active
it does software copying in the vesa frame buffer. This is insanely slow
when the frame buffer is not marked for write combining. 

Some discussion showed that the use_mtrr flag was only off for some 
old broken ET4000 ISA card. x86-64 has no ISA, so this is no concern.
Make the default depend on CONFIG_ISA. 

Patch for 2.5.69.  Originally suggested by Gerd Knorr.

-Andi

--- linux/drivers/video/vesafb.c	2003-05-08 04:52:58.000000000 +0200
+++ linux-2.5.69-amd64/drivers/video/vesafb.c	2003-05-15 16:55:51.000000000 +0200
@@ -51,7 +51,11 @@
 static u32 pseudo_palette[17];
 
 static int             inverse   = 0;
+#ifndef CONFIG_ISA 
+static int 	      mtrr	 = 1;
+#else
 static int             mtrr      = 0;
+#endif
 
 static int             pmi_setpal = 0;	/* pmi for palette changes ??? */
 static int             ypan       = 0;  /* 0..nothing, 1..ypan, 2..ywrap */





^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH] Use MTRRs by default for vesafb on x86-64
@ 2003-05-19  9:16 Etienne Lorrain
  0 siblings, 0 replies; 18+ messages in thread
From: Etienne Lorrain @ 2003-05-19  9:16 UTC (permalink / raw)
  To: linux-kernel

  Whatever the processor, you cannot use write combining MTRR
 on 16 colors / 4 BPP modes. In this mode you can copy
 8 pixels at a time by doing a simple movb, but it cannot
 handle 32 pixel copy at the same time by a movd, for instance.
 In 16 color modes, you never have a linear memory mapping
 of pixels.

  Etienne.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2003-05-19 12:17 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 14:56 [PATCH] Use MTRRs by default for vesafb on x86-64 Andi Kleen
2003-05-15 15:16 ` Dave Jones
2003-05-15 15:20   ` Andi Kleen
2003-05-15 15:25     ` Dave Jones
2003-05-16 20:51   ` Alan Cox
2003-05-18  5:39     ` Andi Kleen
2003-05-18 16:11       ` Jamie Lokier
2003-05-18 20:40         ` Alan Cox
2003-05-18 22:34           ` Jamie Lokier
2003-05-18 22:52             ` Dave Jones
2003-05-18 23:33               ` Jamie Lokier
2003-05-19  0:02                 ` Dave Jones
2003-05-19  0:28                   ` Jamie Lokier
2003-05-19  1:24                     ` Dave Jones
2003-05-16 22:58 ` Eric W. Biederman
2003-05-19 10:37   ` Andi Kleen
2003-05-19 12:26     ` Eric W. Biederman
  -- strict thread matches above, loose matches on Subject: below --
2003-05-19  9:16 Etienne Lorrain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox