mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
drm/amdgpu: introduce runtime pm mode
It can benefit code consistency in future. Suggested-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Guchun Chen <guchun.chen@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
2d04559e06
commit
50fe04d46a
@@ -45,6 +45,13 @@ enum amdgpu_int_thermal_type {
|
||||
THERMAL_TYPE_KV,
|
||||
};
|
||||
|
||||
enum amdgpu_runpm_mode {
|
||||
AMDGPU_RUNPM_NONE,
|
||||
AMDGPU_RUNPM_PX,
|
||||
AMDGPU_RUNPM_BOCO,
|
||||
AMDGPU_RUNPM_BACO,
|
||||
};
|
||||
|
||||
struct amdgpu_ps {
|
||||
u32 caps; /* vbios flags */
|
||||
u32 class; /* vbios flags */
|
||||
@@ -355,6 +362,8 @@ struct amdgpu_pm {
|
||||
struct amdgpu_ctx *stable_pstate_ctx;
|
||||
|
||||
struct config_table_setting config_table;
|
||||
/* runtime mode */
|
||||
enum amdgpu_runpm_mode rpm_mode;
|
||||
};
|
||||
|
||||
int amdgpu_dpm_read_sensor(struct amdgpu_device *adev, enum amd_pp_sensors sensor,
|
||||
|
||||
Reference in New Issue
Block a user