]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix the nullptr issue as for PWR IP not existing in discovery table
authorPrike.Liang <Prike.Liang@amd.com>
Fri, 5 Jun 2020 09:53:56 +0000 (17:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:19 +0000 (01:59 -0400)
commit87296d25665f255839159f538b234368fc3a4c8e
tree380f48720a45a2930e4b74b47cb72053c0fc6150
parente64dda325b016e3d076181df90cedae48b856552
drm/amdgpu: fix the nullptr issue as for PWR IP not existing in discovery table

Fixes: 4b79ad791cb866 ("drm/amdgpu: use IP discovery table for renoir")
This nullptr issue should be specific on the Renoir series during try access the PWR_MISC_CNTL_STATUS
when PWR IP not been detected by discovery table. Moreover the PWR IP not existing in Renoir series is
expected therefore just avoid access PWR register in Renoir series.

Signed-off-by: Prike.Liang <Prike.Liang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c