커밋 그래프

676 커밋

작성자 SHA1 메시지 날짜
Rachit Kankane
46a74af7d5 qcacld-3.0: Add PLD support for QMI Indication
Add PLD APIs to register callback for QMI Indication via CNSS2

Change-Id: I5a92250bf349b2b94e3ed74ed0b420f96c2c7461
CRs-Fixed: 3786384
2024-04-23 07:47:36 -07:00
Surabhi Vishnoi
563d0068c9 qcacld-3.0: Fix compilation error related to upstream kernel
This commit adds the following change to fix the compilation error
observed with upstream kernel:
1) Include <linux/qcom-iommu-util.h> based on ANDROID_COMMON_KERNEL macro.
2) cpuidle_governor_latency_req API is not exported in upstream
   kernel, so protect its usage based on ANDROID_COMMON_KERNEL macro.

Change-Id: I60fc8d331dbbd1595dc9a095464b2baea9b4e4d5
CRs-Fixed: 3681640
2024-01-12 11:43:06 -08:00
jinbao liu
86e55f8842 qcacld-3.0: Add multi_rx_reorder_queue_setup in dp_ol_if_ops
Add multi_rx_reorder_queue_setup in dp_ol_if_ops, for
multi rx reorder setup to save the queue setup time.

Change-Id: Ia96a44b9ef59f8fe86437225f50e2c9a4dcaa310
CRs-Fixed: 3656755
2023-12-08 15:21:52 -08:00
Asutosh Mohapatra
c0f37ee9ac qcacld-3.0: Add INI to exclude self tx time from cca busy time
Add new INI support to deduct self tx time from cca busy time.

Change-Id: I3e113a859321c31c31c92e8aa2f6c3f014a7376b
CRs-Fixed: 3576927
2023-09-26 05:24:53 -07:00
Rakesh Pillai
5c54710c38 qcacld-3.0: FISA move data structure
Move the FISA related non-converged data structures
to DP component.

Change-Id: I86b08bd85fa97424046e1187cc5189d0f1354e93
CRs-Fixed: 3512044
2023-06-24 13:30:49 -07:00
Rakesh Pillai
51d63bdc63 qcacld-3.0: Add CDP handles in DP component context
Currently the CDP handles like soc/hif/hal_soc are not
available in any of the the DP component contexts.
Modules like FISA etc need these handles.

Store the CDP handles like soc/hif_handle/hal_soc in
the DP component context.

Change-Id: Iaee4d0e15cbaa7d871dc9e246d177ad310b4c6ba
CRs-Fixed: 3505720
2023-05-26 18:16:25 -07:00
Rakesh Pillai
b8f4110c6e qcacld-3.0: Move DP init code in CDS layer to DP component
Currently the CDS layer calls the cdp functions
directly to initialize common DP.

Move these calls to DP component, so that DP
component can handle other DP related initialization
inside the DP component itself.

Change-Id: Ib257ac4f41d468706078cd34a8cbec004a9a622e
CRs-Fixed: 3499726
2023-05-20 12:54:07 -07:00
Aravind Kishore Sukla
20c88bcc42 qcacld-3.0: Disable scheduler before flushing the queues
Currently scheduler thread messages are flushed as part of
deinit but during stop_modules some messages are posted to
scheduler which leads to memory leak.

Disable the scheduler thread processing before flushing the
messages.

Change-Id: I6a9314ef7f4789e5c2f09c5e98f89035f13f5fe1
CRs-Fixed: 3497373
2023-05-19 23:25:32 -07:00
Yu Wang
2f754dba7c qcacld-3.0: skip debug domain transition if system is rebooting
Considering the case as below:
System shutdown comes when ndo_open is waiting for cnss power
up complete.
cnss shutdown handler completes all of the completions, and so
ndo_open continues.
while at the same time, cnss driver is processing firmware ready
event and trying to start cld modules, which will change debug
domain from INIT to ACTIVE, then it may hit debug domain mismatch
assertion:
It allocates some memory in ndo_open context when debug domain is
INIT, but when trying to free the memory, the debug domain is ACTIVE.

To fix this issue, when system reboot is in progress, skip debug
domain transition, and also skip modules start to avoid state mismatch
between cnss driver and CLD driver.

Change-Id: Ibc411e13e48269c66ec71aba6304578c9049f798
CRs-Fixed: 3470170
2023-04-28 19:03:25 -07:00
Venkateswara Naralasetty
3259b29030 qcacld-3.0: compile ol rx thread code only for legacy targets
Currently ol rx thread code is under QCA_CONFIG_SMP macro, which is
enabled for all the targets. But LI, BE and RH family targets don't
use this ol rx thread implementation. Hence, compile out ol rx thread
code for LI, BE and RH targets.

