[PATCH 1/2] amdgpu/pm: Add new hwmgr API function "emit_clock_levels"

2022-03-12 Thread Darren Powell
Extend commit 7f36948c92b2 ("amdgpu/pm: Implement new API function "emit" that accepts buffer base and write offset") Add new hwmgr API function "emit_clock_levels" - add member emit_clock_levels to pp_hwmgr_func - Implemented pp_dpm_emit_clock_levels - add pp_dpm_emit_clock_levels to

[PATCH 2/2] amdgpu/pm: Implement emit_clk_levels for vega10

2022-03-12 Thread Darren Powell
(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 wit

[PATCH v1 0/2] amdgpu/pm: Implement parallel sysfs_emit solution for vega10

2022-03-12 Thread Darren Powell
== Description == Scnprintf use within the kernel is not recommended, but simple sysfs_emit replacement has not been successful due to the page alignment requirement of the function. This patch set implements a new api "emit_clock_levels" to facilitate passing both the base and offset to the dev