Skip to content

Commit bca5245

Browse files
Lang Yualexdeucher
authored andcommitted
drm/amdgpu: fix a potential GPU hang on cyan skillfish
We observed a GPU hang when querying GMC CG state(i.e., cat amdgpu_pm_info) on cyan skillfish. Acctually, cyan skillfish doesn't support any CG features. Just prevent it from accessing GMC CG registers. Signed-off-by: Lang Yu <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 04ef860 commit bca5245

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,9 @@ static void gmc_v10_0_get_clockgating_state(void *handle, u32 *flags)
11401140
{
11411141
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
11421142

1143+
if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 1, 3))
1144+
return;
1145+
11431146
adev->mmhub.funcs->get_clockgating(adev, flags);
11441147

11451148
if (adev->ip_versions[ATHUB_HWIP][0] >= IP_VERSION(2, 1, 0))

0 commit comments

Comments
 (0)