amdgpu/pm: Implement emit_clk_levels for vega10
authorDarren Powell <darren.powell@amd.com>
Tue, 8 Mar 2022 02:40:35 +0000 (21:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Mar 2022 16:54:32 +0000 (12:54 -0400)
commita63e6b83c21424b6ecfca7ecbf605f9af75ae296
treede764ab06688247f7afee411cd3fc99db5c94ac3
parent5d8539d2fbe39ce24e76dfe72b7de7093d3fac6d
amdgpu/pm: Implement emit_clk_levels for vega10

   (v1)
     - implement emit_clk_levels for vega10, based on print_clk_levels,
       but using sysfs_emit rather than sprintf
     - modify local int vars to use uint32_t to match arg type of
       called functions
     - add return of error codes
     - refactor OD_XXX cases to return early with -EOPNOTSUPP if
       !(hwmgr->od_enabled)

Signed-off-by: Darren Powell <darren.powell@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c