From 9145ce0bb2aa21e6d6b24395814bfbbe2b8ca118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Larumbe?= Date: Wed, 29 Apr 2026 20:46:42 +0100 Subject: [PATCH] pan/kmod: Fix minor version number check for USER_MMIO_OFFSET ioctl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It has been available in the Panthor KMD since 1.5 Fixes: 590ad83b980e ("panfrost: Use pan_image_test_modifier_with_format() to do our modifier check") Reviewed-by: Boris Brezillon Signed-off-by: Adrián Larumbe Part-of: --- src/panfrost/lib/kmod/panthor_kmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/kmod/panthor_kmod.c b/src/panfrost/lib/kmod/panthor_kmod.c index c25f2315e54..762f90d3b41 100644 --- a/src/panfrost/lib/kmod/panthor_kmod.c +++ b/src/panfrost/lib/kmod/panthor_kmod.c @@ -247,7 +247,7 @@ panthor_kmod_dev_create(int fd, uint32_t flags, drmVersionPtr version, } /* Map the LATEST_FLUSH_ID register at device creation time. */ - if (version->version_major > 1 || version->version_minor >= 10) { + if (version->version_major > 1 || version->version_minor >= 5) { struct drm_panthor_set_user_mmio_offset user_mmio_offset = { .offset = DRM_PANTHOR_USER_MMIO_OFFSET, };