All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1: 2.6.15-rc5-git3] Disable ywrap if not supported by fbcon scrolling code
@ 2005-12-13 13:26 Knut Petersen
  2005-12-13 15:43 ` Antonino A. Daplas
  0 siblings, 1 reply; 2+ messages in thread
From: Knut Petersen @ 2005-12-13 13:26 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Antonino A. Daplas, Geert Uytterhoeven, linux-fbdev-devel

updatescrollmode() must not select ywrap scrolling if
divides(vc->vc_font.height, yres) is not true as this is not
supported by the actual ywrap scrolling code.

The bug is triggered with e.g. mode 800x600, vxres 1024,
vyres 8192, bpp 8, font dimensions 8x16, 8Mb video ram
and FBINFO_HWACCEL_YWRAP set. If those conditions
are met, scrolling is broken and garbage is permanently
displayed at the bottom of the screen.

No regression, no possible side effects.

Definitely needed by cyblafb and probably needed by amifb.

Signed-off-by: Knut Petersen <Knut_Petersen@t-online.de>

diff -uprN -X linux/Documentation/dontdiff -x '*.bak' -x '*.ctx' linuxorig/drivers/video/console/fbcon.c linux/drivers/video/console/fbcon.c
--- linuxorig/drivers/video/console/fbcon.c	2005-12-13 13:09:56.000000000 +0100
+++ linux/drivers/video/console/fbcon.c	2005-12-13 13:55:20.000000000 +0100
@@ -1968,7 +1968,8 @@ static __inline__ void updatescrollmode(
 		divides(ypan, vc->vc_font.height) && vyres > yres;
 	int good_wrap = (cap & FBINFO_HWACCEL_YWRAP) &&
 		divides(ywrap, vc->vc_font.height) &&
-		divides(vc->vc_font.height, vyres);
+		divides(vc->vc_font.height, vyres) &&
+		divides(vc->vc_font.height, yres);
 	int reading_fast = cap & FBINFO_READS_FAST;
 	int fast_copyarea = (cap & FBINFO_HWACCEL_COPYAREA) &&
 		!(cap & FBINFO_HWACCEL_DISABLED);




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

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

* Re: [PATCH 1/1: 2.6.15-rc5-git3] Disable ywrap if not supported by fbcon scrolling code
  2005-12-13 13:26 [PATCH 1/1: 2.6.15-rc5-git3] Disable ywrap if not supported by fbcon scrolling code Knut Petersen
@ 2005-12-13 15:43 ` Antonino A. Daplas
  0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2005-12-13 15:43 UTC (permalink / raw)
  To: Knut Petersen; +Cc: Andrew Morton, Geert Uytterhoeven, linux-fbdev-devel

Knut Petersen wrote:
> updatescrollmode() must not select ywrap scrolling if
> divides(vc->vc_font.height, yres) is not true as this is not
> supported by the actual ywrap scrolling code.
> 
> The bug is triggered with e.g. mode 800x600, vxres 1024,
> vyres 8192, bpp 8, font dimensions 8x16, 8Mb video ram
> and FBINFO_HWACCEL_YWRAP set. If those conditions
> are met, scrolling is broken and garbage is permanently
> displayed at the bottom of the screen.
> 
> No regression, no possible side effects.
> 
> Definitely needed by cyblafb and probably needed by amifb.
> 
> Signed-off-by: Knut Petersen <Knut_Petersen@t-online.de>
Acked-by: Antonino Daplas <adaplas@pol.net>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

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

end of thread, other threads:[~2005-12-13 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-13 13:26 [PATCH 1/1: 2.6.15-rc5-git3] Disable ywrap if not supported by fbcon scrolling code Knut Petersen
2005-12-13 15:43 ` Antonino A. Daplas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.