]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: wmi-alloc-chunk should use DMA_BIDIRECTIONAL
authorBen Greear <greearb@candelatech.com>
Tue, 29 Nov 2016 22:00:28 +0000 (14:00 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 1 Dec 2016 11:16:10 +0000 (13:16 +0200)
commit55e8c2e36c0da46f6f27dd6d16c159e536e90ebe
tree19ad249da7811348b2046d866413ff5334070130
parenta690f4ced8c0825f466712a6801fd294d4eb5715
ath10k: wmi-alloc-chunk should use DMA_BIDIRECTIONAL

These memory chunks are often used as 'swap' by the NIC,
so it will be both reading and writing to these areas.

This seems to fix errors like this on my x86-64 machine:

kernel: DMAR: DMAR:[DMA Write] Request device [05:00.0] fault addr ff5de000
        DMAR:[fault reason 05] PTE Write access is not set

Tested-by: Marek Behun <kabel@blackhole.sk>
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi.c