Skip to content
Commit 7a824831 authored by Lin.Cao's avatar Lin.Cao Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: Fix vram recover doesn't work after whole GPU reset (v2)

commit 6c032c37 upstream.

v1: Vmbo->shadow is used to back vram bo up when vram lost. So that we
should set shadow as vmbo->shadow to recover vmbo->bo
v2: Modify if(vmbo->shadow) shadow = vmbo->shadow as if(!vmbo->shadow)
continue;

Fixes: e18aaea7

 ("drm/amdgpu: move shadow_list to amdgpu_bo_vm")
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarLin.Cao <lincao12@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6197fb33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment