/[linux-patches]/genpatches-2.6/tags/2.6.15-2/2500_vgacon-doublescan.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.15-2/2500_vgacon-doublescan.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 259 - (show annotations) (download)
Wed Jan 11 21:46:01 2006 UTC (8 years, 3 months ago) by dsd
File size: 1355 byte(s)
2.6.15-2 release
1 From stable-bounces@linux.kernel.org Sun Jan 8 01:06:28 2006
2 Message-Id: <200601080902.k0892jZm015005@shell0.pdx.osdl.net>
3 To: torvalds@osdl.org
4 From: akpm@osdl.org
5 Cc: samuel.thibault@ens-lyon.org, dravet@hotmail.com, stable@kernel.org
6 Subject: [PATCH] vgacon: fix doublescan mode
7
8 From: Samuel Thibault <samuel.thibault@ens-lyon.org>
9
10 When doublescan mode is in use, scanlines must be doubled.
11
12 Thanks to Jason Dravet <dravet@hotmail.com> for reporting and testing.
13
14 Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
15 Cc: <stable@kernel.org>
16 Signed-off-by: Andrew Morton <akpm@osdl.org>
17 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
18 ---
19
20 drivers/video/console/vgacon.c | 8 +++++++-
21 1 file changed, 7 insertions(+), 1 deletion(-)
22
23 --- linux-2.6.15.y.orig/drivers/video/console/vgacon.c
24 +++ linux-2.6.15.y/drivers/video/console/vgacon.c
25 @@ -503,10 +503,16 @@ static int vgacon_doresize(struct vc_dat
26 {
27 unsigned long flags;
28 unsigned int scanlines = height * c->vc_font.height;
29 - u8 scanlines_lo, r7, vsync_end, mode;
30 + u8 scanlines_lo, r7, vsync_end, mode, max_scan;
31
32 spin_lock_irqsave(&vga_lock, flags);
33
34 + outb_p(VGA_CRTC_MAX_SCAN, vga_video_port_reg);
35 + max_scan = inb_p(vga_video_port_val);
36 +
37 + if (max_scan & 0x80)
38 + scanlines <<= 1;
39 +
40 outb_p(VGA_CRTC_MODE, vga_video_port_reg);
41 mode = inb_p(vga_video_port_val);
42

  ViewVC Help
Powered by ViewVC 1.1.20