Skip to content
Commit 0e5ac88f authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

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: default avatarChristian König <christian.koenig@amd.com>
Fixes: d1a372af ("drm/amdgpu: Set MTYPE in PTE based on BO flags")
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 1b4ca854)
Cc: stable@vger.kernel.org
parent df0279e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment