From cdd607b3d8ae0acb980887b4aaeab8c53e044e94 Mon Sep 17 00:00:00 2001 From: Damian Hobson-Garcia Date: Thu, 14 Apr 2022 18:31:29 +0900 Subject: 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 --- .../meta-raspberrypi/recipes-graphics/mesa/mesa_20.0.2.bbappend | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-graphics/mesa/mesa_20.0.2.bbappend (limited to 'meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-graphics/mesa/mesa_20.0.2.bbappend') diff --git a/meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-graphics/mesa/mesa_20.0.2.bbappend b/meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-graphics/mesa/mesa_20.0.2.bbappend new file mode 100644 index 00000000..15e3aeba --- /dev/null +++ b/meta-agl-drm-lease/dynamic-layers/meta-raspberrypi/recipes-graphics/mesa/mesa_20.0.2.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://0001-Workaround-Disable-DRM_AUTH-checks-on-wayland-protocols.patch" + -- cgit 1.2.3-korg