linux/drivers/net/wireless/iwlwifi
Johannes Berg 98d4bf0c49 iwlwifi: fix uCode event tracing
Fix multiple bugs in event tracing:

1) If you enable uCode tracing with the device down,
   it will still attempt to access the device and
   continuously log "MAC is in deep sleep!" errors.
   Fix this by only starting logging when the device
   is actually alive.

2) Now you can set the flag when the device is down,
   but logging doesn't happen when you bring it up.
   To fix that, start logging when the device comes
   alive. This means we don't log before -- we could
   do that but I don't need it right now.

3) For some reason we read the error instead of the
   event log -- use the right pointer.

4) Optimise SRAM reading of event log header.

5) Fix reading write pointer == capacity, which can
   happen due to racy SRAM access

6) Most importantly: fix an error where we would try
   to read WAY too many events (like 2^32-300) when
   we read the wrap counter before it is updated by
   the uCode -- this does happen in practice and will
   cause the driver to hang the machine.

7) Finally, change the timer to 10ms instead of 100ms
   as 100ms is too slow to capture all data with a
   normal event log and with 100ms the log will wrap
   multiple times before we have a chance to read it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
2012-01-28 08:08:13 -08:00
..
Kconfig iwlwifi: P2P is not enabled by default 2011-12-08 15:54:46 -08:00
Makefile iwlwifi: rename CONFIG_IWLWIFI_DEVICE_SVTOOL to CONFIG_IWLWIFI_DEVICE_TESTMODE 2011-12-08 15:54:30 -08:00
iwl-1000.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-2000.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-5000.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-6000.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-calib.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-calib.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-hw.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-lib.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-rs.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-rs.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-rx.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-rxon.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-sta.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-tt.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-tt.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn-tx.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-agn.c iwlwifi: fix uCode event tracing 2012-01-28 08:08:13 -08:00
iwl-agn.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-bus.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-cfg.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-commands.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-core.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-core.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-csr.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-debug.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-debugfs.c iwlwifi: fix uCode event tracing 2012-01-28 08:08:13 -08:00
iwl-dev.h iwlwifi: fix uCode event tracing 2012-01-28 08:08:13 -08:00
iwl-devtrace.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-devtrace.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-eeprom.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-eeprom.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-fh.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-io.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-io.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-led.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-led.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-mac80211.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-pci.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-power.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-power.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-prph.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-scan.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-shared.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-testmode.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-testmode.h iwlwifi: fix typo 2012-01-28 08:08:06 -08:00
iwl-trans-pcie-int.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-trans-pcie-rx.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-trans-pcie-tx.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-trans-pcie.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-trans.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-trans.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-ucode.c iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00
iwl-wifi.h iwlwifi: update Copyright 2012-01-24 14:08:36 -05:00