Discussion:
DRM leases + X = SW only OpenGL acceleration on child X server
Raimonds Cicans
2018-09-23 21:18:11 UTC
Permalink
Hi!

I am playing with new "DRM leases" feature.
I am trying to implement single video card multi-seat.

Questions:

1) is HW accelerated OpenGL possible at all on child X server?

2) if answer for first question is "yes", then what can cause following
behaviour?

DISPLAY=:100 glxgears # Main X server. Works without problem

DISPLAY=:101 glxgears # Child X server. Get following errors
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: radeonsi

All commands (X servers / glxgears) are run under root user.

Software versions:
Linux kernel: 4.16.12
libdrm: 2.4.93
xorg-server: 1.20.1
xf86-video-amdgpu: 18.1.0
mesa: 18.1.8



Raimonds Cicans
_______________________________________________
xorg-***@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo
Michel Dänzer
2018-09-24 09:17:12 UTC
Permalink
Post by Raimonds Cicans
Hi!
I am playing with new "DRM leases" feature.
I am trying to implement single video card multi-seat.
1) is HW accelerated OpenGL possible at all on child X server?
2) if answer for first question is "yes", then what can cause following
behaviour?
DISPLAY=:100 glxgears # Main X server. Works without problem
DISPLAY=:101 glxgears # Child X server. Get following errors
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: radeonsi
Please attach both Xorg log files and the output of

LIBGL_DEBUG=verbose DISPLAY=:101 glxgears
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
xorg-***@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.
Raimonds Cicans
2018-09-24 10:04:02 UTC
Permalink
Post by Michel Dänzer
Post by Raimonds Cicans
Hi!
I am playing with new "DRM leases" feature.
I am trying to implement single video card multi-seat.
1) is HW accelerated OpenGL possible at all on child X server?
2) if answer for first question is "yes", then what can cause following
behaviour?
DISPLAY=:100 glxgears # Main X server. Works without problem
DISPLAY=:101 glxgears # Child X server. Get following errors
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: radeonsi
Please attach both Xorg log files and the output of
LIBGL_DEBUG=verbose DISPLAY=:101 glxgears
All files attached.



Raimonds Cicans
Michel Dänzer
2018-09-24 10:18:10 UTC
Permalink
Post by Raimonds Cicans
Post by Michel Dänzer
Post by Raimonds Cicans
Hi!
I am playing with new "DRM leases" feature.
I am trying to implement single video card multi-seat.
1) is HW accelerated OpenGL possible at all on child X server?
2) if answer for first question is "yes", then what can cause following
behaviour?
DISPLAY=:100 glxgears # Main X server. Works without problem
DISPLAY=:101 glxgears # Child X server. Get following errors
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: radeonsi
Please attach both Xorg log files and the output of
LIBGL_DEBUG=verbose DISPLAY=:101 glxgears
All files attached.
Looks like drmAuthMagic returns an error for the leased FD in the Xorg
process.

Keith, was this working for you?
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
xorg-***@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.or
Keith Packard
2018-09-24 16:13:45 UTC
Permalink
Post by Michel Dänzer
Looks like drmAuthMagic returns an error for the leased FD in the Xorg
process.
Keith, was this working for you?
At one point, I'm nearly certain it was, but I haven't messed with this
in a while.
--
-keith
Raimonds Cicans
2018-09-25 16:06:18 UTC
Permalink
Post by Keith Packard
Post by Michel Dänzer
Looks like drmAuthMagic returns an error for the leased FD in the Xorg
process.
Keith, was this working for you?
At one point, I'm nearly certain it was, but I haven't messed with this
in a while.
Some questions:
1) Which video drivers support DRM leases? Only amdgpu?
2) Which video driver must load child X server? modesetting? Same as
master X server?


Raimonds Cicans


_______________________________________________
xorg-***@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Keith Packard
2018-09-25 17:32:40 UTC
Permalink
Post by Raimonds Cicans
1) Which video drivers support DRM leases? Only amdgpu?
Both amdgpu and modesetting.
Post by Raimonds Cicans
2) Which video driver must load child X server? modesetting? Same as
master X server?
Only modesetting appears to use xf86DRMMasterFd at this point; adding
that to amdgpu should be straightforward though.
--
-keith
Loading...