summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/pm/inc
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2023-08-11 11:13:59 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-08-31 23:40:14 +0300
commitd7bf1b556fcceaa81c0a18d7828258e7a6c383c2 (patch)
tree1f5912cccbbdf6e791072180cbdc3188848469c6 /drivers/gpu/drm/amd/pm/inc
parent1cf36599b97308622d619146b6801f5eddf282a9 (diff)
downloadlinux-d7bf1b556fcceaa81c0a18d7828258e7a6c383c2.tar.xz
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 <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc')
-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,