mirror_ubuntu-kernels/drivers/gpu/drm/amd
Felix Kuehling e49fe4040a drm/amdkfd: validate vram svm range from TTM
If svm range perfetch location is not zero, use TTM to alloc
amdgpu_bo vram nodes to validate svm range, then map vram nodes to GPUs.

Use offset to sub allocate from the same amdgpu_bo to handle overlap
vram range while adding new range or unmapping range.

svm_bo has ref count to trace the shared ranges. If all ranges of shared
amdgpu_bo are migrated to ram, ref count becomes 0, then amdgpu_bo is
released, all ranges svm_bo is set to NULL.

To migrate range from ram back to vram, allocate the same amdgpu_bo
with previous offset if the range has svm_bo.

If prange migrate to VRAM, no CPU mapping exist, then process exit will
not have unmap callback for this prange to free prange and svm bo. Free
outstanding pranges from svms list before process is freed in
svm_range_list_fini.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-04-20 21:48:08 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdkfd: set memory limit to avoid OOM with HMM enabled 2021-04-20 21:48:00 -04:00
amdkfd drm/amdkfd: validate vram svm range from TTM 2021-04-20 21:48:08 -04:00
display drm/amd/display: 3.2.132 2021-04-20 21:43:32 -04:00
include drm/amdgpu: only harvest gcea/mmea error status in arcturus 2021-04-20 21:35:45 -04:00
pm drm/amd/pm: fix error code in smu_set_power_limit() 2021-04-15 16:32:45 -04:00