drm-lease: RPi4: Disable DRM_AUTH checks on wayland_clients 05/27405/1
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Thu, 14 Apr 2022 09:31:29 +0000 (18:31 +0900)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Tue, 26 Apr 2022 06:37:59 +0000 (15:37 +0900)
commitcdd607b3d8ae0acb980887b4aaeab8c53e044e94
treea5052034e7a868972bf27fc4c94d472c1c97d2f3
parent2466346b7ae14089fbaf31e9b4863a1897812e2e
drm-lease: RPi4: Disable DRM_AUTH checks on wayland_clients

DRM authentication does not work via a DRM Leases because the client
can only authenticate against a lease owner (primary node), since
the lease does not have a corresponding device file in the filesystem
for clients to open.

Bypassing DRM authentication by using render nodes is not yet fully
supported in mesa, so for now, just try to authenticate and
continue even if it fails. Also remove the DRM_AUTH permissions
checks in the kernel for the necessary ioctls.

The DRM_AUTH checks for buffer import/export have
been removed in upstream kernels >= Linux 5.6, so just backport
that part of the implementation.

Bug-AGL: SPEC-4317

Change-Id: Ie6c82162037964da697d3ece80a8c463980d2658
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-graphics/mesa/mesa/0001-Workaround-Disable-DRM_AUTH-checks-on-wayland-protocols.patch [new file with mode: 0644]
meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-graphics/mesa/mesa_20.0.2.bbappend [new file with mode: 0644]
meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0001-drm-drop-DRM_AUTH-from-PRIME_TO-FROM_HANDLE-ioctls.patch [new file with mode: 0644]
meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.4.bbappend [new file with mode: 0644]