Commit 2be4c4a9 authored by xinhui pan's avatar xinhui pan Committed by Alex Deucher
Browse files

drm/amdgpu: reserve bad pages during recovery



Mark vram pages with errors as bad and prevent the driver
from using them.

Signed-off-by: default avatarxinhui pan <xinhui.pan@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 36ea1bd2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
			}
		}
	}