aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/panthor/panthor_sched.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2024-09-06 11:25:38 +1000
committerDave Airlie <airlied@redhat.com>2024-09-06 11:25:46 +1000
commitca10367a5abe5f04df1374b227a10439ef686b90 (patch)
treed5be738851922d962f9146ec39c706aabd41bece /drivers/gpu/drm/panthor/panthor_sched.c
parentMerge tag 'drm-xe-fixes-2024-09-05' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes (diff)
parentdrm/fbdev-dma: Only install deferred I/O if necessary (diff)
downloadwireguard-linux-ca10367a5abe5f04df1374b227a10439ef686b90.tar.xz
wireguard-linux-ca10367a5abe5f04df1374b227a10439ef686b90.zip
Merge tag 'drm-misc-fixes-2024-09-05' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
A zpos normalization fix for komeda, a register bitmask fix for nouveau, a memory leak fix for imagination, three fixes for the recent bridge HDMI work, a potential DoS fix and a cache coherency for panthor, a change of panel compatible and a deferred-io fix when used with non-highmem memory. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <mripard@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240905-original-radical-guan-e7a2ae@houat
Diffstat (limited to 'drivers/gpu/drm/panthor/panthor_sched.c')
-rw-r--r--drivers/gpu/drm/panthor/panthor_sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panthor/panthor_sched.c b/drivers/gpu/drm/panthor/panthor_sched.c
index 463bcd3cf00f..12b272a912f8 100644
--- a/drivers/gpu/drm/panthor/panthor_sched.c
+++ b/drivers/gpu/drm/panthor/panthor_sched.c
@@ -3092,7 +3092,7 @@ int panthor_group_create(struct panthor_file *pfile,
if (group_args->pad)
return -EINVAL;
- if (group_args->priority > PANTHOR_CSG_PRIORITY_HIGH)
+ if (group_args->priority >= PANTHOR_CSG_PRIORITY_COUNT)
return -EINVAL;
if ((group_args->compute_core_mask & ~ptdev->gpu_info.shader_present) ||