Commit 81699fe8 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: add missing vram lost check for LEGACY RESET



Legacy resets reset the memory controllers so VRAM contents
may be unreliable after reset.

Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit aae94897)
Cc: stable@vger.kernel.org
parent 514678da
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3270,6 +3270,7 @@ static bool amdgpu_device_check_vram_lost(struct amdgpu_device *adev)
	 * always assumed to be lost.
	 */
	switch (amdgpu_asic_reset_method(adev)) {
	case AMD_RESET_METHOD_LEGACY:
	case AMD_RESET_METHOD_LINK:
	case AMD_RESET_METHOD_BACO:
	case AMD_RESET_METHOD_MODE1: