Commit 1b4ca854 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>
parent d4be16cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment