aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorLang Yu <[email protected]>2022-06-07 07:58:23 +0000
committerAlex Deucher <[email protected]>2022-07-05 20:09:55 +0000
commit4bdb9d6501763e83bacbf26846754c567773a1fb (patch)
tree77fcec2153b7cdf4f50f52046282a64126ffa711 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amd: Add debug mask for subviewport mclk switch (diff)
downloadkernel-4bdb9d6501763e83bacbf26846754c567773a1fb.tar.gz
kernel-4bdb9d6501763e83bacbf26846754c567773a1fb.zip
drm/amdkfd: simplify vm_validate_pt_pd_bos
We don't need to validate and map root PD specially here, it would be validated and mapped by amdgpu_vm_validate_pt_bos if it is evicted. The special case is when turning a GFX VM to a compute VM, if vm_update_mode changed, we should make sure root PD gets mapped. So just map root PD after updating vm->update_funcs in amdgpu_vm_make_compute whether the vm_update_mode changed or not. v3: - Add some comments suggested by Christian. v2: - Don't rename vm_validate_pt_pd_bos and make it public. Signed-off-by: Lang Yu <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions