amdgpu/pm: Implement new API function "emit" that accepts buffer base and write offset
authorDarren Powell <darren.powell@amd.com>
Sat, 4 Dec 2021 05:23:52 +0000 (00:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Feb 2022 23:27:58 +0000 (18:27 -0500)
commit5d64f9bbb6281a5a89a2266b9d39daa1fca1d6b4
tree68e54298ae308980f0137f26f8a12e5b71ee8dcd
parent4f860edecdafeb2e5fb29fecc6428090997936fe
amdgpu/pm: Implement new API function "emit" that accepts buffer base and write offset

   (v3)
     Rewrote patchset to order patches as (API, hw impl, usecase)

     - added API for new power management function emit_clk_levels
       This function should duplicate the functionality of print_clk_levels,
       but this solution passes the buffer base and write offset down the stack.
     - new powerplay function emit_clock_levels, implemented by smu_emit_ppclk_levels()
       This function parallels the implementation of smu_print_ppclk_levels and
       calls emit_clk_levels, and allows the returns of errors
     - new helper function smu_convert_to_smuclk called by smu_print_ppclk_levels and
       smu_emit_ppclk_levels

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/include/kgd_pp_interface.h
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h