From: xinhui pan Date: Mon, 21 Jan 2019 12:33:48 +0000 (+0800) Subject: drm/amdgpu: reserve bad pages during recovery X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2be4c4a9d47844b83082458ae369efc7ca60b997;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu: reserve bad pages during recovery Mark vram pages with errors as bad and prevent the driver from using them. Signed-off-by: xinhui pan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 1eb21981ede5..8b3978aad5ca 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -3399,6 +3399,11 @@ static int amdgpu_do_asic_reset(struct amdgpu_hive_info *hive, break; } } + + list_for_each_entry(tmp_adev, device_list_handle, + gmc.xgmi.head) { + amdgpu_ras_reserve_bad_pages(tmp_adev); + } } }