summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/iwl-fh.h
diff options
context:
space:
mode:
authorGolan Ben Ami <golan.ben.ami@intel.com>2018-02-04 10:50:05 +0200
committerLuca Coelho <luciano.coelho@intel.com>2018-07-26 13:16:16 +0300
commitf5955a6cc3862a02d46f50b723c3172d24d749a5 (patch)
tree331cb11bee0df9001245bec4b28ad0a91fcf616f /drivers/net/wireless/intel/iwlwifi/iwl-fh.h
parent9b58419e511a8b7c3ae1cebe1926fc3a7c59a31c (diff)
downloadlinux-stable-f5955a6cc3862a02d46f50b723c3172d24d749a5.tar.gz
linux-stable-f5955a6cc3862a02d46f50b723c3172d24d749a5.tar.bz2
linux-stable-f5955a6cc3862a02d46f50b723c3172d24d749a5.zip
iwlwifi: cancel the injective function between hw pointers to tfd entry index
Nowadays, the tfd queue max size is 2^8, and the reserved size in the command header sequence field for the tfd entry index is 8 bits, allowing an injective function from the hw pointers to the tfd entry index in the sequence field. In 22560 devices the tfd queue max size is 2^16, meaning that the hw pointers are 16 bit long (allowing to point to each entry in the tfd queue). However, the reserved space in the sequence field for the tfd entry doesn't change, and we are limited to 8 bit. This requires cancelling the injective function from hw pointer to tfd entry in the sequence number. Use iwl_pcie_get_cmd_index to wrap the hw pointer's to the n_window size, which is maximum 256 in tx queues, and so, keep the injective function between the window wrapped hw pointers to tfd entry index in the sequence. Signed-off-by: Golan Ben Ami <golan.ben.ami@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-fh.h')
0 files changed, 0 insertions, 0 deletions