Francisco Jerez 9fc2b2d0cf vt: Fix console corruption on driver hand-over.
After 02f0777a0d6560eb995aade34a1b82f95c0452da "vc_origin" is no
longer reset to the screen buffer before calling the con_init() hook
of the new console driver.

If the old driver wasn't using a fixed scanout buffer (e.g. the case
of vgacon) "vc_origin" may be a pointer to a VRAM location, and its
contents aren't guaranteed to be preserved after calling con_deinit()
on the old driver and con_init() on the new driver, i.e. the
subsequent console resize may fill the framebuffer with garbage.

It can be reproduced in the transition from vgacon to the nouveau
framebuffer driver: in that case the legacy VGA aperture "vc_origin"
points to becomes unreadable after fbcon_init().

This patch reverts the mentioned commit. To avoid the problem it
intended to fix, stop using "vc_scr_end" in vc_do_resize() to
calculate how many rows we have to copy (actually the code looks
simpler this way without the help of "vc_scr_end").

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Cc: qiaochong <qiaochong@loongson.cn>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-09-03 17:29:03 -07:00
..
2009-09-24 07:21:03 -07:00
2010-08-16 23:44:49 -06:00
2010-08-10 13:47:40 -07:00
2010-05-17 03:06:12 +02:00
2010-08-10 13:47:40 -07:00
2010-08-12 08:43:29 -07:00
2009-12-10 22:55:36 +01:00
2010-08-10 13:47:45 -07:00
2010-08-10 13:47:43 -07:00
2010-08-10 13:47:39 -07:00
2010-08-11 08:59:23 -07:00
2010-05-27 09:12:50 -07:00
2010-08-18 08:35:47 -04:00
2010-05-27 09:12:50 -07:00
2010-08-10 13:47:40 -07:00
2010-08-23 18:17:21 -07:00
2010-08-10 13:47:44 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:43 -07:00
2009-10-14 17:36:53 +02:00
2010-01-04 12:31:21 -08:00
2010-08-18 08:35:47 -04:00
2010-08-10 13:47:44 -07:00