Change-Id: I1a1dfd09f5364ddb519c846e6c456d10f81e369c
CRs-Fixed: 3468499
2023-04-25 19:50:23 -07:00
Arun Kumar Khandavalli
3900e1eb53 qcacld-3.0: Block wmi transactions as part of trigger recovery work
Currently host waits for the firmware down event as part of the
recovery sequence to block the wmi transactions, if there is any delay
in triggering recovery some wmi commands can leak to firmware in this
window resulting in abnormal behaviour in the firmware.

So, block the wmi transactions after the recovery is initiated.

Change-Id: I502a8331111a6a61f31f35c4a1b64646410925f1
CRs-Fixed: 3444156
2023-04-12 22:46:51 -07:00
Balaji Pothunoori
fb4d033d9c qcacld-3.0: Add rx thread status API for HL targets
For HL targets, frames are queued to ol_rx_thread_queue
during WoW suspend in progress. At this time ol_rx_thread_queue
is in SUSPEND state and these frames can't deliver to Linux
Stack.
for ICMP case, if no other frames come to wake up
system and ICMP timeout will happen.
This change is to add rx thread status check API for HL
targets.

Change-Id: I3d37e6d6ce8f7f6edaf5f78bf5cef77bee6ed523
CRs-Fixed: 3407169
2023-04-04 19:51:24 -07:00
Karthik Kantamneni
e0cfa501a1 qcacld-3.0: Init-Deinit changes for WCN6450
Add changes to init-deinit WCN6450 from HDD layer

Change-Id: I0572fa109738326b469bd2b77b9e7c600ac672f8
CRs-Fixed: 3381728
2023-03-27 19:33:15 -07:00
Prakash Manjunathappa
bfc3d11564 qcacld-3.0: Add support for peach device
Add support for peach device. Enable HIF and HW header corresponding
to PEACH

Change-Id: I3c6690fbe8e3e6398ad6ba25fba0b7bb0856cc2b
CRs-Fixed: 3394196
2023-02-07 00:53:28 -08:00
Vinod Kumar Myadam
94b9aa8de3 qcacld-3.0: Replace callers of wlan_reg_get_bonded_channel_state_for_freq
The current channel list alone is not enough to represent the
capability of the chip or device. Given a channel, in many
cases it may be required to know all the power modes that are
supported by this channel.

Update caller APIs to use super channel list.
Removed wlan_reg_get_bonded_channel_state_for_freq and
wlan_reg_get_5g_bonded_channel_and_state_for_pwrmode to use the
super channel API wlan_reg_get_bonded_channel_state_for_pwrmode
and wlan_reg_get_5g_bonded_channel_and_state_for_pwrmode

Change-Id: I797ecaf0d01d47c5369f9e334805d855841566df
CRs-Fixed: 3144692
2023-01-30 06:27:14 -08:00
Vinod Kumar Myadam
f2ecda5efe qcacld-3.0: Update callers of wlan_reg_get_5g_bonded_channel_state_for_freq
The current channel list alone is not enough to represent the
capability of the chip or device. Given a channel, in many
cases it may be required to know all the power modes that are
supported by this channel.

Update API to use supper channel list. Replaced
wlan_reg_get_5g_bonded_channel_state_for_freq API to use the
super channel API wlan_reg_get_5g_bonded_channel_state_for_pwrmode

Change-Id: If5d40a704efa3130da63ba20f163aa2e0e027be4
CRs-Fixed: 3143058
2023-01-30 06:27:08 -08:00
Jeff Johnson
e050889528 qcacld-3.0: Fix core/cds documentation
There are quite a few documentation issues in core/cds:
- Documentation using legacy Doxygen format instead of kernel-doc format
- Documentation of implementations instead of interfaces
- Duplicate documentation
- Syntactically incorrect kernel-doc

Fix all of these issues.

Change-Id: I7ffdea9027278c75975a826466da2d7204a25d0c
CRs-Fixed: 3386190
2023-01-24 11:38:52 -08:00
Roopavathi Lingampalli
ab17639c2b qcacld-3.0: Add Rx thread feature support for CDS module
Add Rx thread and Rx refill thread feature support for
CDS module through DP componentization.

