]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: properly configure the debug buffer size for 8000
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 5 Jan 2016 13:25:43 +0000 (15:25 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 7 Jan 2016 17:01:33 +0000 (19:01 +0200)
commit99a924dfe3172a1536f456cdd8199613822b3f60
tree8cfde0fb52937cbecd643ff18b9cd030807defc1
parent3fa0c0cf554cda03f8e7cee6e97f5b8b19e60ec4
iwlwifi: pcie: properly configure the debug buffer size for 8000

8000 device family has a new debug engine that needs to be
configured differently than 7000's.
The debug engine's DMA works in chunks of memory and the
size of the buffer really means the start of the last
chunk. Since one chunk is 256-byte long, we should
configure the device to write to buffer_size - 256.
This fixes a situation were the device would write to
memory it is not allowed to access.

CC: <stable@vger.kernel.org> [4.1+]
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c