OSDN Git Service

drm/amdgpu/swsmu/aldebaran: fix check in is_dpm_running
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 May 2021 03:47:02 +0000 (23:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 May 2021 16:33:52 +0000 (12:33 -0400)
commitdd1d82c04e111b5a864638ede8965db2fe6d8653
tree8802e0cf9925d69a010f032783ddc625003af3a5
parentc1b63b4bb4bee8ccb9f513c36e7ace55aa09f447
drm/amdgpu/swsmu/aldebaran: fix check in is_dpm_running

If smu_cmn_get_enabled_mask() fails, return false to be
consistent with other asics.

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Lee Jones <lee.jones@linaro.org>
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c