Re: Sharing a KMS device

2018-09-18 Thread Troll Berserker
On 19/09/18 02:42, Keith Packard wrote: Troll Berserker writes: Hmm. I see that drmDropMaster became conditional: if (!ms->fd_passed) drmDropMaster(ms->fd); That's actually a fix which is necessary so that the lessee doesn't give away control of the whole device. I've miss

Re: Sharing a KMS device

2018-09-18 Thread Keith Packard
Troll Berserker writes: > Hmm. I see that drmDropMaster became conditional: > > if (!ms->fd_passed) > drmDropMaster(ms->fd); That's actually a fix which is necessary so that the lessee doesn't give away control of the whole device. > I was thinking that may be it is possible to im

Re: Sharing a KMS device

2018-09-18 Thread Troll Berserker
On 19/09/18 01:02, Keith Packard wrote: Troll Berserker writes: Cool. In your talk you even mentions multiseating. AFAIU with this technique one doesn't get multiple /dev/dri/card* for a GPU out of the box, so it is not possible to use unmodified modesetting driver to run multiple X servers.

Re: Sharing a KMS device

2018-09-18 Thread Keith Packard
Troll Berserker writes: > Cool. In your talk you even mentions multiseating. > AFAIU with this technique one doesn't get multiple /dev/dri/card* for > a GPU out of the box, so it is not possible to use unmodified > modesetting driver to run multiple X servers. Correct. I have posted X server pat

Re: Sharing a KMS device

2018-09-18 Thread Troll Berserker
On 18/09/18 22:49, Keith Packard wrote: Troll Berserker writes: Is it theoretically possible to implement a driver (let's call it shared-modesetting) which will offload mode setting to a helper daemon (drmMaster) thus allowing to run multiple Xorg servers on one DRM device? (provided that ther

Re: Sharing a KMS device

2018-09-18 Thread Keith Packard
Troll Berserker writes: > Is it theoretically possible to implement a driver (let's call it > shared-modesetting) which will offload mode setting to a helper daemon > (drmMaster) thus allowing to run multiple Xorg servers on one DRM > device? (provided that there are enough CRTCs (?) available).

Sharing a KMS device

2018-09-18 Thread Troll Berserker
In DRM, only one application can be drmMaster at a time. This is one of the reasons why one can't run a Xorg server per Connector to have multiseat with one GPU. Is it theoretically possible to implement a driver (let's call it shared-modesetting) which will offload mode setting to a helper dae