diff options
author | Xiaogang Chen <xiaogang.chen@amd.com> | 2023-10-12 15:48:06 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-10-13 11:33:08 -0400 |
commit | ffa88b0019c20d0bacda7cd1463af86ec744d52e (patch) | |
tree | 68c0a4cd2f540c7d06ff164e3065659c98a657db /drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | |
parent | f20f3b0d6caf12cd9845e6552bf7da49060f515a (diff) |
drm/amdgpu: Correctly use bo_va->ref_count in compute VMs
This is needed to correctly handle BOs imported into compute VM from gfx.
Both kfd and gfx should use same bo_va and set bo_va->ref_count correctly
when map the Bos into same VM, otherwise we may trigger kernel general
protection when iterate mappings over bo_va's valids or invalids list.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Xiaogang Chen <Xiaogang.Chen@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Tested-by: Xiaogang Chen <Xiaogang.Chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c')
0 files changed, 0 insertions, 0 deletions