OSDN Git Service

ath11k: Add direct buffer ring support
authorKarthikeyan Periyasamy <periyasa@codeaurora.org>
Tue, 9 Jun 2020 07:33:33 +0000 (13:03 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2020 14:21:52 +0000 (17:21 +0300)
commitbd6478559e27414e7def8247136b0dcb1e1392f8
tree2874924deedab5747b3a5152028b863a3da61d2f
parentf28b7b78aad32bcbec49e77baf140be14c7dd99b
ath11k: Add direct buffer ring support

Add direct buffer ring (dbring) with helper API, which is used by the
spectral scan. Initialise the direct buffer ring based on the dma ring
capability, which get announced in the wmi service ready extended event.
This ring is slightly changed from data path rings. Compare to data path
ring this ring shares the hp and tp address to firmware though WMI commands.
Also the replenish buffer size is derived from firmware announcement.
driver receive indication through WMI event
WMI_PDEV_DMA_RING_BUF_RELEASE_EVENTID.

Tested-on: IPQ8074 WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1

Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1591688014-26441-1-git-send-email-periyasa@codeaurora.org
drivers/net/wireless/ath/ath11k/Makefile
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/dbring.c [new file with mode: 0644]
drivers/net/wireless/ath/ath11k/dbring.h [new file with mode: 0644]
drivers/net/wireless/ath/ath11k/dp.c
drivers/net/wireless/ath/ath11k/wmi.c
drivers/net/wireless/ath/ath11k/wmi.h