mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amd/pm: Enable performance determinism on aldebaran
Performance Determinism is a new mode in Aldebaran where PMFW tries to maintain sustained performance level. It can be enabled on a per-die basis on aldebaran. To guarantee that it remains within the power cap, a max GFX frequency needs to be specified in this mode. A new power_dpm_force_performance_level, "perf_determinism", is defined to enable this mode in amdgpu. The max frequency (in MHz) can be specified through pp_dpm_sclk. The mode will be disabled once any other performance level is chosen. Ex: To enable perf determinism at 900Mhz max gfx clock echo perf_determinism > /sys/bus/pci/devices/.../power_dpm_force_performance_level echo max 900 > /sys/bus/pci/devices/.../pp_dpm_sclk Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -48,6 +48,7 @@ enum amd_dpm_forced_level {
|
||||
AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK = 0x40,
|
||||
AMD_DPM_FORCED_LEVEL_PROFILE_PEAK = 0x80,
|
||||
AMD_DPM_FORCED_LEVEL_PROFILE_EXIT = 0x100,
|
||||
AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM = 0x200,
|
||||
};
|
||||
|
||||
enum amd_pm_state_type {
|
||||
|
||||
Reference in New Issue
Block a user