aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
diff options
context:
space:
mode:
authorEvan Quan <[email protected]>2023-08-11 08:13:59 +0000
committerAlex Deucher <[email protected]>2023-08-31 20:40:14 +0000
commitd7bf1b556fcceaa81c0a18d7828258e7a6c383c2 (patch)
tree1f5912cccbbdf6e791072180cbdc3188848469c6 /drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
parentdrm/amdgpu/jpeg: initialize number of jpeg ring (diff)
downloadkernel-d7bf1b556fcceaa81c0a18d7828258e7a6c383c2.tar.gz
kernel-d7bf1b556fcceaa81c0a18d7828258e7a6c383c2.zip
drm/amd/pm: add fan temperature/pwm curve OD setting support for SMU13
Add SMU13 fan temperature/pwm curve OD setting support. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h')
-rw-r--r--drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
index 4cab6a2efb63..90544a8f450c 100644
--- a/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
+++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
@@ -314,6 +314,9 @@ struct config_table_setting
uint16_t fclk_average_tau;
};
+#define OD_OPS_SUPPORT_FAN_CURVE_RETRIEVE BIT(0)
+#define OD_OPS_SUPPORT_FAN_CURVE_SET BIT(1)
+
struct amdgpu_pm {
struct mutex mutex;
u32 current_sclk;
@@ -368,6 +371,7 @@ struct amdgpu_pm {
enum amdgpu_runpm_mode rpm_mode;
struct list_head od_kobj_list;
+ uint32_t od_feature_mask;
};
int amdgpu_dpm_read_sensor(struct amdgpu_device *adev, enum amd_pp_sensors sensor,