drm/amd/powerplay: bypass dpm_context null pointer check guard for some smu series
authorPrike Liang <Prike.Liang@amd.com>
Wed, 18 Sep 2019 07:11:34 +0000 (15:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:04 +0000 (09:11 -0500)
commitaf1ec44f9a56354bac98d000cbac2c8fed1f2e87
tree054b3ac0599e4b8da3e9e6a7968ef0e2e0fc98bd
parent227f7d58d707fa6d931a1e16d29eb3e1c41ad67d
drm/amd/powerplay: bypass dpm_context null pointer check guard for some smu series

For now APU has no smu_dpm_context structure for containing default/current related dpm tables,
thus will needn't initialize smu_dpm_context to aviod APU null pointer issue.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/renoir_ppt.c