]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fbcon: disable ywrap if not supported by fbcon scrolling code
authorKnut Petersen <Knut_Petersen@t-online.de>
Tue, 10 Jan 2006 04:53:36 +0000 (20:53 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:50 +0000 (08:01 -0800)
commitb8b9d4e311b40196f78f472e5196ee5b5a880ced
tree7a5c97cdcbf0bf6a56a05839ee233a250d4c9eea
parent444112d1ca66855246e0b5866eafb2041e1f6754
[PATCH] fbcon: disable ywrap if not supported by fbcon scrolling code

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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/fbcon.c