Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 6 Feb 2003 02:22:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 6 Feb 2003 02:22:15 -0500 Received: from willow.compass.com.ph ([202.70.96.38]:34056 "EHLO willow.compass.com.ph") by vger.kernel.org with ESMTP id ; Thu, 6 Feb 2003 02:22:10 -0500 Subject: Re: [Linux-fbdev-devel] Re: fbcon scrolling madness + fbset corruption From: Antonino Daplas To: Russell King Cc: Linux Kernel List , Linux Fbdev development list , James Simmons In-Reply-To: <20030202195744.C32007@flint.arm.linux.org.uk> References: <20030119200340.A13758@flint.arm.linux.org.uk> <1043026112.988.4.camel@localhost.localdomain> <20030202195744.C32007@flint.arm.linux.org.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1044428966.1170.25.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 05 Feb 2003 15:15:51 +0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1764 Lines: 65 On Mon, 2003-02-03 at 03:57, Russell King wrote: > On Mon, Jan 20, 2003 at 09:29:38AM +0800, Antonino Daplas wrote: > > fb_pan_display() does not test for YWRAP. Can you try this? > > This doesn't appear to solve the ywrap problem - I still get > places where the screen doesn't scroll. I decided to write a > small program to dump out the contents of fb_var_screeninfo, and > where stuff goes horribly wrong: > > bash-2.04# ./tst > Visible: 1280x1024 > Virtual: 1280x1632 > BPP : 8 > Offset : +0+2352 > bash-2.04# ./tst > Visible: 1280x1024 > Virtual: 1280x1632 > BPP : 8 > Offset : +0+2392 > > Up to the point where it goes wrong: > > bash-2.04# ./tst > Visible: 1280x1024 > Virtual: 1280x1632 > BPP : 8 > Offset : +0+528 > bash-2.04# ./tst > Visible: 1280x1024 > Virtual: 1280x1632 > BPP : 8 > Offset : +0+568 > bash-2.04# ./tst > Visible: 1280x1024 <--- this is the last line on the screen > Virtual: 1280x1632 > BPP : 8 > Offset : +0+608 > bash-2.04# > > So it looks like something isn't limiting the yoffset in the generic > console layer; an xoffset of 2392 when the maximum virtual Y is 1632 > is just nonsense. It might be a problem with display.vrows not being updated during fbcon_resize(). I think I sent James some patches before that added that. Can you try adding this at the end of fbcon_resize() in drivers/video/fbcon.c? p->vrows = info->var.yres_virtual/vc->vc_font.height; Tony PS: I never encountered your problem, but I don't have hardware that's capable of ywrap. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/