drm/amd/pm: Add common throttler translation func
authorGraham Sider <Graham.Sider@amd.com>
Mon, 7 Jun 2021 13:35:01 +0000 (09:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Jun 2021 15:44:25 +0000 (11:44 -0400)
commitc23083cd373830bf26c195eb55f5df63a389e381
tree4d5589fa98bc4c9f798dd7f467bac15612bb5758
parent1049de4305ecc281367fc4e614c013b6c21a4d7f
drm/amd/pm: Add common throttler translation func

Defines smu_cmn_get_indep_throttler_status which performs ASIC
independent translation given a corresponding lookup table.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h