diff options
author | Xiaogang Chen <xiaogang.chen@amd.com> | 2023-03-09 17:44:55 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-13 17:27:47 -0400 |
commit | 0fb44d54c66ea74b7c148aca8dbd683c47232018 (patch) | |
tree | 72ec16272855fc5a612f69f04bf8f13e2edf2c25 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
parent | 67f3c2096909c457c64f96954efee36e48299991 (diff) |
drm/amdkfd: Get prange->offset after svm_range_vram_node_new
During miration to vram prange->offset is valid after vram buffer is located,
either use old one or allocate a new one. Move svm_range_vram_node_new before
migrate for each vma to get valid prange->offset.
v2: squash in warning fix
Fixes: 9473b6b25b83 ("drm/amdkfd: Fix BO offset for multi-VMA page migration")
Signed-off-by: Xiaogang Chen <Xiaogang.Chen@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
0 files changed, 0 insertions, 0 deletions