From: Thomas Winischhofer <thomas@winischhofer.net>
To: adaplas@pol.net
Cc: Andrew Morton <akpm@osdl.org>,
Linux Fbdev development list
<linux-fbdev-devel@lists.sourceforge.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5][RFC] fbdev: Clean up framebuffer initialization
Date: Sat, 04 Sep 2004 05:36:09 +0200 [thread overview]
Message-ID: <41393829.6020302@winischhofer.net> (raw)
In-Reply-To: <200409041108.40276.adaplas@hotpop.com>
Antonino A. Daplas wrote:
> This patch probably deserves discussion among developers.
>
> Currently, the framebuffer system is initialized in a roundabout manner.
> First, drivers/char/mem.c calls fbmem_init(). fbmem_init() will then
> iterate over an array of individual drivers' xxxfb_init(), then each driver
> registers its presence back to fbmem. During console_init(),
> drivers/char/vt.c will call fb_console_init(). fbcon will check for
> registered drivers, and if any are present, will call take_over_console() in
> drivers/char/vt.c.
>
> This patch changes the initialization sequence so it proceeds in this
> manner: Each driver has its own module_init(). Each driver calls
> register_framebuffer() in fbmem.c. fbmem.c will then notify fbcon of the
> driver registration. Upon notification, fbcon calls take_over_console() in
> vt.c.
>
> The following are the changes brought about by this patch:
>
> 1. Each subsystem (fbcon, fbmem, xxxfb) will have their own module_init.
> Thus, explicit calls to each subsystem's init functions are eliminated.
>
> 2. The struct fb_drivers array in fbmem.c can be removed. This slashes
> around 400 lines in fbmem.c
>
> 3. Parsing of kernel boot options were done by fbmem.c calling each
> driver's xxxfb_setup() function. Because this is not possible with this
> patch, drivers can choose to either:
> a. have their own __setup() routine
> b. call fb_get_options("xxxfb") and pass the return value to
> xxxfb_setup(). This is to maintain compatibility with the
> 'video=xxxfb:<options>' semantics.
>
> 4. Getting a framebuffer console will occur a bit late during the boot
> process since the initialization sequence will depend upon the link order.
> So, 'video/' is moved up in drivers/Makefile, shortly after 'pci/'
>
> 5. Because driver initialization will be dependent on the link order,
> hardware that depends on other subsystems (agpgart, usb, serial, etc) may
> choose to initialize after the subsystems they depend on.
>
> Signed-off-by: Antonino Daplas <adaplas@pol.net>
I don't really see a benefit but it's ok with me.
(Thanks for considering the "unified" nature of sisfb, by the way. Very
considarate. Very much appreciated.)
I assume that you tested this stuff before posting it here.
Thomsd
--
Thomas Winischhofer
Vienna/Austria
thomas AT winischhofer DOT net http://www.winischhofer.net/
twini AT xfree86 DOT org
next prev parent reply other threads:[~2004-09-04 3:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-04 3:08 [PATCH 4/5][RFC] fbdev: Clean up framebuffer initialization Antonino A. Daplas
2004-09-04 3:08 ` Antonino A. Daplas
2004-09-04 3:36 ` Thomas Winischhofer [this message]
2004-09-04 6:53 ` Antonino A. Daplas
2004-09-04 6:53 ` Antonino A. Daplas
2004-09-04 7:46 ` Otto Wyss
2004-09-04 12:37 ` Antonino A. Daplas
2004-09-05 9:16 ` Geert Uytterhoeven
2004-09-05 9:16 ` [Linux-fbdev-devel] " Geert Uytterhoeven
2004-09-05 9:50 ` Antonino A. Daplas
2004-09-05 10:13 ` Geert Uytterhoeven
2004-09-05 10:40 ` Antonino A. Daplas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41393829.6020302@winischhofer.net \
--to=thomas@winischhofer.net \
--cc=adaplas@pol.net \
--cc=akpm@osdl.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.