drm/amdgpu: fix a potential GPU hang on cyan skillfish
authorLang Yu <Lang.Yu@amd.com>
Fri, 28 Jan 2022 10:24:53 +0000 (18:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Feb 2022 23:35:00 +0000 (18:35 -0500)
commitbca52455a3c07922ee976714b00563a13a29ab15
tree93fc4ee9b597fe672b364c4295b05d4c2004ff80
parent04ef860469fda6a646dc841190d05b31fae68e8c
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 <Lang.Yu@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c