]> git.baikalelectronics.ru Git - kernel.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)
commit1cf2b7889552efa4c843434b686f0c2b9af54b36
treeb3b2e65789908c47d90fd35d143e1c6ae6368c0f
parentfe3d53b2bff6125fdeac9881baf0fe4b42c0045e
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