]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ath11k: Use reserved host DDR addresses from DT for PCI devices
authorAnilkumar Kolli <akolli@codeaurora.org>
Tue, 14 Dec 2021 15:39:43 +0000 (17:39 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 16 Dec 2021 15:33:51 +0000 (17:33 +0200)
commit6ac04bdc5edb418787ab2040b1f922c23464c750
tree9083da369c5cc07c80cdb1527da3865cedfcacae
parent77a0a30bb5070a12d48247681e5cc49bee04dfcc
ath11k: Use reserved host DDR addresses from DT for PCI devices

Host DDR memory (contiguous 45 MB in mode-0 or 15 MB in mode-2)
is reserved through DT entries for firmware usage. Send the base
address from DT entries.
If DT entry is available, PCI device will work with
fixed_mem_region else host allocates multiple segments.

IPQ8074 on HK10 board supports multiple PCI devices.
IPQ8074 + QCN9074 is tested with this patch.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01838-QCAHKSWPL_SILICONZ-1

Signed-off-by: Anilkumar Kolli <akolli@codeaurora.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/1638789319-2950-2-git-send-email-akolli@codeaurora.org
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/mhi.c
drivers/net/wireless/ath/ath11k/pci.c
drivers/net/wireless/ath/ath11k/qmi.c
drivers/net/wireless/ath/ath11k/qmi.h