Commit Graph

387 次程式碼提交

作者 SHA1 備註 提交日期
Yue Ma
2e49f1156d qcacld-3.0: Handle flags defined as modules properly
The current way in the driver to handle CONFIG_CNSS_UTILS=m and
CONFIG_WCNSS_MEM_PRE_ALLOC=m will not work if the flags are not
coming from kernel Kconfig directly (e.g. CNSS utils and prealloc
module sources are built out of kernel tree) since "cppflags-
$(CONFIG_FLAG) += -DCONFIG_FLAG" will not take effect if CONFIG_FLAG=m.
Fix it in a proper way which is same as handling CONFIG_CNSS_GENL.

Change-Id: Iab4bf34bd1ae89f947bc5f7080e18569810f5f58
CRs-fixed: 3022560
2021-08-27 15:12:16 -07:00
Utkarsh Bhatnagar
ac66479f44 qcacld-3.0: Add support to get thermal throttle stats
Add support for sending WMI_REQUEST_THERMAL_STATS_CMDID
to request for the thermal stats via vendor cmd:
QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS
This vendor cmd can either be used to clear the thermal
stats or to request for the thermal stats.
Added ini gThermalStatsTempOffset, which can
configure thermal temperature offset value for capturing
thermal stats in  thermal range such as Thermal STATS
starts capturing from temperature threshold to temperature
threshold + offset.
If this ini is set to 0, then the events are disabled.
Also, add support for the FW event where the requested
thermal stats are sent in FW event
WMI_THERM_THROT_STATS_EVENTID().
The following attributes are sent in the events for every
level:
	STATS_MIN_TEMPERATURE
	STATS_MAX_TEMPERATURE
	STATS_DWELL_TIME
	STATS_TEMP_LEVEL_COUNTER

Change-Id: If8acdeec5bde33be346332ccaf39d78d0151203d
CRs-Fixed: 3016818
2021-08-27 10:23:21 -07:00
Yu Tian
eee26f5710 qcacld-3.0: Disable delay reg write feature for MDM platform
Delay reg write feature is based on workqueue, for MDM platform
that only has one CPU, WQ is preempeted by NETRX/NETTX Soft IRQ
and lead to ring update delay, at last backpressue happens.
Change is aimed to disable delay reg feature for one CPU platform.

Change-Id: I133ab999739449009f18ecb030e9ca889ea63761
CRs-Fixed: 3002768
2021-08-25 07:25:07 -07:00
Yu Tian
624a79c941 qcacld-3.0: Enable delay reg write feature
Delay reg write is not enabled on Waipio,
but it's enabled on former platforms.
Change is to enable it.

Change-Id: I10b5e30fe4d5485d38636fcb34c90ff2772e50ae
CRs-Fixed: 3015389
2021-08-25 03:04:56 -07:00
Yu Tian
25c1a53711 qcacld-3.0: Keep using 4 RX threads for platform with no IPA
For platforms that don't have IPA module, 4 RX rings can be
enabled to map to 4 RX threads. This Change is to implement a
feature flag to separate the number of threads used for
different platforms.

Change-Id: I23744ca6333f29667b0860f386dc9fc45f29abe4
CRs-Fixed: 3018613
2021-08-23 15:43:57 -07:00
Aditya Kodukula
e5d87bf5d6 qcacld-3.0: Support Multicast Domain Name Server Offload
The purpose of the multicast Domain Name System (mDNS) is to resolve
host names to IP addresses within small networks that do not include
a local name server.

It utilizes essentially the same programming interfaces, packet formats
and operating semantics as the unicast DNS, and the advantage is zero
configuration service while no need for central or global server.
Based on mDNS, the DNS-SD (Service Discovery) allows clients to discover
a named list of services by type in a specified domain using standard
DNS queries.

Here, we provide the ability to advertise the available services by
responding to mDNS queries.

Change-Id: Id2a0468d49237c21062cfd1988e34903658cdad9
CRs-Fixed: 3008549
2021-08-20 22:02:01 -07:00
sheenam monga
e0c299d567 qcacld-3.0: Add WLAN_FEATURE_P2P_P2P_STA flag for p2p + p2p support
Add feature flag for conditional compilation of feature to enable
p2p+p2p on a device.

Change-Id: I2c95b39c3db6e51213f7625383c365799fff9e31
CRs-Fixed: 2991307
2021-08-16 12:52:55 -07:00
Yeshwanth Sriram Guntuka
1ff2f766d9 qcacld-3.0: Disable FISA history for debug builds
Memory allocation for FISA history could possibly
happen from the cnss prealloc pool.

Fix is to disable FISA history until the allocation
is moved to DP prealloc.

Change-Id: I6c2e42d129d6642601ae59e08294c214907f5faf
CRs-Fixed: 3006138
2021-08-04 12:57:02 -07:00
Manjunathappa Prakash
c8e7eeb61a qcacld-3.0: Enable monitor mode config for HMT
Enable monitor mode support config on HMT.

Change-Id: I798f4035b71b1f73bc6100d6437e1811a211fe62
2021-08-03 22:12:20 -07:00
Manjunathappa Prakash
f568f2f627 qcacld-3.0: Prevent HELIUMPLUS from getting enabled for BERYLLIUM chips
Enabling CONFIG_ICNSS2 is enabling CONFIG_ICNSS2_HELIUM for BE chips.
Prevent it by making dependency on !CONFIG_BERYLLIUM.

Change-Id: Ifd5b5bb07cd753dec4da3c1f063a9e2739288f1c
2021-08-03 22:12:16 -07:00
sandhu
a3c80b5790 qcacld-3.0: Modularizaton of monitor mode
adding Flags to support FR of Modularization of
monitor mode.

Change-Id: Idd4c963ab3132fb367b69b0fcaf2c8ddbeb2c571
CRs-Fixed: 2998547
2021-07-30 21:50:30 -07:00
Wu Gao
cd08fde85a qcacld-3.0: Correct the definition of CONFIG_AR900B
There is wrong logic and won't define CONFIG_AR900B for HSP platform.
So add this change to correct the logic and define CONFIG_AR900B
properly.

Change-Id: I60e3bf0a0f9778a821bbe89289cf88f4dbc432e0
CRs-Fixed: 2996497
2021-07-23 20:17:16 -07:00
Ben Wang
d413a78a15 qcacld-3.0: Add CONFIG_MOBILE_ROUTER for SA415M Platform
Enable CONFIG_MOBILE_ROUTER SA415M Platform for Rome Genoa
and Hasting, same as SA515 Platform

Change-Id: I7f0899c562ea8447296f3ddd1b237ea0d6a1b962
CRs-Fixed: 2924075
2021-07-23 14:41:09 -07:00
Jia Ding
5a32f6baad qcacld-3.0: Add build option for uplink delay feature
Add CONFIG_WLAN_TSF_UPLINK_DELAY option for uplink delay feature
and enable it on WAIPIO.

Change-Id: I91f8433e853efb177bb1d9aea42cdc7f625a0d4e
CRs-Fixed: 2996368
2021-07-23 01:55:02 -07:00
Ananya Gupta
466dc616fe qcacld-3.0: Enable HIF_CPU_CLEAR_AFFINITY flag
Enable CONFIG_HIF_CPU_CLEAR_AFFINITY flag to
change rx_err_ring irq cpu affinity.

Change-Id: I3d2475210ffd5ac6acef7e0418eef26cf92e1302
CRs-Fixed: 2950630
2021-07-22 12:53:01 -07:00
Prateek Patil
17480cf50e qcacld-3.0: Enable FISA compilation for WHUNT
Enable FISA compilation for WHUNT for QCA6490

Change-Id: I042aa1f7300014fee5946fd00c3205f607ee04ce
2021-07-14 10:32:42 -07:00
Ashish Kumar Dhanotiya
55ab069325 qcacld-3.0: Move dump in progress feature to separate file
With this change introduce featurization for dump in progress
and move implementation related to this feature to new files.

Change-Id: I4614aecde57a9c5ffec765f3afaa943c58956132
CRs-Fixed: 2979226
2021-07-12 07:45:34 -07:00
Vevek Venkatesan
516ad4f689 Revert "qcacld-3.0: enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support"
This reverts the change to do the memset of SW2TCL desc consumed by
HW to zero.

Change-Id: Ie56207cf483643f6e294df23f5445ca853a75d51
CRs-Fixed: 2984818
2021-07-06 17:33:26 -07:00
Vevek Venkatesan
f2e5ea6182 qcacld-3.0: enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support
Enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support for moselle
targets.

Change-Id: I1ef8927c2af040cda67dab9347679f64a55493ac
CRs-Fixed: 2983561
2021-07-05 03:20:17 -07:00
Yu Wang
e7df98e50e qcacld-3.0: Enable DCS for QCA6490
Enable CONFIG_DCS for QCA6490 in default_defconfig.

Change-Id: I45726ff0032e72939efde6a73051796c788f9ff6
CRs-Fixed: 2976853
2021-07-01 04:24:03 -07:00
Mohit Khanna
f06df4c16a qcacld-3.0: Cleanup HW-based feature flags from Kbuild
Currently we use hardware based feature flags in Kbuild file to
enable/disable certain feature flags. In case hardware changes, then we
would also need to edit Kbuild file to enable feature flags for the next
target. Instead, use CONFIG_<FEATURE_FLAG> from defconfig files to
enable DP feature flags. This will limit the changes for hardware update
to defconfig files only.

Change-Id: Icc8aa6ad51904946f9141a0f41728ed72b1f6d2f
CRs-Fixed: 2964342
2021-06-30 13:47:24 -07:00
Mohit Khanna
41c2c3060a qcacld-3.0: Disable GENERIC_SHADOW_ENABLE feature for BE
Disable the feature as force wake recipe is expected to work on BE.

CRs-Fixed: 2971353
Change-Id: Ic4c4cd1d23272ddea00e9bb8bb23bf72b5a4bbff
2021-06-30 13:47:15 -07:00
Rakesh Pillai
5010352aea qcacld-3.0: Enable Near Full IRQ in Kbuild
Enable the Near Full IRQ feature flag in Kbuild
for WCN7850.

Change-Id: I3c3760133c3fb31233f8abf450dacbd9ba51f09c
CRs-Fixed: 2965085
2021-06-30 13:47:10 -07:00
Balaji Pothunoori
d56c5ea434 qcacld-3.0: revert Disable TX_AGGREGATION_SIZE ini for HSP
This reverts commit I9e49ad5218f913f116cf4472f768f572740f14df
since ini based tx aggregation is configured based on firmware
capability.

Change-Id: I54541cd282eda6606e75fa347989624a0e0fef01
CRs-Fixed: 2963280
2021-06-25 11:56:14 -07:00
Rakesh Pillai
e8621c7db8 qcacld-3.0: Enable SHADOW_WRITE_DELAY
When FEATURE_HAL_DELAYED_REG_WRITE enabled, also enabled
SHADOW_WRITE_DELAY to avoid back to back shadow reg write.

Change-Id: I8d48496814e063ebd441db3520e3a5406c5db13e
CRs-Fixed: 2967202
2021-06-24 22:25:02 -07:00
Alan Chen
27aeb4863e qcacld-3.0: Add debug log to print link vote id
Add debug log to print more details about the link vote id when
PCIe link suspend is not allowed.

Change-Id: I5069202436e0da37b8ae22f84e28ac06d35002b5
CRs-Fixed: 2964957
2021-06-24 16:32:02 -07:00
Jinwei Chen
7fef8c3b3c qcacld-3.0: Add HW cookie conversion support
Add HW cookie conversion support for wcn7850 soc.

Change-Id: I2adedb13bcaeebb1715b391f790b639d422e08f6
CRs-Fixed: 2929512
2021-06-21 17:10:05 -07:00
Liangwei Dong
3ad4f9d78b qcacld-3.0: Handle DFS channel radar history get vendor command
Add support for QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY vendor
command. This command will return the current NOL list in driver
and the last Radar detection result in previous SAP active state
(includes CAC state).

