aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2024-10-31 10:04:17 +0100
committerAlex Deucher <alexander.deucher@amd.com>2024-11-11 14:05:44 -0500
commit0e5ac88fb918297a7484b67f2b484d43bed3fbbe (patch)
tree8c7892ce3865af6aac5fca6f300f7908105cc3c8 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdf0279e2a1c0735e8ca80c5df8d9f8f9fc120b4a (diff)
drm/amdgpu: fix check in gmc_v9_0_get_vm_pte()
The coherency flags can only be determined when the BO is locked and that in turn is only guaranteed when the mapping is validated. Fix the check, move the resource check into the function and add an assert that the BO is locked. Signed-off-by: Christian König <christian.koenig@amd.com> Fixes: d1a372af1c3d ("drm/amdgpu: Set MTYPE in PTE based on BO flags") Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 1b4ca8546f5b5c482717bedb8e031227b1541539) Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions