]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: qmi: try to allocate a big block of DMA memory first
authorCarl Huang <cjhuang@codeaurora.org>
Thu, 17 Dec 2020 07:04:57 +0000 (09:04 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 18 Dec 2020 09:02:46 +0000 (11:02 +0200)
commit5f3e3c2aab028a2224069b1991e778b08a29fd44
treeb3f80d1b0d7a30eb5341dcffe8fd82e9ee3df988
parent566f7642d82035eb71d33950527ab6deae2f6a43
ath11k: qmi: try to allocate a big block of DMA memory first

Not all firmware versions support allocating DMA memory in smaller blocks so
first try to allocate big block of DMA memory for QMI. If the allocation fails,
let firmware request multiple blocks of DMA memory with smaller size.

This also fixes an unnecessary error message seen during ath11k probe on
QCA6390:

ath11k_pci 0000:06:00.0: Respond mem req failed, result: 1, err: 0
ath11k_pci 0000:06:00.0: qmi failed to respond fw mem req:-22

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Carl Huang <cjhuang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1608127593-15192-1-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/qmi.c
drivers/net/wireless/ath/ath11k/qmi.h