Lines Matching +full:thermal +full:- +full:diode

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Windfarm PowerMac thermal control.
93 #define LOW_OVER_CLEAR ((-10) << 16)
161 cpu_thist_total -= t_old; in cpu_check_overtemp()
187 /* High overtemp -> immediate shutdown */ in cpu_check_overtemp()
207 /* Get diode temperature */ in read_one_cpu_vals()
211 return -EIO; in read_one_cpu_vals()
220 return -EIO; in read_one_cpu_vals()
228 return -EIO; in read_one_cpu_vals()
256 wf_control_get(cpu_fans[cpu][0], &sp->target); in cpu_fans_tick()
275 DBG_LOTS(" CPU%d: target = %d RPM\n", cpu, sp->target); in cpu_fans_tick()
278 speed = max(sp->target, dimms_output_clamp); in cpu_fans_tick()
285 cpu_fans[cpu][i]->name, err); in cpu_fans_tick()
301 tmax = mpu->tmax << 16; in cpu_setup_pid()
302 ttarget = mpu->ttarget << 16; in cpu_setup_pid()
303 ptarget = ((s32)(mpu->pmaxh - mpu->padjmax)) << 16; in cpu_setup_pid()
318 hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); in cpu_setup_pid()
324 pid.gd = mpu->pid_gd; in cpu_setup_pid()
325 pid.gp = mpu->pid_gp; in cpu_setup_pid()
326 pid.gr = mpu->pid_gr; in cpu_setup_pid()
373 if (--backside_tick > 0) in backside_fan_tick()
460 if (--slots_tick > 0) in slots_fan_tick()
571 if (!strcmp(ct->name, "cpu-fan-a-0")) in rm31_new_control()
573 else if (!strcmp(ct->name, "cpu-fan-b-0")) in rm31_new_control()
575 else if (!strcmp(ct->name, "cpu-fan-c-0")) in rm31_new_control()
577 else if (!strcmp(ct->name, "cpu-fan-a-1")) in rm31_new_control()
579 else if (!strcmp(ct->name, "cpu-fan-b-1")) in rm31_new_control()
581 else if (!strcmp(ct->name, "cpu-fan-c-1")) in rm31_new_control()
583 else if (!strcmp(ct->name, "backside-fan")) in rm31_new_control()
585 else if (!strcmp(ct->name, "slots-fan")) in rm31_new_control()
587 else if (!strcmp(ct->name, "cpufreq-clamp")) in rm31_new_control()
609 if (!strcmp(sr->name, "cpu-diode-temp-0")) in rm31_new_sensor()
611 else if (!strcmp(sr->name, "cpu-diode-temp-1")) in rm31_new_sensor()
613 else if (!strcmp(sr->name, "cpu-voltage-0")) in rm31_new_sensor()
615 else if (!strcmp(sr->name, "cpu-voltage-1")) in rm31_new_sensor()
617 else if (!strcmp(sr->name, "cpu-current-0")) in rm31_new_sensor()
619 else if (!strcmp(sr->name, "cpu-current-1")) in rm31_new_sensor()
621 else if (!strcmp(sr->name, "backside-temp")) in rm31_new_sensor()
623 else if (!strcmp(sr->name, "slots-temp")) in rm31_new_sensor()
625 else if (!strcmp(sr->name, "dimms-temp")) in rm31_new_sensor()
690 return -ENODEV; in wf_rm31_init()
707 return -ENXIO; in wf_rm31_init()
733 MODULE_DESCRIPTION("Thermal control for Xserve G5");