Skip to content
Commit d0386bd8 authored by Xiaogang Chen's avatar Xiaogang Chen Committed by Greg Kroah-Hartman
Browse files

drm/amdkfd: Get prange->offset after svm_range_vram_node_new



commit 8eeddc0d upstream.

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: b4ee9606 ("drm/amdkfd: Fix BO offset for multi-VMA page migration")
Signed-off-by: default avatarXiaogang Chen <Xiaogang.Chen@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fbfe4938
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment