aha/drivers/net/wireless/iwlwifi
Wey-Yi Guy 7812b16730 iwlwifi: reliable entering of critical temperature state
When uCode detects critical temperature it should send "card state
notification" interrupt to driver and then shut itself down to prevent
overheating. There is a race condition where uCode shuts down before it
can deliver the interrupt to driver.
Additional method provided here for driver to enter CT_KILL state based
on temperature reading.

How it works:
Method 1:
If driver receive "card state notification" interrupt from uCode; it
enters "CT_KILL" state immediately

Method 2:
If the last temperature report by Card reach Critical temperature,
driver will send "statistic notification" request to uCode to verify the
temperature reading, if driver can not get reply from uCode within
300ms, driver will enter CT_KILL state automatically.

Method 3:
If the last temperature report by Card did not reach Critical
temperature, but uCode already shut down due to critical temperature.
All the host commands send to uCode will not get process by uCode;
when command queue reach the limit, driver will check the last reported
temperature reading, if it is within pre-defined margin, enter "CT_KILL"
state immediately. In this case, when uCode ready to exit from "CT_KILL" state,
driver need to restart the adapter in order to reset all the queues and
resume normal operation.

One additional issue being address here, when system is in CT_KILL
state, both tx and rx already stopped, but driver still can send host
command to uCode, it will flood the command queue since card was not
responding; adding STATUS_CT_KILL flag to reject enqueue host commands
to uCode if it is in CT_KILL state, when uCode is ready to come out of
CT_KILL, driver will clear  the STATUS_CT_KILL bit and allow enqueue the host
commands to uCode to recover from CT_KILL state.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-10-07 16:39:44 -04:00
..
iwl-1000.c iwlwifi: add module firmware info for 1000 series 2009-10-07 16:39:37 -04:00
iwl-3945-fh.h
iwl-3945-hw.h
iwl-3945-led.c
iwl-3945-led.h
iwl-3945-rs.c
iwl-3945.c iwlwifi: Adjust blink rate to compensate Clock difference 2009-10-07 16:39:32 -04:00
iwl-3945.h iwlwifi: fix 3945 ucode info retrieval after failure 2009-09-28 16:55:05 -04:00
iwl-4965-hw.h
iwl-4965.c iwlwifi: Chain Noise Calibration for 6000 series 2009-10-07 16:39:36 -04:00
iwl-5000-hw.h
iwl-5000.c iwlwifi: Chain Noise Calibration for 6000 series 2009-10-07 16:39:36 -04:00
iwl-6000-hw.h
iwl-6000.c iwlwifi: support idle for 6000 series hw 2009-10-07 16:39:36 -04:00
iwl-agn-rs.c iwlwifi: add aggregation tables to the rate scaling algorithm 2009-10-07 16:39:34 -04:00
iwl-agn-rs.h iwlwifi: remove 60 Mbps from sband bitrates table 2009-08-31 14:42:09 -04:00
iwl-agn.c iwlwifi: update PCI Subsystem ID for 6000 series 2009-10-07 16:39:35 -04:00
iwl-calib.c iwlwifi: Chain Noise Calibration for 6000 series 2009-10-07 16:39:36 -04:00
iwl-calib.h
iwl-commands.h iwlwifi: send cmd to uCode to configure valid tx antenna 2009-10-07 16:39:35 -04:00
iwl-core.c iwlwifi: support idle for 6000 series hw 2009-10-07 16:39:36 -04:00
iwl-core.h iwlwifi: reliable entering of critical temperature state 2009-10-07 16:39:44 -04:00
iwl-csr.h
iwl-debug.h iwlwifi: show current tx power 2009-08-28 14:40:37 -04:00
iwl-debugfs.c iwlwifi: reliable entering of critical temperature state 2009-10-07 16:39:44 -04:00
iwl-dev.h iwlwifi: Chain Noise Calibration for 6000 series 2009-10-07 16:39:36 -04:00
iwl-eeprom.c iwlwifi: read enhanced tx power info from EEPROM image 2009-08-28 14:40:39 -04:00
iwl-eeprom.h iwlwifi: EEPROM version for 1000 and 6000 series 2009-10-07 16:39:33 -04:00
iwl-fh.h
iwl-hcmd.c
iwl-helpers.h
iwl-io.h
iwl-led.c iwlwifi: add LED mode to support different LED behavior 2009-10-07 16:39:35 -04:00
iwl-led.h iwlwifi: add LED mode to support different LED behavior 2009-10-07 16:39:35 -04:00
iwl-power.c iwlwifi: reliable entering of critical temperature state 2009-10-07 16:39:44 -04:00
iwl-power.h iwlwifi: reliable entering of critical temperature state 2009-10-07 16:39:44 -04:00
iwl-prph.h
iwl-rx.c iwlwifi: reduce noise when skb allocation fails 2009-09-23 11:35:53 -04:00
iwl-scan.c iwlwifi: drop lib80211 dependency 2009-10-07 16:39:40 -04:00
iwl-spectrum.c
iwl-spectrum.h
iwl-sta.c iwlwifi: do not send sync command while holding spinlock 2009-09-23 11:35:53 -04:00
iwl-sta.h
iwl-tx.c iwlwifi: reliable entering of critical temperature state 2009-10-07 16:39:44 -04:00
iwl3945-base.c iwlwifi: drop lib80211 dependency 2009-10-07 16:39:40 -04:00
Kconfig iwlwifi: drop lib80211 dependency 2009-10-07 16:39:40 -04:00
Makefile