mirror of
https://github.com/torvalds/linux.git
synced 2026-09-28 12:02:03 +02:00
drm/msm: Fix per-process-pgtables check
ctx->vm should not be inialized yet (or if it has, an error is returned immediately following this check), so this isn't a valid way to check for per-process-pgtable support. Instead just check if create_private_vm() is supported. Reported-by: Sashiko <sashiko-bot@kernel.org> Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/743096/ Message-ID: <20260729155609.20190-17-robin.clark@oss.qualcomm.com>
This commit is contained in:
parent
3b35a5c528
commit
1b8029394f
|
|
@ -513,7 +513,7 @@ int adreno_set_param(struct msm_gpu *gpu, struct msm_context *ctx,
|
|||
guard(rwsem_read)(&ctx->ctxlock);
|
||||
|
||||
/* We can only support VM_BIND with per-process pgtables: */
|
||||
if (ctx->vm == gpu->vm)
|
||||
if (!gpu->funcs->create_private_vm)
|
||||
return UERR(EINVAL, drm, "requires per-process pgtables");
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user