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
@@ -2118,6 +2118,10 @@ static struct radeon_asic ci_asic = {
|
||||
.force_performance_level = &ci_dpm_force_performance_level,
|
||||
.vblank_too_short = &ci_dpm_vblank_too_short,
|
||||
.powergate_uvd = &ci_dpm_powergate_uvd,
|
||||
.fan_ctrl_set_mode = &ci_fan_ctrl_set_mode,
|
||||
.fan_ctrl_get_mode = &ci_fan_ctrl_get_mode,
|
||||
.get_fan_speed_percent = &ci_fan_ctrl_get_fan_speed_percent,
|
||||
.set_fan_speed_percent = &ci_fan_ctrl_set_fan_speed_percent,
|
||||
},
|
||||
.pflip = {
|
||||
.page_flip = &evergreen_page_flip,
|
||||
|
Reference in New Issue
Block a user