[PATCH] drm/amdkfd: remove duplicate include of kfd_svm.h

2021-06-05 Thread Wan Jiabing
kfd_svm.h is included duplicately in commit 42de677f7 ("drm/amdkfd: register svm range"). After checking possible related header files, remove the former one to make the code format more reasonable. Signed-off-by: Wan Jiabing --- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 1 - 1 file

[PATCH] drm/amdgpu: fix VM handling for GART allocations

2021-06-05 Thread Christian König
For GTT allocations with a GART address the res contains the VMID0 addresses and can't be used for VM handling. So ignore the res when the pages array is given or we fill the page tables with nonsense. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++-- 1 file

Re: [PATCH] drm/amdkfd: pages_addr offset must be 0 for system range

2021-06-05 Thread Christian König
Am 05.06.21 um 01:10 schrieb Philip Yang: prange->offset is for VRAM range mm_nodes, if multiple ranges share same mm_nodes, migrate range back to VRAM will reuse the VRAM at offset of the same mm_nodes. For system memory pages_addr array, the offset is always 0, otherwise, update GPU mapping