1. 22 5月, 2015 1 次提交
  2. 22 4月, 2015 2 次提交
    • M
      ath10k: fix qca61x4 hw2.1 support · 11a002ef
      Michal Kazior 提交于
      During initialization firmware does some sort of
      memory switch between DRAM and IRAM. If
      configuration value for bank switching isn't
      correct device crashes during init.
      
      The new value prevents firmware 11.0.0.302 (and
      possibly others) for qca61x4 hw2.1 from crashing
      during init.
      Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      11a002ef
    • M
      ath10k: allow loading device specific board files · de57e2c8
      Michal Kazior 提交于
      Some devices differ slightly and require different
      board files. If wrong board data is used they
      crash or behave incorrectly.
      
      These devices can be differentiated by looking at
      PCI subsystem device id. That is the case for
      qca61x4 devices at least.
      
      The board specific filename is constructed as:
      
       board-<bus>-<id>.bin
      
      For PCI in particular it is:
      
       board-pci-<vendor>:<dev>:<subsys_vendor>:<subsys_dev>.bin
      
      These files are looked in device/hw specific
      directories. Hence for Killer 1525 (qca6174 hw2.1)
      ath10k will request:
      
        /lib/firmware/ath10k/QCA6174/hw2.1/board-pci-168c:003e:1a56:1525.bin
      
      To not break any existing setups (e.g. in case
      some devices in the wild already have subsys ids)
      if a board specific file isn't found a generic one
      is used which is the one which would be used until
      now. This guarantees that after upgrading a driver
      device will not suddenly stop working due to
      now-missing specific board file. If this is the
      case a "fallback" string is appended to the info
      string when driver boots.
      
      Keep in mind this is distinct from cal-pci-*.bin
      files which contain full calibration data and MAC
      address. Cal data is aimed at systems where
      calibration data is stored out of band, e.g. on
      nand flash instead of device EEPROM - an approach
      taken by some AP/router vendors.
      
      Board files are more of a template and needs some
      bits to be filled in by the OTP program using
      device EEPROM contents.
      
      One could argue to map subsystem ids to some board
      design codename strings instead of using raw ids
      when building the board filename. Using a mapping
      however would make it a lot more cumbersome and
      time consuming (due to how patches propagate over
      various kernel trees) to add support for some new
      device board designs. Adding a board file is a lot
      quicker and doesn't require recompilation.
      Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      de57e2c8
  3. 17 4月, 2015 1 次提交
  4. 30 3月, 2015 1 次提交
    • K
      ath10k: bump up FW API to 5 · 53513c30
      Kalle Valo 提交于
      Firmware 10.2.4.48-3 now supports management frames over HTT feature and has
      ATH10K_FW_FEATURE_HAS_WMI_MGMT_TX. But as 10.2.4 branch has conflicting HTT ids
      patch "ath10k: add ATH10K_FW_IE_HTT_OP_VERSION" is needed to fix the issue.
      Older ath10k versions don't have support that support and to maintain backwards
      compatibility we need bump up the FW API to 5 not break older versions.
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      53513c30
  5. 07 3月, 2015 3 次提交
  6. 05 3月, 2015 1 次提交
  7. 04 3月, 2015 1 次提交
    • M
      ath10k: workaround corrupted htt rx events · 63838640
      Michal Kazior 提交于
      qca6174 WLAN.RM.2.0-00073 firmware uses full rx
      reordering offload and delivers Rx via a new HTT
      event. The event however is incorrectly generated
      in firmware and becomes overly long (with trailing
      garbage). This was hitting defined CE buffer limit
      that was programmed to the device and caused
      device to crash upon busier Rx traffic.
      
      Increasing the CE buffer limit for HTT Rx pipe to
      2KBytes seems to be enough to workaround this
      problem.
      Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      63838640
  8. 27 1月, 2015 4 次提交
  9. 15 1月, 2015 1 次提交
    • M
      ath10k: prevent fw reg dump spam · a2fa8800
      Michal Kazior 提交于
      Originally the explicit fw register dump was added
      to wait_for_target_init because interrupts are
      masked early during power_up.
      
      Due to some changes in power_up/reset sequences
      sometimes when fw crashed ath10k would print the
      dump more than once via hif_stop -> warm_reset ->
      wait_for_target_init, possibly with different
      values each.
      
      Prevent this by doing the explicit fw register
      dump only during power_up instead of
      wait_for_target_init.
      Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      a2fa8800
  10. 08 12月, 2014 1 次提交
  11. 01 12月, 2014 3 次提交
  12. 26 11月, 2014 2 次提交
    • Y
      ath10k: add memory dump debugfs interface · 9f65ad25
      Yanbo Li 提交于
      Add mem_val debugfs file for dumping the firmware (target) memory and also for
      writing to the memory. The firmware memory is accessed through one file which
      uses position of the file as the firmware memory address. For example, with dd
      use skip parameter for the address.
      
      Beucase target memory width is 32 bits it's strongly recommended to use
      blocksize divisable with 4 when using this interface. For example, when using
      dd use bs=4 to set the block size to 4 and remember to divide both count and
      skip values with four.
      
      To read 4 kB chunk from address 0x400000:
      
      dd if=mem_value bs=4 count=1024 skip=1048576 | xxd -g1
      
      To write value 0x01020304 to address 0x400400:
      
      echo 0x01020304 | xxd -r | dd of=mem_value bs=4 seek=1048832
      
      To read 4 KB chunk of memory and then write back after edit:
      
      dd if=mem_value of=tmp.bin bs=4 count=1024 skip=1048576
      emacs tmp.bin
      dd if=tmp.bin of=mem_value bs=4 count=1024 seek=1048576
      Signed-off-by: NYanbo Li <yanbol@qti.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      9f65ad25
    • Y
      ath10k: add register access debugfs interface · 077a3804
      Yanbo Li 提交于
      Debugfs files reg_addr and reg_val are used for reading and writing to the
      firmware (target) registers. reg_addr contains the address to be accessed,
      which also needs to be set first, and reg_value is when used for reading and
      writing the actual value in ASCII.
      
      To read a value from the firmware register 0x100000:
      
      # echo 0x100000 > reg_addr
      # cat reg_value
      0x00100000:0x000002d3
      
      To write value 0x2400 to address 0x100000:
      
      # echo 0x100000 > reg_addr
      # echo  0x2400 > reg_value
      #
      Signed-off-by: NYanbo Li <yanbol@qti.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      077a3804
  13. 04 11月, 2014 1 次提交
  14. 31 10月, 2014 5 次提交
  15. 23 10月, 2014 3 次提交
  16. 21 10月, 2014 1 次提交
  17. 08 10月, 2014 1 次提交
  18. 01 10月, 2014 1 次提交
  19. 26 9月, 2014 2 次提交
  20. 18 9月, 2014 4 次提交
  21. 02 9月, 2014 1 次提交