Change-Id: Ie4f0a7f52fca75d75ac57f263051a5fa5a61651b
CRs-Fixed: 3316849
2022-12-06 07:35:21 -08:00
Yeshwanth Sriram Guntuka
04beed1f7f qcacld-3.0: Address compilation issue when SMMU S1 flag is enabled
Address compilation issue when SMMU S1 configuration
flag is enabled.

Change-Id: I281afc58d1d31168b85eb8fb2e5b310bf6ffed78
CRs-Fixed: 3334353
2022-11-11 17:15:23 -08:00
Divyajyothi Goparaju
dc01aca04d qcacld-3.0: Replace wlan_reg_set_channel_params_for_freq
Replace all occurrences of
wlan_reg_set_channel_params_for_freq  API with new API
wlan_reg_set_channel_params_for_pwrmode.

Change-Id: I7ae94a7004803a96caeb7a77d03065096afe5f0e
CRs-Fixed: 3144793
2022-11-01 09:17:39 -07:00
Divyajyothi Goparaju
3498515802 qcacld-3.0: Replace wlan_reg_get_channel_state_for_freq
Replace all occurrences of
wlan_reg_get_channel_state_for_freq with
wlan_reg_get_channel_state_for_pwrmode and use extra
parameter as REG_CURRENT_PWR_MODE.

Change-Id: I7f7e4e700091918eeebc87ccbbc85ececdd9bf52
CRs-Fixed: 3145011
2022-10-06 13:01:14 -07:00
Jeff Johnson
c7562ff81b qcacld-3.0: core: cds: Fix misspellings
Fix misspellings in core/cds/...

Change-Id: Ia0a4185fd54550618eb9266b24c0b59609ed56bd
CRs-Fixed: 3303629
2022-10-05 11:27:39 -07:00
Rajesh Chauhan
7a91ba9a6a qcacld-3.0: replace complete_and_exit with kthread_complete_and_exit
In kernel 5.17, complete_and_exit is replaced with
kthread_complete_and_exit. So if kernel version is >= 5.17,
then use kthread_complete_and_exit.

Change-Id: I8b5ed5bbeade9d2044e375695e6e15208e10147d
CRs-Fixed: 3297438
2022-10-03 18:58:54 -07:00
Roopavathi Lingampalli
b0f2063e21 qcacld-3.0: Modify Pre_alloc memory support for CDS module
Modify Pre_alloc memory support for CDS module
through DP componentization

Change-Id: I1f7265d2f98d62a090dc326cbdfb2ed67b747483
CRs-Fixed: 3285955
2022-09-16 11:52:15 -07:00
Amit Mehta
e5e83b4185 qcacld-3.0: Update HDD to use DP component APIs
All the DP specific code logic is moved out of HDD to
new DP component. So update HDD module to use newly
introduced DP component APIs for DP specific operations.

Changes were backed out because of association issue
introduced by MLO adapter to DP interface mapping issue
and to avoid any further regression.
Re-introduce changes after preforming complete sanity
to vet out any regression which might be introduced
by these changes.

Change-Id: I377aecc4343e75dd17d279a2eb84fc49e737e784
CRs-Fixed: 3198619
2022-07-18 03:21:04 -07:00
Jia Ding
72718c750b qcacld-3.0: Use QDF API to get iommu domain attribute
Instead of calling kernel iommu API directly, call the QDF API
to get iommu domain attributes.

Change-Id: I8967a0d47a720d55170f9f61233a6f4190f9133a
CRs-Fixed: 3228757
2022-07-12 08:56:28 -07:00
Srinivas Girigowda
7c1cbf8c2c qcacld-3.0: Add support for Mango device id
Add support for Mango device id.

Change-Id: If390215c648fa02d525c66c9d286b2dc1b8d4af3
CRs-Fixed: 3232540
2022-07-02 09:55:42 -07:00
David Oladunjoye
4d96c00a9f qcacld-3.0: cds: Replace fallthrough comment with attribute
-Wimplicit-fallthrough is being enabled by default. Some compilers
such as clang require the attribute instead of just a fallthrough comment.

Change-Id: Ie67561ab55512c5f9848ede02177104aefb09b7e
CRs-Fixed: 3217417
2022-06-24 20:06:03 -07:00
Yeshwanth Sriram Guntuka
47a80af63c qcacld-3.0: Control GRO en/dis based on TC filter prio
The dynamic GRO enable/disable based on ingress filters
should currently is restricted only to standalone STA.
This was done to address issue where ingress filters are
added on STA interface whenever SAP is up disabling GRO
unnecessarily.

Fix is to allow dynamic GRO to work on all interfaces
and concurrency scenarios based on the priority of
the ingress filter configured to avoid unnecessary
GRO disable in STA+SAP.

Change-Id: I1742f4539353939e3a40ff4096b3f833f2029b12
CRs-Fixed: 3206815
2022-06-06 01:59:09 -07:00
Karthik Kantamneni
6bbad18fde Revert "qcacld-3.0: Update HDD to use DP component APIs"
This reverts commit I02fd36c45ec247fbd4fe79e035c1176cba3ebcec.

Change-Id: I26758565ac783b9c76b59eee6c2a526c68646fa5
CRs-Fixed: 3196571
2022-05-16 18:57:59 -07:00
Karthik Kantamneni
2df27526fc qcacld-3.0: Update HDD to use DP component APIs
All the DP specific code logic is moved out of HDD to
new DP component. So update HDD module to use newly
introduced DP component APIs for DP specific operations.

Change-Id: I02fd36c45ec247fbd4fe79e035c1176cba3ebcec
CRs-Fixed: 3172570
2022-05-11 13:20:47 -07:00
Yeshwanth Sriram Guntuka
fc08738230 qcacld-3.0: Add op in dp_ol_if_ops to send unit test cmd
Add support for sending unit test command to FW via
dp_ol_if_ops for datapath.

Change-Id: I6afb69a862c366c66a1e1f3dc009964272dfb75a
CRs-Fixed: 3148644
2022-03-23 00:47:46 -07:00
Jinwei Chen
54eeef2926 qcacld-3.0: Use policy_mgr_find_if_hwlist_has_dbs as DP DBS check
Current policy_mgr_is_hw_dbs_capable() will check both DBS HW mode
and WMI_SERVICE_DUAL_BAND_SIMULTANEOUS_SUPPORT service bit, while
DP expect to check HW mode only.

Use policy_mgr_find_if_hwlist_has_dbs() for DP DBS check.

Change-Id: I9e69e5754ef4ea522f50e2e27380e5b5d08532b3
CRs-Fixed: 3140385
2022-03-14 22:31:05 -07:00
Jinwei Chen
eb88903af8 qcacld-3.0: register DBS capable to ol_ops
Register DBS capable instead of 2x2 DBS capable to ol_ops.

Change-Id: I79577fee71b73ffa386fefdc5127f098099cb0ec
CRs-Fixed: 3130551
2022-02-17 05:03:12 -08:00
Yu Tian
fb5d4a46c4 qcacld-3.0: Stop replenish timer during recovery
During recovery, when this timer is started, there is no
stop operation. If the timer is triggered and SSR is not
completed, it will visit re-inited data structure and lead
kernel crash.

Change-Id: I81b20c1cc9c66efb3f334a17f38613a116aeaf9e
CRs-fixed: 3101872
2022-01-04 11:40:00 -08:00
Jianmin Zhu
683bc95375 qcacld-3.0: Change tx retries unit from msdu to mpdu
Customer reported their HLOS LTE-WLAN transition algo sometimes go wrong
for wrong low layer stats, Txretry delta is bigger than Txtotal delta.
Txretry unit is msdu while Txtotal unit is mpdu.

Add vdev/peer stats for mpdu number of successfully transmitted after
more than one retransmission attempt, to align mpdu tx_packets, tx_failed.

CRs-Fixed: 3102117
Change-Id: Id4b9d8fd81af4bf0c141dad481bfd2b3f6c1db2a
2022-01-04 11:39:55 -08:00
sandhu
afc4244d94 qcacld-3.0: Remove IP from code
Remove qualcomm IP from code

Change-Id: Icc3f239fbb6874a07272618b1be84d613b8fdc84
CRs-Fixed: 3073862
2021-12-29 04:28:21 -08:00
Jinwei Chen
21e1618550 qcacld-3.0: CLD change for cdp_pdev_attach
CLD change for cdp_pdev_attach

Change-Id: Ib4c536bc5d4a94ed0456e976cfc32b0ccdc9aa65
CRs-Fixed: 3077258
2021-11-23 03:54:59 -08:00
Yu Tian
94a1e84eb7 qcacld-3.0: Add an ini control to disable Dynamic GRO feature
Dynamic GRO feature is enabled by default and aimed for specific
customers. Add an ini control to allow other customers to config
this feature enable/disable.

Change-Id: I83edd69d0e30d5944f0724ed8350328abff619bb
CRs-Fixed: 3070912
2021-11-21 23:59:46 -08:00
Mohit Khanna
8105ca9b57 qcacld-3.0: Throughput based runtime PM support
Invoke runtime_pm APIs based on throughput level in bus bandwidth timer.

