Commit Graph

16 Commits

Author SHA1 Message Date
Krupali Dhanvijay
ae5cef9b7e cnss2: Add API to send WFC mode to WLAN FW
Add and export API to host driver to send WFC(WiFi Calling)
mode to WLAN FW.

Change-Id: I92d3d0baad9afc6fdf66f66b847a4e8a90a54341
CRs-Fixed: 3346550
Signed-off-by: Krupali Dhanvijay <quic_kdhanvij@quicinc.com>
2023-01-17 14:37:14 +05:30
Will Huang
b4ea3e4d0a cnss2: Add support for handling AFC memory request from FW
Add APIs for handling AFC memory request from FW:
cnss_send_buffer_to_afcmem() and cnss_reset_afcmem().

cnss_send_buffer_to_afcmem() will be called if receive valid AFC
response data, cnss_reset_afcmem() will be called if receive
invalid AFC response data. After memory copy done, another WMI
command will indicate FW ready to read.

Add FW memory type QMI_WLFW_AFC_MEM_V01.

Change-Id: I34b9add3d7721d778e5474d9b11ad64adb4f04f0
CRs-Fixed: 3223607
Signed-off-by: Balamurugan Mahalingam <bmahalin@codeaurora.org>
Signed-off-by: Will Huang <quic_wilhuang@quicinc.com>
2022-11-08 18:06:43 +08:00
Yue Ma
9f8482a379 cnss2: Export if DRV is supported through platform capability
Add CNSS_HAS_DRV_SUPPORT to platform capability to indicate if PCIe
DRV is supported or not.

Change-Id: Id114467d060946dda43bb00fe8856cea2c18e738
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-06-09 16:46:22 +05:30
Lin Bai
07c930b3d2 cnss2: Add CNSS_BUS_EVENT to report bus info
CNSS_BUS_EVENT type added to report bus related info to
CLD driver.
Currently only PCIe's link down event taken care.

Change-Id: Ia18ce1b9ca8d0641e62271d645f1c87461029a26
Signed-off-by: Lin Bai <lbai@codeaurora.org>
2021-04-19 18:55:06 +08:00
Yue Ma
70da18c57f cnss2: Add support to populate device memory information
Update WLFW QMI service so firmware is able to send SRAM and CMEM
etc. device memory information using target capability QMI message
to CNSS driver which populates the same to WLAN host driver.

Change-Id: I6a68624dd29c4631dc2c5c9900ddd1d6c7f3fc14
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-03-16 14:58:34 -07:00
wei yang
b95e50426d cnss2: Update driver to support multiple devices
Currently CNSS2 driver does not support multi chips. This is a update of
the CNSS2 driver to support multi chips with converged dts.

Change-Id: Ie3efb526220c2de21e021320322d46c345d770bc
Signed-off-by: wei yang <yangwei@codeaurora.org>
Signed-off-by: Kuichu Ni <kuichun@codeaurora.org>
2021-03-09 20:00:52 -08:00
Kai Liu
98eb7da2c0 cnss2: Export remote memory info
CNSS platform driver allocates host DDR memory for device.
This change exports these memory info to q5drv for QDSS streaming
feature.

Change-Id: I053704b0e146f50abd3940a91f2190ee1b2a7fe3
Signed-off-by: Kai Liu <kaliu@codeaurora.org>
2021-02-26 09:57:17 +08:00
Mohammed Siddiq
4a70bdb237 cnss2: Add api to get pci reg dump for hang data
Add a cnss wrapper api to get pci reg dump for hang data.

Change-Id: Ic1e7b676b6999d8aa7f168625dd27fa7b9aa7746
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-02-18 20:50:20 -08:00
Jia Ding
c8d3106ddc cnss2: Add cnss_smmu_unmap API
Add cnss_smmu_unmap API so that wlan function driver
could unmap IOVA addresses that are IOMMU mapped.

Change-Id: I1e3aa287589f73a609cc51fe8c826d1edf2fefd1
Signed-off-by: Jia Ding <jiad@codeaurora.org>
2020-09-09 09:33:35 +08:00
Manikandan Mohan
017791027b cnss2: Add support for PCIE gen switch
Add support for PCIE gen switch request from wlan driver using
QMI message to FW.

Change-Id: I6ea4ee234a38162cb9093d36d580c872b4d62644
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-08-05 18:34:36 -07:00
Manikandan Mohan
f818cb9034 cnss2: Get Bus bandwidth voting table from DT
Update cnss platform driver to use bus bandwidth voting
data as configured in device tree file.

Change-Id: I327c41613a6ca1d53550cf6d266db90b46f7bc77
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-07-28 17:46:35 -07:00
Lin Bai
4e43ba3d70 cnss2: Add synchronized force wake support
Device is still possible to enter low power state with current
unsync force wake method, and it may cause later failure when
accessing SoC register.

Introduce sync force wake API and expose it to WLAN host driver,
which will ensure device won't enter low power state after
device_wake is asserted.

Change-Id: Iaa7a7bdac910c162600bbf03ac97af83b2f68f3f
Signed-off-by: Lin Bai <lbai@codeaurora.org>
2020-06-16 19:16:41 -07:00
Mohammed Siddiq
dd5833c6d4 cnss2: Add platform driver code to handle hang event data
On SSR, FW writes hang data in the carved out region from
existing DDR memory, the platform driver copies the hang
event data from the fixed offset to local buffer and sends
the buffer and length to host driver via CNSS_HANG_EVENT
event.

Change-Id: I5928821770086547b4fe17c30a967ea059b39394
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-04-23 11:50:33 +05:30
Yue Ma
40eb3e3bbb cnss2: Expose APIs to prevent and allow PCIe L1 state
WLAN driver can use the APIs to control if PCIe can enter L1 and
L1ss states.

Change-Id: Iad784b1ca66199ad61c471635a67542afd34480e
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-02-26 17:36:02 -08:00
Yue Ma
9e70a33492 net: cnss2: Update CNSS2 driver
This is a update of the CNSS2 driver and associated files as of
msm-4.19 commit c3714c8e90ab ("cnss2: fix memory leaks").

Change-Id: I09119dac5294a6cfd12b0a519d173f46ba6beffe
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2019-12-13 16:43:44 -08:00
Yuanyuan Liu
bedd876b6f net: cnss2: Add snapshot of CNSS2 driver
This is a snapshot of the CNSS2 driver and associated files as of
msm-4.19 commit a1c93228c0bb
("cnss2: Fix synchronization issues related to idle shutdown").

Remove obsolete cnss_utils.c and add Kconfig dependency.
Replace bus scaling APIs with interconnect APIs due to msm_bus migration.

CRs-Fixed: 2500800
Change-Id: I4f0af08c3d0f2982a0f9605dcc56bfeb0145a3fa
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2019-08-05 12:19:57 -07:00