Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 138352e5 authored by xinhui pan's avatar xinhui pan Committed by Alex Deucher
Browse files

drm/amdgpu: skip gpu reset when ras error occured



gpu reset is not stable on vega20 A1.

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 5cb77114
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -182,10 +182,13 @@ int amdgpu_ras_reserve_bad_pages(struct amdgpu_device *adev);
static inline int amdgpu_ras_reset_gpu(struct amdgpu_device *adev,
		bool is_baco)
{
	/* remove me when gpu reset works on vega20 A1. */
#if 0
	struct amdgpu_ras *ras = amdgpu_ras_get_context(adev);

	if (atomic_cmpxchg(&ras->in_recovery, 0, 1) == 0)
		schedule_work(&ras->recovery_work);
#endif
	return 0;
}