drm/radeon: bind fan control on CI cards to hwmon interface (v2)
This adds a possibility to control fan on CI parts via exported hwmon variables. Note that automatic ucode fan management pauses if you choose to enable manual fan control. Use with caution! v2: agd5f: fix formatting, squash in: minor fix for pwm1_enable exposed value Track smc control in addition to fan mode This fixes pwm1_enable being constantly set to 1 because of enabled smc control also handle the case where smc fan control is disabled. Signed-off-by: Oleg Chernovskiy <algonkvel@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
99736703a9
commit
36689e5750
@@ -861,6 +861,13 @@ int ci_dpm_force_performance_level(struct radeon_device *rdev,
|
||||
bool ci_dpm_vblank_too_short(struct radeon_device *rdev);
|
||||
void ci_dpm_powergate_uvd(struct radeon_device *rdev, bool gate);
|
||||
|
||||
int ci_fan_ctrl_get_fan_speed_percent(struct radeon_device *rdev,
|
||||
u32 *speed);
|
||||
int ci_fan_ctrl_set_fan_speed_percent(struct radeon_device *rdev,
|
||||
u32 speed);
|
||||
u32 ci_fan_ctrl_get_mode(struct radeon_device *rdev);
|
||||
void ci_fan_ctrl_set_mode(struct radeon_device *rdev, u32 mode);
|
||||
|
||||
int kv_dpm_init(struct radeon_device *rdev);
|
||||
int kv_dpm_enable(struct radeon_device *rdev);
|
||||
int kv_dpm_late_enable(struct radeon_device *rdev);
|
||||
|
Reference in New Issue
Block a user