Change-Id: I719630c39b89c1813ca05c4356dce627d72d82e2
CRs-Fixed: 2966501
2021-06-21 11:12:53 -07:00
Manjunathappa Prakash
3e93ea0127 qcacld-3.0: Enable handling of buf_addr_type desc in dp_rx_err
Enable compile macro to handle buf_type decriptor in dp_rx_err_process.

Change-Id: Ibdec18b9b749f18b1e9d704974f4cbaabbc4e6a7
CRs-Fixed: 2957094
2021-06-09 23:37:54 -07:00
Rakesh Pillai
e86da7276c qcacld-3.0: Changes to enable BE/WCN7850 flags
Changes to enable compilation for beryllium target(chip WCN7850).

CRs-Fixed: 2888534
Change-Id: I7b3d252fc8550883a2d24b6beb2b78f482f5004b
2021-06-04 10:43:23 -07:00
Sandeep Puligilla
0b5da86b67 qcacld-3.0: Add MLO manager to build system
Add MLO manager files to build system.

Change-Id: I911a4ddbd93e100cb95c71a3e8cd6a5609c97e0b
CRs-Fixed: 2958473
2021-06-03 03:44:16 -07:00
Jingxiang Ge
4f440d2ef2 Revert "qcacld-3.0: Disable force wake for SDX65"
This reverts commit Ie8a23f11a5cd089b205c5b6ec27c39a9da9ddad9.

Change-Id: I2e241d95a0134c3d8514308d0cdf3d84f714726f
CRs-Fixed: 2920257
2021-06-01 21:48:42 -07:00
sheenam monga
c1e87af47a qcacld-3.0: Add fature flag to get usable channels
Add feature flag for the feature to get usable channels.

Change-Id: I6dd2360284c395747b55f806caab2a5a44089866
CRs-Fixed: 2947180
2021-05-31 05:35:49 -07:00
Lin Bai
35d67da380 qcacld-3.0: Enable CONFIG_FEATURE_GPIO_CFG
Enable CONFIG_FEATURE_GPIO_CFG by default, which is exposing vendor
cmd interface for GPIO configuration.

Change-Id: Ib05025b26c03573920d5241150fab925beed425e
CRs-Fixed: 2953325
2021-05-27 06:03:17 -07:00
sandhu
7ab9c3057e qcacld-3.0: Add flags for HTT HTC tx based completion on lithium
Added flag for HTT HTC tx based completion. currently
packet are freed using htt htc misc list.

Change-Id: I2e7e4d59cadf30f4bb14eaefc045240d1ebc1aaa
CRs-Fixed: 2922547
2021-05-17 18:55:54 -07:00
Manikanta Pubbisetty
5af2169e8f qcacld-3.0: config changes to enable deferred reo qdesc free
Config changes to enable deferred freeing of REO Queue
descriptors feature on WCN6750.

Change-Id: Id7524a8f7de8943b11530e70a842c138cc80bb71
CRs-Fixed: 2940347
2021-05-17 03:10:16 -07:00
Ananya Gupta
22a74f3eb7 qcacld-3.0: Enable SMMU Translation for IPA
Enable SMMU translation in waipio target if
IPA is enabled

Change-Id: Ib41c164bb0eaf7e3d58386013a46db8dd601f9f0
CRs-Fixed: 2943929
2021-05-13 10:18:57 -07:00
Karthik Kantamneni
d16c504bf9 qcacld-3.0: Increase QDF nbuf history for Lithium targets
For some of the stability issues triggered by H.W,
by the time host detects it most of the QDF history
is getting overwritten to avoid this increasing QDF
nbuf history. So that there will be less chance of
events getting overwritten.

Change-Id: Ia4bad1a175976af2e56126b56ae8c92a988e4289
CRs-Fixed: 2942868
2021-05-12 20:57:44 -07:00
Karthik Kantamneni
b85a37928b qcacld-3.0: Config changes for QCA6750 target
Disable lock less access and delyed reg v2 support for QCA6750.

Change-Id: I4c0294c07db656a0dbf5b0f512205eb08d72eb71
CRs-Fixed: 2933266
2021-05-11 08:03:15 -07:00
Vevek Venkatesan
263661e6b7 qcacld-3.0: enable BW_MONITOR support for moselle
Enable WDI3_STATS_BW_MONITOR support for moselle
platforms.

