1. 31 1月, 2012 1 次提交
    • J
      iwlwifi: fix uCode event tracing · 2b2db58d
      Johannes Berg 提交于
      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: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      2b2db58d
  2. 29 1月, 2012 1 次提交
    • J
      iwlwifi: fix uCode event tracing · 98d4bf0c
      Johannes Berg 提交于
      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: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      98d4bf0c
  3. 25 1月, 2012 1 次提交
  4. 07 1月, 2012 1 次提交
  5. 16 12月, 2011 4 次提交
  6. 09 12月, 2011 1 次提交
  7. 07 12月, 2011 1 次提交
  8. 03 12月, 2011 1 次提交
  9. 12 11月, 2011 2 次提交
  10. 15 10月, 2011 2 次提交
  11. 28 9月, 2011 1 次提交
  12. 20 9月, 2011 1 次提交
  13. 15 9月, 2011 1 次提交
  14. 30 8月, 2011 12 次提交
  15. 21 7月, 2011 2 次提交
  16. 18 6月, 2011 1 次提交
  17. 11 6月, 2011 1 次提交
  18. 01 5月, 2011 1 次提交
  19. 23 4月, 2011 2 次提交
  20. 19 4月, 2011 1 次提交
  21. 08 4月, 2011 2 次提交
    • J
      iwlagn: clean up & autodetect statistics · 0da0e5bf
      Johannes Berg 提交于
      There's no need to keep both normal and BT statistics
      versions around all the time in memory when we only
      use a subset of both. So keep only the subsets that
      we need in memory, depending on the debug config).
      
      Also, in doing so, we can remove all the calls to
      iwl_bt_statistics() in the driver as we'll just
      access the copied statistics now.
      
      Finally, also remove this call from the one place
      where it might still be needed and automatically
      detect what kind of statistics the device is sending
      based on their size. This way, we don't need to keep
      track of which devices do what any more, which is
      good since this is subject to change based on the
      ucode version (as some ucode even for non-BT devices
      will in fact use BT statistics).
      
      Warn upon encountering a statistics command from the
      ucode that isn't known, so we will find such issues
      earlier in the future.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Tested-by: NDon Fry <donald.h.fry@intel.com>
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      0da0e5bf
    • W
      iwlagn: sensitivity and chain noise done by driver · 703bc583
      Wey-Yi Guy 提交于
      _agn driver should perform both sensitivity and chain noise calib.
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      703bc583