]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iwlwifi: pcie: detect and workaround invalid write ptr behavior
authorSara Sharon <sara.sharon@intel.com>
Wed, 24 Feb 2016 12:56:21 +0000 (14:56 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 2 Mar 2016 06:57:51 +0000 (08:57 +0200)
commit5eae443eb5e2b3777582ea37c6a002171ec134d5
treeb3b2e65789908c47d90fd35d143e1c6ae6368c0f
parentfcb6b92a682fe5032fdc31af7f8ed86f1dabb1e2
iwlwifi: pcie: detect and workaround invalid write ptr behavior

In 9000 series A0 step the closed_rb_num is not wrapping around
properly. The queue is wrapping around as it should, so we can
W/A it by wrapping the closed_rb_num in the driver.
While at it, extend RX logging and add error handling of other
cases HW values may cause us to access invalid memory locations.
Add also a proper masking of vid value read from HW - this should
not have actual affect, but better to be on the safe side.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c