Re: gpu sharing layer for kernel

From: Dave Jones
Date: Sun Jan 28 2007 - 16:17:21 EST


On Thu, Jan 25, 2007 at 02:06:31PM -0800, Greg Kroah-Hartman wrote:
> On Thu, Jan 25, 2007 at 09:39:47AM +1100, Dave Airlie wrote:
> > >> Why do we want this?
> > >>
> > >> Currently the kernel cannot provide both the fb and drm drivers with
> > >> access to the device model and this means the drm cannot get any
> > >> suspend/resume callbacks. This layer attempts to fix this problem by
> > >> adding a bus for the gpu drivers to attach to. Currently a lowlevel
> > >> binding driver is needed along with optional fb and drm components.
> > >
> > >If we were to allow this kind of "sharing" for all PCI devices would
> > >that work out instead? Or would this layer still be needed?
> >
> > Initially this layer wouldn't be needed, but I'd like to add some
> > awareness to the drivers, so the drm can tell the fb to stop doing
> > stuff and vice-versa if necessary.... but perhaps that could be done
> > with a generic layer also.. or via the lowlevel driver I have...
>
> Ok, I have no objection to this layer right now, as it solves your
> problem, and while I would like some time in the future to add such a
> layer for the PCI devices, it is no where on my todo plate just yet...

It's been bubbling its way up my todo too, as agpgart is starting to
get bug reports due to conflicts when the EDAC drivers or watchdog
drivers 'claim' the south bridge ID before agp gets a chance to init.

Someone sent me some patches a few weeks back, but I seem to have mislaid
them. I'll turf them up and get the sender to send them to lkml.
They should at the least, make a starting point.

Dave

--
http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/