]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce3cc00fe443e1e0bc1f7b55177b2f2791a17b47
tree93fc4ee9b597fe672b364c4295b05d4c2004ff80
parentbd64a3e9aa918b15f38cf907b26838d2c1245499
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