CRs-Fixed: 3059244
Change-Id: Ie1d5d8eddeec6076aa162e3ba3604ffd54fcc98d
2021-11-09 15:34:20 -08:00
Amit Mehta
eba64c70d7 qcacld-3.0: Update tx Failed Count
Currently, we are updating tx failed based upon
MPDU tx fail count received from FW.

In addition to the fail count received from FW
add MPDU tx retries done in case of successful
transmission to tx failed.

Change-Id: Ib993c71a99dd4d59df116a454336716352122a8e
CRs-Fixed: 3058364
2021-10-29 10:22:56 -07:00
Yu Tian
fde4ddb2e0 qcacld-3.0: Add API to get TX pending in WoW state
This change is used to provide an API for PMO module to
check whether there are pending TX frames before HOST sends
wake up indication to FW. PMO module uses this to indicate
FW whehter to discard HWDTIM.

Change-Id: Iea4081e69c397ab87bc90f46b672631f4589f389
CRs-Fixed: 3046953
2021-10-11 08:06:22 -07:00
Alan Chen
b7ce8eba14 qcacld-3.0: Add an error log before forcing fw crash
Add an error log in cds_trigger_recovery_handler() before forcing a fw
crash to help with debugging stability issues revolving around it.

Change-Id: Ifc5faa14e1812d145abc7aecd12f66db51eef3b4
CRs-Fixed: 3043316
2021-09-24 00:01:26 -07:00
Yu Wang
a4791d8279 qcacld-3.0: add build flag for network package timestamping
Network package timestamping is optional for TSF feature,
to make it configurable, add a new build flag
WLAN_FEATURE_TSF_PLUS_SOCK_TS.
This flag will be set only when CONFIG_WLAN_SYNC_TSF_PLUS
is enabled and CONFIG_WLAN_SYNC_TSF_PLUS_DISABLE_SOCK_TS
is not.

Change-Id: I413e85fadf93264cd41c2739b6d870aa08d60efb
CRs-Fixed: 3027378
2021-09-10 15:36:13 -07:00
Vevek Venkatesan
d26b38d254 qcacld-3.0: call CDP API for pkt_log_exit from CDS layer
Once pkt_log_con_service success in cds_pre_enable,
in case of any further failure, pkt_log_exit cleanup is
not done, so calling CDP interface API for pkt_log_exit.

Change-Id: Ibddc99fb47109a73de095f068694b2548849f14d
CRs-Fixed: 2978390
2021-08-14 23:06:43 -07:00
Zhaoyang Liu
7b302f0c1c qcacld-3.0: pdev suspend is not supported for qcn7605
Add check for device type QCN7605 before suspend target.
QCN7605 FTM mode firmware doesn't support pdev suspend.

Change-Id: I73ab53d8f20086b535edfd00617620e1b667772b
CRs-Fixed: 2993110
2021-07-27 04:58:33 -07:00
Yue Ma
229bd545ea qcacld-3.0: Add proper check to include qcom-iommu-util.h
qcom-iommu-util.h is a QCOM only file for MSM platforms, so only
include it when MSM_PLATFORM is defined to avoid build issues
from other non-QCOM platforms like X86.

Change-Id: I5f32fbe05abe4d7aff451031f0859f774ce1c507
CRs-fixed: 3721214
2021-07-22 15:11:22 -07:00
bings
79beb418ec qcacld-3.0: Save assoc request frame in qdf_nbuf_t
Legacy mlme need notify assoc request frame to mlo mgr. It should
be sent to mlo mgr in qdf_nbuf_t.

Change-Id: I192503a00346498408971462d3b15cc98efa9919
CRs-Fixed: 2976150
2021-07-16 06:19:41 -07:00
Vevek Venkatesan
14d84bf050 qcacld-3.0: add DP reason code support for send_delba
Add DP reason code support for sending DELBA request,
so protocol layer can make decisions for special cases.

Change-Id: I4eeba3513820a98a15682190e40a06ce178d9441
CRs-Fixed: 2983544
2021-07-06 02:15:43 -07:00
Amit Mehta
90acd43772 qcacld-3.0: Initialize HTC Pipe Ready message timeout
Init htcinfo structure variables to 0 to avoid issues
due to any newly added uninitialized variables in the future.

Change-Id: Ie4cf5c99c09f56ee1fc898397bcd3ccf4b678638
CRs-Fixed: 2962285
2021-06-15 15:09:58 -07:00