提交图

18 次代码提交

作者 SHA1 备注 提交日期
Sandeep Singh
219c37b87e platform: Add sanity change for fw memory size
Icnss and cnss2 driver receives and sends memory size
over qmi to and from wlan fw. This change add maximum
memory size check before sending or receiving fw mem size
over qmi. Also, use QMI_WLFW_MAX_NUM_MEM_SEG_V01 enum as
maximum size limit.

Change-Id: I392bfbbf0359e60bce9e93d909a119e8c72f07d5
CRs-Fixed: 3367408
2022-12-23 14:11:24 -08:00
Alan Chen
4def39b409 cnss2: Add data length validation in cnss_wlfw_qdss_data_send_sync()
Add a data length validation check in fw response message in
qdss_data_send_sync().

Change-Id: I197b8d52c06e35f5fcf0f8fee94429fdcf500fcb
CRs-Fixed: 3359589
2022-12-16 20:26:37 -08:00
Naman Padhiar
42fee6ecad 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
2022-11-26 14:01:00 -08:00
Naman Padhiar
2fd60f792b cnss2: Add API to get FW supported capabilities
Add and export API to check whether FW capabilities like
DIRECT_LINK, etc are supported by FW or not.
Update WLAN Firmware Service QMI file as per latest IDL file.

Change-Id: Ic33104ec55e18845b8c33ff611d1ecc15ec5cd77
CRs-Fixed: 3335259
2022-11-12 17:29:28 -08:00
Lin Bai
39a9deb49b cnss2: Only send host IOVA range to firmware when SMMU enabled
Only when SMMU S1 enabled, CNSS driver will send IOVA range in
HOST_CAP message, and let firmware to configure ATU.

Change-Id: Idd19063da975c0105d91e0e31575d0b0d1edd8e2
CRs-Fixed: 2896035
2022-11-08 22:04:29 -08:00
Sandeep Singh
04ddb614e4 cnss2: Use ol cpr to update retention voltage of aop regulator
Use ol cpr to update retention voltage of aop regulator
for qca6490 chipsets.

Change-Id: Ic67ca32964bd89fb940be069ec9468d97bbec68d
CRs-Fixed: 3326028
2022-11-01 20:44:08 +05:30
Naman Padhiar
2e0fe8fe22 cnss2: Release DMS QMI handle during dms_del_server
DMS server runs in Modem. When Modem SSR happens dms_del_server
gets called. Even after DMS service disconnected, qmi_txn_wait is
still waiting. Release DMS QMI handle in dms_del_server to cancel
pending transaction.

Change-Id: I06ccfba34269dc51288300aa5fa0326842a09e32
CRs-Fixed: 3288808
2022-09-13 13:47:10 +05:30
Sandeep Singh
efa5599cc4 cnss2: Add code to parse and store hwid bitmap received from FW
Add code to parse and store hwid bitmap received from Firmware
as part of target cap response QMI message. The bitmap gives
information about the FEM combination in use.

Change-Id: I6c7e9cedfc70df056ed361953b10a65166915087
Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
2022-07-17 21:45:31 -07:00
Sandeep Singh
1e6b77b03b cnss2: Add code to fallback to non-contiguous FW mem allocation
Add code to fallback to non-contiguous FW mem allocation on
failure to allocate contiguous memory.

Change-Id: Idbc7ff7f9ea4d2157e3b549dde8ee090a0f0b412
CRs-Fixed: 3072737
2022-07-13 10:18:20 +05:30
Alan Chen
79dd3075ca cnss2: Add support for WLAN MANGO PCI device
Add PCI device ID config and code updates to handle MANGO WLAN device.

CRs-fixed: 3210010
Change-Id: I48fffdb8c7ecf5343908d823facf7a2fad2f2dea
2022-06-30 17:51:42 -07:00
Mohit Khanna
2c3d91eed9 cnss2: Dynamically use shadow regs for time_sync
For kiwi target the current code is using shadow_reg indexes 0,1. Change
the logic to use next two shadow registers of what is used by the host.

Change-Id: Ice95be0f2106078b8f799ca1182d1d8702b564c6
CRs-Fixed: 3218660
2022-06-24 16:11:19 -07:00
Naman Padhiar
2aa767ca86 cnss2: Add support to download ini file to FW
Add new QMI message to download wlan-connection-roaming.ini
file to FW.

Change-Id: Icc7d63847560ae07f3d3cdebc158faf8e4cb5aec
2022-05-23 10:09:32 -07:00
Kai Liu
648ac5ccff cnss2: Add pcss recovery support
Extend current recovery sysfs interface, add pcss recovery support.
Change previous sysfs recovery from bool to bitamp. Bit 0 is used
for original wlan recovery, bit 1 is newly added for pcss recovery.
Once fw is downloaded, host driver can use QMI message to notify
fw enable or disable this feature.

Change-Id: Ifdf49cecc70ab2d554bd267d18ff78d92049f5b8
2022-05-19 14:36:33 -07:00
Mohammed Siddiq
0db7057bb6 cnss2: Add shadow register version 3 for kiwi
Add shadow register version 3 structure for kiwi
CE7 support for wmi logging.

Change-Id: Ie37dcc47ff4b63726cee43a3d26cb0aad24d44ed
2022-05-15 18:52:52 +05:30
Manikandan Mohan
eadcd47888 cnss2: Feature update for OL CPR
Open Loop CPR feature is extended to support multiple VRegs. Add IDL
data structures, device tree setup for WLAN device PMU pin to platform
VReg mapping and handling for new OL CPR params from FW.

Change-Id: Ibdcc5b30521c01e12124b32bd6291def98bd9516
2022-05-13 10:50:35 -07:00
Mohammed Siddiq
42f4e0431a cnss2: Get hang event params over target cap qmi response
Add change to get hang event params over target cap response.
With this change hard-coding of hang data address and offset
is removed if valid hang data params are received over QMI.

Change-Id: Ife163cf66d5880cd9a658a841e5d4a73816fd982
2022-05-09 17:47:54 -07:00
Yue Ma
be03060a66 cnss2: Use correct device code name
Correct code name for kiwi device.

Change-Id: Ic52ba0abfc7049fd353eb1416a5c77c5bfec4bb5
2021-11-15 13:16:26 -08:00
Yue Ma
5b29459b17 wlan_platform: Bring initial files for CNSS family drivers
Bring CNSS family drivers from msm-5.10 kernel as of commit
cc3bc4b888af (cnss2: Fix a few switch statement fallthrough
issues) to WLAN platform project. Fix SPDX-License format for
a few files as well.

drivers/net/wireless/cnss* -> .
include/net/cnss* -> inc/

Above shows how directories and header files are relocated.

Change-Id: If8fd40a35c9fdbeb1aa76a8aac5fdb1fc1c7e786
2021-10-08 15:28:40 -07:00