]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 3 Feb 2016 19:01:44 +0000 (14:01 -0500)
commitd9d42b679e3653759b107ff99daf8da9c21aaec7
treede1a466d112f1f68554bc177de204c9dfbed8f30
parent01999150f50e945ee85914c37a1337784c1993c8
iwlwifi: pcie: properly configure the debug buffer size for 8000

[ Upstream commit 62d7476d958ce06d7a10b02bdb30006870286fe2 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c [new file with mode: 0644]
drivers/net/wireless/iwlwifi/pcie/trans.c