OSDN Git Service

drm/amd/pm: Fix output of pp_od_clk_voltage
authorJonatas Esteves <jntesteves@gmail.com>
Sat, 20 May 2023 13:39:52 +0000 (10:39 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:45:26 +0000 (10:45 -0400)
commitab22ecabe99922db4bec8e2b439336f865bbc117
treeb2b508fafbf7294ab2503153e974402bc933e4dd
parenta3ffabb25077059427434368a1c65c176a0f93d0
drm/amd/pm: Fix output of pp_od_clk_voltage

Printing the other clock types should not be conditioned on being able
to print OD_SCLK. Some GPUs currently have limited capability of only
printing a subset of these.

Since this condition was introduced in v5.18-rc1, reading from
`pp_od_clk_voltage` has been returning empty on the Asus ROG Strix G15
(2021).

Fixes: 79c65f3fcbb1 ("drm/amd/pm: do not expose power implementation details to amdgpu_pm.c")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Jonatas Esteves <jntesteves@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c