From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965371AbWJCHUg (ORCPT ); Tue, 3 Oct 2006 03:20:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965382AbWJCHUf (ORCPT ); Tue, 3 Oct 2006 03:20:35 -0400 Received: from smtp.osdl.org ([65.172.181.4]:51107 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S965371AbWJCHUe (ORCPT ); Tue, 3 Oct 2006 03:20:34 -0400 Date: Tue, 3 Oct 2006 00:20:14 -0700 From: Andrew Morton To: Paul Mackerras Cc: Jeremy Fitzhardinge , linux-kernel@vger.kernel.org, Andi Kleen , Hugh Dickens , Michael Ellerman , Benjamin Herrenschmidt , Rusty Russell Subject: Re: [PATCH 5/6] From: Andrew Morton Message-Id: <20061003002014.321f68b6.akpm@osdl.org> In-Reply-To: <17698.2424.528747.211313@cargo.ozlabs.ibm.com> References: <20061003010842.438670755@goop.org> <20061003010933.392428107@goop.org> <17697.58794.113796.925995@cargo.ozlabs.ibm.com> <20061002213347.8229b6fc.akpm@osdl.org> <17697.62198.476469.265990@cargo.ozlabs.ibm.com> <20061002225053.46be0324.akpm@osdl.org> <17698.2424.528747.211313@cargo.ozlabs.ibm.com> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Oct 2006 16:55:52 +1000 Paul Mackerras wrote: > That is because the nvidia console driver has changed the line pitch > from what the firmware set it to. This should fix it by making the > nvidia driver inform the btext engine (which xmon uses if the screen > is its output device) about changes to display resolution. > > Signed-off-by: Paul Mackerras > --- > diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c > index d4f8501..18b9101 100644 > --- a/drivers/video/nvidia/nvidia.c > +++ b/drivers/video/nvidia/nvidia.c > @@ -28,6 +28,9 @@ #ifdef CONFIG_PPC_OF > #include > #include > #endif > +#ifdef CONFIG_BOOTX_TEXT > +#include > +#endif > > #include "nv_local.h" > #include "nv_type.h" > @@ -681,6 +684,13 @@ #endif > > nvidia_vga_protect(par, 0); > > +#ifdef CONFIG_BOOTX_TEXT > + /* Update debug text engine */ > + btext_update_display(info->fix.smem_start, > + info->var.xres, info->var.yres, > + info->var.bits_per_pixel, info->fix.line_length); > +#endif yup, that fixed it. xmon apparently doesn't know where fbcon's output cursor is, but the characters are now readable.