Subject: windfarm_fcu_controls: cpu-pump-0 <HW FAULT>

From: Andreas Schwab <[email-masked]>
Date: Fri, 02 Aug 2013 21:08:25 +0200

wf_fcu_fan_get_rpm is returning EFAULT when reading the values for the
cpu pump controls on the PowerMac7,3.  Also, wf_fcu_get_pump_minmax is
unable to get the real limits and falls back to using the defaults.

Here is the output when DEBUG is defined:

wf_fcu: FCU Initialized, RPM fan shift is 3
Looking up FCU controls in device-tree...
 control: rpm0, type: fan-rpm-control
 matching location: CPU B PUMP, reg: 0x00000010
 location match, name: cpu-pump-1
wf_fcu: pump min/max for cpu-pump-1 set to: [1250..3200] RPM
wf_pm72: Liquid cooling pump(s) detected, using new algorithm !
 control: rpm1, type: fan-rpm-control
 matching location: CPU A PUMP, reg: 0x00000012
 location match, name: cpu-pump-0
wf_fcu: pump min/max for cpu-pump-0 set to: [1250..3200] RPM
 control: rpm2, type: fan-rpm-control
 matching location: DRIVE BAY, reg: 0x00000014
 location match, name: drive-bay-fan
wf_fcu: fan min/max for drive-bay-fan set to: [300..7000] RPM
 control: rpm3, type: fan-rpm-control
 matching location: CPU A INTAKE, reg: 0x00000016
 location match, name: cpu-front-fan-0
wf_fcu: fan min/max for cpu-front-fan-0 set to: [300..3200] RPM
 control: rpm4, type: fan-rpm-control
 matching location: CPU A EXHAUST, reg: 0x00000018
 location match, name: cpu-rear-fan-0
wf_fcu: fan min/max for cpu-rear-fan-0 set to: [300..3200] RPM
 control: rpm5, type: fan-rpm-control
 matching location: CPU B INTAKE, reg: 0x0000001a
 location match, name: cpu-front-fan-1
wf_fcu: fan min/max for cpu-front-fan-1 set to: [300..3200] RPM
 control: rpm6, type: fan-rpm-control
 matching location: CPU B EXHAUST, reg: 0x0000001c
 location match, name: cpu-rear-fan-1
wf_fcu: fan min/max for cpu-rear-fan-1 set to: [300..3200] RPM
 control: pwm1, type: fan-pwm-control
 matching location: BACKSIDE, reg: 0x00000032
 location match, name: backside-fan
 control: pwm2, type: fan-pwm-control
 matching location: SLOT, reg: 0x00000034
 location match, name: slots-fan
 control: adc0, type: power-sensor
 control: adc1, type: power-sensor
 control: adc2, type: power-sensor
 control: adc3, type: power-sensor
 control: gpi0, type: gpi-sensor
 control: gpi1, type: gpi-sensor

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."