Change-Id: I09fc851548f584f7b67824de523df8dd3ece90eb
CRs-Fixed: 2941935
2021-05-11 03:52:01 -07:00
Karthik Kantamneni
5f7a749e92 qcacld-3.0: Enable TX HW descriptor history support
Enable TX HW descriptor history support for Lithium targets

Change-Id: I84c079cb28f0e320de5378291a21263b8417372f
CRs-Fixed: 2934910
2021-05-10 09:02:51 -07:00
Vevek Venkatesan
99c942c15d qcacld-3.0: enable Tx descriptor history in Tx and comp rings
Enable the history support to log Tx descriptors programmed
in Tx and completion HW rings.

Change-Id: I5ce308354714da78baa05500bc73e1a9ec91b958
CRs-Fixed: 2935363
2021-05-06 13:49:36 -07:00
Ananya Gupta
64cfae78e5 qcacld-3.0: Enable IPA when loaded as module
Currently, module 'm' is converted to 'y' in QGKI when
compiling. In Waipio, GKI2 is present in which 'm'
is not being converted and hence IPA_OFFLOAD is not enabled.
To fix this, checking if CONFIG_IPA3 is either set to y or m
and then enabling CONFIG_IPA_OFFLOAD.
From Kernel 5.10, few IPA functions are depreciated for which
putting the depreciated functions under kernel check condition.

Change-Id: Iba3735692267130b76a8eaaaeeb53c263f8f0ddf
CRs-Fixed: 2921600
2021-05-06 06:23:38 -07:00
Yeshwanth Sriram Guntuka
1518b18746 qcacld-3.0: Enable IPA set/reset tx doorbell paddr feature for MSL
Enable set/reset tx doorbell paddr feature for Moselle.

Change-Id: I5e3fbf7a2afcadb455732e6ad53f36a1e3760c89
CRs-Fixed: 2933285
2021-04-28 14:24:38 -07:00
Karthik Kantamneni
78bc206db0 qcacld-3.0: Enable REO queue descriptor history
Enable REO queue descriptor history for Lithium based targets

Change-Id: I452726ceb056e880096f72572e562a2d4db7e3b3
CRs-Fixed: 2929956
2021-04-23 04:35:48 -07:00
Jia Ding
30a01d3b69 qcacld-3.0: Add IPA_WDI3_TX_TWO_PIPES macro
IPA_WDI3_TX_TWO_PIPES is added to enable two TX pipes
configuration for IPA WDI 3.0 interfaces.

Enable IPA_WDI3_TX_TWO_PIPES on sdxprairie platform.

Change-Id: I34fe0af56b169ebad9d7bb29b38838dd44503736
CRs-Fixed: 2750082
2021-04-22 15:25:17 -07:00
Arun Kumar Khandavalli
4a37a51d9f qcacld-3.0: update the hdd with the eht params
update hdd wiphy with the eht params.

Change-Id: I9d8415bda1cfe32d7fc97859b637170a59ba6178
CRs-Fixed: 2911910
2021-04-19 13:32:16 -07:00
Mohit Khanna
73a1e0a529 qcacld-3.0: Record pkt history in fisa path
Record per packet history in FISA aggregation path.

Change-Id: I737481343f6c8d19deb57d39adb64f3a10f7d6f7
CRs-Fixed: 2911868
2021-04-14 22:11:36 -07:00
Wu Gao
755ad505a3 qcacld-3.0: Disable force wake for SDX65
It enabled two pipes for IPA DBS case on SDX65,  and froce wake
doesn't support this case. So disable it on this platform.

Change-Id: Ie8a23f11a5cd089b205c5b6ec27c39a9da9ddad9
CRs-Fixed: 2901043
2021-04-14 05:34:17 -07:00
Jianmin Zhu
ac8d6a6ba2 qcacld-3.0: Disable TX_AGGREGATION_SIZE ini for HSP
HSP doesn't support TX_AGGREGATION_SIZE ini, need disable it to avoid
confusing.

Change-Id: I9e49ad5218f913f116cf4472f768f572740f14df
CRs-Fixed: 2918796
2021-04-10 22:52:22 -07:00