[PATCH v3 1/7] drm/amdgpu: Check correct field in amdgpu_ttm_tt_is_userptr()
Tvrtko Ursulin <[email protected]> Thu, 6 Aug 2026 14:47:06 +0100
| Newsgroups | org.freedesktop.lists.amd-gfx |
|---|---|
| Message-ID | <[email protected]> |
Presence of a task is a better indicator whether something is a userptr than the address of an userspace VMA. Signed-off-by: Tvrtko Ursulin <[email protected]> Suggested-by: Christian König <[email protected]> --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 91b7bf6e65f5..f4cc1d8ac4c4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1401,7 +1401,7 @@ bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm) { struct amdgpu_ttm_tt *gtt = ttm_to_amdgpu_ttm_tt(ttm); - if (gtt == NULL || !gtt->userptr) + if (gtt == NULL || !gtt->usertask) return false; return true; -- 2.54.0