linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Vesa fix
@ 2003-05-12 21:44 James Simmons
  2003-05-12 21:53 ` James Simmons
  2003-05-13 17:50 ` Dave Jones
  0 siblings, 2 replies; 5+ messages in thread
From: James Simmons @ 2003-05-12 21:44 UTC (permalink / raw)
  To: Linux Fbdev development list; +Cc: Linux Kernel Mailing List


Hi!
  
   The results of the EDID info from the BIOS has been varied. For some it 
worked. Others it gave the wrong data. Then for other even the headers 
where corrupted :-( So this patch pulls out the EDID code from Vesa. The 
EDID code works for PPC tho :-)



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

* Re: Vesa fix
  2003-05-12 21:44 Vesa fix James Simmons
@ 2003-05-12 21:53 ` James Simmons
  2003-05-13 17:50 ` Dave Jones
  1 sibling, 0 replies; 5+ messages in thread
From: James Simmons @ 2003-05-12 21:53 UTC (permalink / raw)
  To: Linux Fbdev development list; +Cc: Linux Kernel Mailing List


> 
> Hi!
>   
>    The results of the EDID info from the BIOS has been varied. For some it 
> worked. Others it gave the wrong data. Then for other even the headers 
> where corrupted :-( So this patch pulls out the EDID code from Vesa. The 
> EDID code works for PPC tho :-)
> 
> 
> -

Oop.s Forgot patch.


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1078  -> 1.1079 
#	drivers/video/vesafb.c	1.31    -> 1.32   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/12	jsimmons@maxwell.earthlink.net	1.1079
# [VESA FBDEV] Removed the EDID code. The results where mixed. It worked for some but not for others.
# --------------------------------------------
#
diff -Nru a/drivers/video/vesafb.c b/drivers/video/vesafb.c
--- a/drivers/video/vesafb.c	Mon May 12 14:26:05 2003
+++ b/drivers/video/vesafb.c	Mon May 12 14:26:05 2003
@@ -215,7 +215,6 @@
 int __init vesafb_init(void)
 {
 	int video_cmap_len;
-	char *edid = 0;
 	int i;
 
 	if (screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB)
@@ -300,18 +299,10 @@
 		ypan = 0;
 	}
 
-#ifdef __i386__
-	edid = get_EDID_from_BIOS(0);
-	if (edid)
-		parse_edid(edid, &vesafb_defined);	
-	else		
-#endif
-	{	
-		/* some dummy values for timing to make fbset happy */
-		vesafb_defined.pixclock     = 10000000 / vesafb_defined.xres * 1000 / vesafb_defined.yres;
-		vesafb_defined.left_margin  = (vesafb_defined.xres / 8) & 0xf8;
-		vesafb_defined.hsync_len    = (vesafb_defined.xres / 8) & 0xf8;
-	}
+	/* some dummy values for timing to make fbset happy */
+	vesafb_defined.pixclock     = 10000000 / vesafb_defined.xres * 1000 / vesafb_defined.yres;
+	vesafb_defined.left_margin  = (vesafb_defined.xres / 8) & 0xf8;
+	vesafb_defined.hsync_len    = (vesafb_defined.xres / 8) & 0xf8;
 	
 	if (vesafb_defined.bits_per_pixel > 8) {
 		vesafb_defined.red.offset    = screen_info.red_pos;


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

* Re: Vesa fix
  2003-05-12 21:44 Vesa fix James Simmons
  2003-05-12 21:53 ` James Simmons
@ 2003-05-13 17:50 ` Dave Jones
  2003-05-13 23:01   ` Alan Cox
  1 sibling, 1 reply; 5+ messages in thread
From: Dave Jones @ 2003-05-13 17:50 UTC (permalink / raw)
  To: James Simmons; +Cc: Linux Fbdev development list, Linux Kernel Mailing List

On Mon, May 12, 2003 at 10:44:29PM +0100, James Simmons wrote:

 >    The results of the EDID info from the BIOS has been varied. For some it 
 > worked. Others it gave the wrong data. Then for other even the headers 
 > where corrupted :-( 

XFree86 seems to do a pretty good job of getting it right, maybe they
have blacklists ? Then again, this stuff is arguably better off done
in userspace anyway IMO.

		Dave


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

* Re: Vesa fix
  2003-05-13 17:50 ` Dave Jones
@ 2003-05-13 23:01   ` Alan Cox
  2003-05-14 22:45     ` James Simmons
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2003-05-13 23:01 UTC (permalink / raw)
  To: Dave Jones
  Cc: James Simmons, Linux Fbdev development list, Linux Kernel Mailing List

On Maw, 2003-05-13 at 18:50, Dave Jones wrote:
> On Mon, May 12, 2003 at 10:44:29PM +0100, James Simmons wrote:
> 
>  >    The results of the EDID info from the BIOS has been varied. For some it 
>  > worked. Others it gave the wrong data. Then for other even the headers 
>  > where corrupted :-( 
> 
> XFree86 seems to do a pretty good job of getting it right, maybe they
> have blacklists ? Then again, this stuff is arguably better off done
> in userspace anyway IMO.

XFree handles EDID per driver and uses different methods in different
drivers.


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

* Re: Vesa fix
  2003-05-13 23:01   ` Alan Cox
@ 2003-05-14 22:45     ` James Simmons
  0 siblings, 0 replies; 5+ messages in thread
From: James Simmons @ 2003-05-14 22:45 UTC (permalink / raw)
  To: Alan Cox
  Cc: Dave Jones, Linux Fbdev development list, Linux Kernel Mailing List


> > XFree86 seems to do a pretty good job of getting it right, maybe they
> > have blacklists ? Then again, this stuff is arguably better off done
> > in userspace anyway IMO.

Not helpful on platforms which lack a hardware text mode.
 
> XFree handles EDID per driver and uses different methods in different
> drivers.

So I found out the hardware. BIOS are evil!!!!!


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

end of thread, other threads:[~2003-05-14 22:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 21:44 Vesa fix James Simmons
2003-05-12 21:53 ` James Simmons
2003-05-13 17:50 ` Dave Jones
2003-05-13 23:01   ` Alan Cox
2003-05-14 22:45     ` James Simmons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).