pan/kmod: Fix minor version number check for USER_MMIO_OFFSET ioctl

It has been available in the Panthor KMD since 1.5

Fixes: 590ad83b98 ("panfrost: Use pan_image_test_modifier_with_format() to do our modifier check")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
(cherry picked from commit 9145ce0bb2)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41402>
This commit is contained in:
Adrián Larumbe 2026-04-29 20:46:42 +01:00 committed by Eric Engestrom
parent d24a306681
commit 38ed6879bf
2 changed files with 2 additions and 2 deletions

View file

@ -2304,7 +2304,7 @@
"description": "pan/kmod: Fix minor version number check for USER_MMIO_OFFSET ioctl",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "590ad83b980e37e87bab6bcc7574e154729066ec",
"notes": null

View file

@ -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,
};