Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755548AbYCKUVn (ORCPT ); Tue, 11 Mar 2008 16:21:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754286AbYCKUVf (ORCPT ); Tue, 11 Mar 2008 16:21:35 -0400 Received: from mail.queued.net ([207.210.101.209]:3959 "EHLO mail.queued.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753386AbYCKUVd (ORCPT ); Tue, 11 Mar 2008 16:21:33 -0400 Date: Tue, 11 Mar 2008 16:25:25 -0400 From: Andres Salomon To: Andrew Morton Cc: adaplas@gmail.com, linux-kernel@vger.kernel.org, linux-fbdev-devel@lists.sourceforge.net, info-linux@geode.amd.com, jordan.crouse@amd.com, dwmw2@infradead.org Subject: Re: [PATCH 1/4] gxfb: Replace FBSIZE config option with a kernel argument Message-ID: <20080311162525.04a9cc47@ephemeral> In-Reply-To: <20080227163105.e1b96023.akpm@linux-foundation.org> References: <20080223011045.48e6cb8e@ephemeral> <20080227163105.e1b96023.akpm@linux-foundation.org> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.12.0; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7213 Lines: 240 On Wed, 27 Feb 2008 16:31:05 -0800 Andrew Morton wrote: > On Sat, 23 Feb 2008 01:10:45 -0500 > Andres Salomon wrote: > > > @@ -425,7 +424,10 @@ static int __init gxfb_setup(char *options) > > if (!*opt) > > continue; > > > > - mode_option = opt; > > + if (!strncmp(opt, "fbsize:", 7)) > > + fbsize = simple_strtoul(opt+7, NULL, 0); > > + else > > + mode_option = opt; > > } > > The above shouldn't be necessary. > > And it should have been documented in Documentation/kernel-parameters.txt. > > And "fbsize=N" would be a lot more conventional than "fbsize:N" > > I suspect that the formulation you have here will not permit "fbsize:128k", > whereas "fbsize=128k" or "gxfb.fbsize=128k" should work. Needs checking. > > > return 0; > > @@ -456,5 +458,8 @@ module_exit(gxfb_cleanup); > > module_param(mode_option, charp, 0); > > MODULE_PARM_DESC(mode_option, "video mode (x[-][@])"); > > > > +module_param(fbsize, int, 0); > > +MODULE_PARM_DESC(fbsize, "video memory size"); > > + > > Because the module_param() already makes fbsize available on the kernel > boot command line via gxfb.fbsize=42 (or something similar). > > Thanks, here's an updated patch: Use a command line option (vram) rather than hardcoding the vram size. LxFB already does this; it's useful for machines that can't query the BIOS for fb size. This patch originated from David Woodhouse, was modified by Jordan Crouse, and was then modified further by me. This also adds some gxfb documentation in Documentation/fb. Signed-off-by: Andres Salomon --- Documentation/fb/gxfb.txt | 51 ++++++++++++++++++++++++++++++++++++++ drivers/video/geode/Kconfig | 20 --------------- drivers/video/geode/display_gx.c | 7 ----- drivers/video/geode/gxfb_core.c | 14 ++++++---- 4 files changed, 59 insertions(+), 33 deletions(-) create mode 100644 Documentation/fb/gxfb.txt diff --git a/Documentation/fb/gxfb.txt b/Documentation/fb/gxfb.txt new file mode 100644 index 0000000..2d3dbaf --- /dev/null +++ b/Documentation/fb/gxfb.txt @@ -0,0 +1,51 @@ +[This file is cloned from VesaFB/aty128fb] + +What is gxfb? +================= + +This is a graphics framebuffer driver for AMD Geode GX2 based processors. + +Advantages: + + * No need to use AMD's VSA code (or other VESA emulation layer) in the + BIOS. + * It provides a nice large console (128 cols + 48 lines with 1024x768) + without using tiny, unreadable fonts. + * You can run XF68_FBDev on top of /dev/fb0 + * Most important: boot logo :-) + +Disadvantages: + + * graphic mode is slower than text mode... + + +How to use it? +============== + +Switching modes is done using gxfb.mode_option=... boot +parameter or using `fbset' program. + +See Documentation/fb/modedb.txt for more information on modedb +resolutions. + + +X11 +=== + +XF68_FBDev should generally work fine, but it is non-accelerated. + + +Configuration +============= + +You can pass kernel command line options to gxfb with gxfb.