drm/amdgpu: enable soft reset for gfx 11
authorLikun Gao <Likun.Gao@amd.com>
Tue, 31 May 2022 02:30:14 +0000 (10:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jul 2022 15:25:16 +0000 (11:25 -0400)
Enable soft reset for gfx 11.
V2: enable both gfx v11.0.0 and gfx v11.0.2.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index 495848515edfa2a4400d0b3bace9127786761139..765c3543ad183a4610b836131fdf9b79b933b39a 100644 (file)
@@ -417,7 +417,13 @@ static uint32_t soc21_get_rev_id(struct amdgpu_device *adev)
 
 static bool soc21_need_full_reset(struct amdgpu_device *adev)
 {
-       return true;
+       switch (adev->ip_versions[GC_HWIP][0]) {
+       case IP_VERSION(11, 0, 0):
+       case IP_VERSION(11, 0, 2):
+               return false;
+       default:
+               return true;
+       }
 }
 
 static bool soc21_need_reset_on_init(struct amdgpu_device *adev)