Re: [linux-fbdev] Fwd: Re: module depencies during startup

Tea Age (th@visuelle-maschinen.de)
Wed, 28 Mar 2001 16:51:29 +0200


On Wednesday 28 March 2001 15:37, Geert Uytterhoeven wrote:
> On Wed, 28 Mar 2001, Tea Age wrote:
> > On Wednesday 28 March 2001 12:00, Sven LUTHER wrote:
> > > ...
> > > Note, drm, also in char, will need agp stuff for working also. Don't
> > > know how they do it though, since it obviously works ok right now.
> > >...
> >
> > After moving directories agp and drm from char into video and adapting
> > the Makefiles the agp is still initialized far after i810fb. :-(
>
> fbmem_init() <- chr_dev_init() <- device_init() <- partition_setup()
>
> partition_setup() seems to be part of $(CORE_FILES) in the main Makefile.
>
> Of course we can still wonder how graphics hardware is related to disk
> partitions...
> ...
OK, I think I need to modify some other sources to get this fixed.
I changed in agpgart_be.c:

Current version:
----------------
static int __init agp_init(void)
{
int ret_val;
...

Change to:
----------
int __init agp_init(void)
{
static int ret_val = 0;
static int woman = 0;
if (woman) return ret_val;
woman = 1;
...

Now I can invoke agp_init during i810fb_init and I get Tux!
Thanks to all helping in this matter.
I have no idea if this is the best solution and I do not know what to do to
get agpgart_be.c changed in the kernel tree.

Thomas

-
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/