Commit Graph

1468 Commits

Author SHA1 Message Date
Service qcabuildsw
198db07573 Merge "qcacmn: Fix WMI cmd send issue in case of 100% cpu utilization" into wlan-cmn.driver.lnx.2.0-dev 2016-11-01 14:52:11 -07:00
Venkateswara Swamy Bandaru
9e66f4f987 qcacmn: Fix WMI cmd send issue in case of 100% cpu utilization
WMI can queue the packets in both process and tasklet context. Before
queuing the packet H-TC will increase TxProcessCount. Only one core
can increase it and proceed for queuing the packets to HIF. At 100%
cpu utilization due to locking and unlocking the H-TC TX lock, one
core is holding TXProcessCount(and went to tasklet context and stuck
there) and other core is not able to queue the packets to HIF. Which
is creating virtual CE stuck case. Fixed the issue by acquing the
H-TC tx lock before the while loop which queus the packets
in H-TC queue

Change-Id: I435be9fa34b5ae86c6edb6ee29426a9134e5b6f2
CRs-Fixed: 1083038
2016-10-29 20:52:05 -07:00
qcabuildsw
b372a6ebb3 Merge "Release 5.1.1.3I" into wlan-cmn.driver.lnx.2.0-dev 2016-10-28 18:37:38 -07:00
Service qcabuildsw
28d604446e Merge "qcacmn: Add HAL Tx library needed for Lithium Datapath" into wlan-cmn.driver.lnx.2.0-dev 2016-10-28 18:37:31 -07:00
qcabuildsw
2e0c025718 Merge "Release 5.1.1.3H" into wlan-cmn.driver.lnx.2.0-dev 2016-10-28 18:37:08 -07:00
Service qcabuildsw
be385e14a4 Merge "qcacmn: Add Lithium RX Core Error Processing Infrastructure" into wlan-cmn.driver.lnx.2.0-dev 2016-10-28 18:36:55 -07:00
qcabuildsw
a756436ca7 Merge "Release 5.1.1.3G" into wlan-cmn.driver.lnx.2.0-dev 2016-10-28 18:36:27 -07:00
Service qcabuildsw
b9098a9c73 Merge "qcacmn: MCL Buffer Replenishment" into wlan-cmn.driver.lnx.2.0-dev 2016-10-28 18:36:21 -07:00
qcabuildsw
980bf6dec7 Merge "Release 5.1.1.3F" into wlan-cmn.driver.lnx.2.0-dev 2016-10-28 18:35:42 -07:00
Service qcabuildsw
2b66f1ab99 Merge "qcacmn: Add Lithium RX Core Processing Infrastructure" into wlan-cmn.driver.lnx.2.0-dev 2016-10-28 18:35:35 -07:00
qcabuildsw
2b7bad64b0 Release 5.1.1.3I
Release 5.1.1.3I

Change-Id: Ieecfd67cf79cba09c08e3432e08367c6957a3411
CRs-Fixed: 688141
2016-10-28 07:07:36 -07:00
Vijay Pamidipati
a3e1e3ca75 qcacmn: Add HAL Tx library needed for Lithium Datapath
Implement HAL APIs for accessing HW_TCL Data Descriptor,
processing of Tx MSDU Extension Descriptor and WBM Descriptors.

CRs-Fixed: 1073253
Change-Id: If6bd5c3ef7837b6968295d1a2cd5a18299d4ce42
2016-10-28 07:07:35 -07:00
qcabuildsw
7fee9bef35 Release 5.1.1.3H
Release 5.1.1.3H

Change-Id: If7f22796083f34188f67ea0d474d5947dcabb148
CRs-Fixed: 688141
2016-10-28 06:31:37 -07:00
Debashis Dutt
390645c6e1 qcacmn: Add Lithium RX Core Error Processing Infrastructure
Implements the core error processing infrastructure
for:
 - REO exception ring and
 - WBM SW Release ring.

Individual error handling (e.g Defragmentation) will
be added going forward.

In this first check-in all frames routed to the WBM release ring
are dropped except MC/BC packet that get routed to this ring,
due to the default configuration (MC/BC packets cause NULL queue
descriptor violation).

Change-Id: I57a7be19d51907d6b6df2e62246a45da07325f49
CRs-Fixed: 1074199
2016-10-28 06:31:34 -07:00
qcabuildsw
2db804156c Release 5.1.1.3G
Release 5.1.1.3G

Change-Id: Ib9d9b5b05a6788ae7c01eaaa69700c3b90e00a74
CRs-Fixed: 688141
2016-10-28 05:22:00 -07:00
Dhanashri Atre
7351d17b41 qcacmn: MCL Buffer Replenishment
Add support for replenishing the rx buffers using the host to
firmware buffer ring.

This includes adding a flag QCA_HOST2FW_RXBUF_RING:
When QCA_HOST2FW_RXBUF_RING is enabled the host will do the following:
- Allocate the refill buffer ring (HTT_HOST1_TO_FW_RXBUF_RING) and
populate it with
 rx buffers
- Send the refill buffer ring configuration to the firmware
- Allocate the rx DMA ring (HTT_RXDMA_HOST_BUF_RING), leave it empty.
- Send the rx DMA ring configuration to the firmware

When QCA_HOST2FW_RXBUF_RING is disabled, the host will do the following:
- Allocate the rx DMA ring (HTT_RXDMA_HOST_BUF_RING), and populate it with
 rx buffers
- Send the rx DMA ring configuration to the firmware

CRs-Fixed: 1074199
Change-Id: Iec05a973cd9d628c742e3aaa16b8dabc7797625d
2016-10-28 05:21:59 -07:00
qcabuildsw
e3df35488a Release 5.1.1.3F
Release 5.1.1.3F

Change-Id: Ifdc6c3203a53ce66ce84baadc1f78f5b5ceab1aa
CRs-Fixed: 688141
2016-10-28 04:36:43 -07:00
Debashis Dutt
c4c52dc1fd qcacmn: Add Lithium RX Core Processing Infrastructure
Add Lithium Rx basic packet processing path from REO.
Implement the following in this patch:

 - Rx buffer replenishment directly to RxDMA rings (WIN)

 - Rx descriptor management

 - Rx Path Processing for non-error packets

 - RxDMA optimization (access on 128 byte boundary)

Change-Id: I25aea3a79d5494a0447bc7ca919acb87b74f2760
CRs-Fixed: 1074199
2016-10-28 04:36:42 -07:00
qcabuildsw
3a3555900f Release 5.1.1.3F
Release 5.1.1.3F

Change-Id: I60ddfcd6166bab73cd6f5de4435e1649f6f7f8a0
CRs-Fixed: 688141
2016-10-28 04:09:13 -07:00
Himanshu Agarwal
3f54962309 qcacmn: Enable logging of all DPTRACE logs for protocol packets
Enable logging of DPTRACE logs at each layer of driver and at tx
completion for all tx as well as rx protocol packets.

Change-Id: Id568c19196702034989a0f55490bc62667b3b20e
CRs-Fixed: 1083002
2016-10-28 04:09:12 -07:00
qcabuildsw
2ea98eb544 Release 5.1.1.3E
Release 5.1.1.3E

Change-Id: Ifb7687ddb614880c3a3893126341baa2f25c6bf7
CRs-Fixed: 688141
2016-10-27 15:21:46 -07:00
Karunakar Dasineni
9b814ce7e5 qcacmn: Lithium data path initialization
1. Intial version of Lithium data path initialization
2. HAL changes for REO and WBM setup

Change-Id: I52f638faf6e60c2a932acc3c76788bf8946c30db
2016-10-27 15:21:45 -07:00
qcabuildsw
2d9765faf7 Release 5.1.1.3D
Release 5.1.1.3D

Change-Id: Icc64ec4845172b64c74ce278cfe4c40070f8db52
CRs-Fixed: 688141
2016-10-27 05:48:36 -07:00
Govind Singh
0f785150ba qcacmn: Clear WMI cmd buffer after TX completion
WMI command buffer is not cleared after WMI command TX completion.
For DISA certification TK and GTK should not remain in the memory
area after disconnection. Since WMI command buffer is not cleared,
hence content of TK and GTK is still in host memory region.
Clear WMI cmd buffer after TX completion.

Propagation from qcacld-2.0 to qcacmn.

Change-Id: Ib09a77b630c932409645b7a989bd959f0ed4f514
CRs-Fixed: 1060982
2016-10-27 05:48:35 -07:00
qcabuildsw
20f6ccd450 Release 5.1.1.3C
Release 5.1.1.3C

Change-Id: I865034a45f1c1d99a1436d6c986db0220c3757ed
CRs-Fixed: 688141
2016-10-27 02:26:38 -07:00
Govind Singh
861d5da41d qcacmn: Remove arch_get_cpu_efficiency references from hif napi layer
Compilation error is seen for 32 bit builds as arch_get_cpu_efficiency
is not exported in 64 bit architecture cpu.

Remove arch_get_cpu_efficiency references from hif napi layer as this
information is not used as of now.

Change-Id: I68c31b1008696fc84bc5a563d45eaa507ae92981
CRs-Fixed: 1071783
2016-10-27 02:26:37 -07:00
qcabuildsw
ae4176f7c2 Release 5.1.1.3B
Release 5.1.1.3B

Change-Id: I4320d500447bb8a5c1ceb9f9e3a1163f1bcdcf1c
CRs-Fixed: 688141
2016-10-27 01:49:00 -07:00
Poddar, Siddarth
fbb155f557 qcacmn: Add NULL check for HIF state and CE state before dereferencing
Add NULL check for HIF state and CE state in ce_send_cb_register and
ce_recv_cb_register functions before dereferencing it.

Change-Id: I96cde91775ff77f6ae863b4d56e48c42e34104c7
CRs-Fixed: 1081995
2016-10-27 01:48:59 -07:00
qcabuildsw
fd30d93e23 Release 5.1.1.3A
Release 5.1.1.3A

Change-Id: I1d2ff50f846733a1421e28a88e3adbf795483b6e
CRs-Fixed: 688141
2016-10-26 21:34:32 -07:00
Sarada Prasanna Garnayak
8f62b99c33 qcacmn: Log Transport Layer Tag for debugging purposes
Log Transport Layer Tag for debugging. The tag differs for
normal command and the runtime pm commands.

CRs-Fixed: 1072520
Change-Id: I7ec085410aaa429cfeb8cc09729e62deee9c7d95
2016-10-26 21:34:31 -07:00
qcabuildsw
12c21d075a Release 5.1.1.3
Release 5.1.1.3

Change-Id: I71967abf56839c01bd2146361648fe0407835621
CRs-Fixed: 688141
2016-10-26 11:19:01 -07:00
Sathish Kumar
c4218f3dea qcacmn: Adapt WIN driver with FW abstraction changes
Recently added changes for coexistence of WIN/MCL TLV implementation
through CL I6868c288a43fd3afb19c84b8a9d4ef0dfbee5c94 require
adaptations in QCA WIN driver to successfully compile.

Add required definitions in WMI layer to adapt WIN driver to
changes made for coexistence.

Change-Id: I99550ca10553d8096b8967249c006bac4e0c62df
2016-10-26 11:19:00 -07:00
qcabuildsw
aef48266dc Release 5.1.1.2Z
Release 5.1.1.2Z

Change-Id: Icc42cf47fa474739d99ad4566a690cbdb31dc786
CRs-Fixed: 688141
2016-10-26 10:49:23 -07:00
Himanshu Agarwal
c0b7145916 qcacmn: Add infrastructure to log roam events in DPTRACE
Add infrastructure to log all roam related commands and
events in DPTRACE.

Change-Id: I66773fc23dfeacf3a63688819e099bf44676d95b
CRs-Fixed: 1081851
2016-10-26 10:49:22 -07:00
qcabuildsw
04dc129aa6 Release 5.1.1.2Y
Release 5.1.1.2Y

Change-Id: I5d91e66825746eb82ea579968103c2e8bf4f8ef2
CRs-Fixed: 688141
2016-10-25 23:43:30 -07:00
Venkateswara Swamy Bandaru
5432c1babc qcacmn: Add support for low memory platforms
For supporting low memory platforms, if fastpath is enabled, the number
of destinaton ring receive buffers are reduced from 512 to 64 for CE1.
Also when pktlog has been disabled, avoid allocating receive buffers
for CE8.

Change-Id: Ia4cd991ec14a5d69f13efee8e6f72db6da99f83a
Acked-by: Sahoo, Amarendra Kumar <c_aksah@qti.qualcomm.com>
CRs-Fixed: 1066302
2016-10-25 23:43:29 -07:00
qcabuildsw
c674941b07 Release 5.1.1.2X
Release 5.1.1.2X

Change-Id: Icde47d7594b9b1db434ca148c7701693b063770c
CRs-Fixed: 688141
2016-10-25 22:29:33 -07:00
Sathish Kumar
62e0928848 qcacmn: Abstract RTT related operations out of WMI layer
Currently, RTT related operations to change report type and number
of measurements are done in the WMI layer.

Abstract these operations out of WMI layer and keep it in the WIN
host API layer to make the RTT WMI API generic.

Change-Id: I9b73830912c6c2b3d0908788f1f6a77b7f43dcaa
2016-10-25 22:29:32 -07:00
qcabuildsw
04e642aae7 Release 5.1.1.2W
Release 5.1.1.2W

Change-Id: I940787ba43cd3c569bd6392d9da2c04d01457486
CRs-Fixed: 688141
2016-10-25 17:08:41 -07:00
Jeff Johnson
4729b6f857 qcacmn: Fix -Wmissing-prototypes in QDF
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in qdf.

Change-Id: Ib499e7d0a5bfb6d2e5a7eaa7fbe769bb2b49772a
CRs-Fixed: 1076314
2016-10-25 17:08:40 -07:00
qcabuildsw
4f17ef7198 Release 5.1.1.2V
Release 5.1.1.2V

Change-Id: I4bcfa5b2f90a404ae49f6282fb300e1442d62906
CRs-Fixed: 688141
2016-10-25 16:37:39 -07:00
Orhan K AKYILDIZ
84deb9727e qcacmn: Fix memset bug on error path
Fix the incorrect order of arguments to memset in two
places in the error path.

CRs-Fixed:  1082204
Change-Id: I4cd6e23930d4f34bb732499eda2b20845b09a3b2
2016-10-25 16:37:38 -07:00
qcabuildsw
f92c19b868 Release 5.1.1.2U
Release 5.1.1.2U

Change-Id: I9a28715275086e5f2fb58208745046de2d45d31a
CRs-Fixed: 688141
2016-10-25 05:10:22 -07:00
Himanshu Agarwal
0bf10fa3b2 qcacmn: Print proto type for ICMP/ICMPv6 packets
Propagation from qcacld-2.0 to qcacmn.

Print proto type for ICMP and ICMPv6 packets which
cause wow wakeup in HOST driver.

Change-Id: I6d8cf8ad65652205bfad1a3531daf48a42a79350
CRs-Fixed: 1080772
2016-10-25 13:10:09 +05:30
qcabuildsw
f596d93747 Release 5.1.1.2T
Release 5.1.1.2T

Change-Id: I66ad795097a39a27b13656cfb366bf3b1f001e02
CRs-Fixed: 688141
2016-10-24 22:56:36 -07:00
Nandha Kishore Easwaran
92ee60bd8a qcacmn: IWPRIV support for preferred uplink
Add IWPRIV support for preferred uplink. Preferred uplink will
be the interface chosen by the user during creating a fast lane
using two radios.

Change-Id: Id9333f9f083b6a34e7998ca9b02be94c220ed6e8
CRs-fixed: 1069444
2016-10-24 22:56:35 -07:00
Nandha Kishore Easwaran
328e551692 qcacmn: Added iwpriv control for secoffset and wide band subelement IE
Summary: below iwpriv comamnds are added for wifiN interface:
iwpriv wifi0 sec_offsetie 0/1 --> 0: Disable, 1: Enable secondary offset IE
iwpriv wifi0 g_sec_offsetie  --> Get secondary offset IE configuration
iwpriv wifi0 wb_subelem 0/1 --> 0: Disable, 1: Enable wide band sub element
iwpriv wifi0 g_wb_subelem  --> Get wide band sub element configuration

Change-Id: Id4695ab1eb7ba1bccb800936d2f6d7bd0e8ad946
CRs-fixed: 1074098
2016-10-24 22:56:34 -07:00
Nandha Kishore Easwaran
2bfa221519 qcacmn: Fix compilation errors
Add a new compile time flag ENHANCED_STATS so that
the function under that flag gets declared

Change-Id: I38c2e7c36d5aaad315597bad011359ce7f947069
CRs-fixed: 1066302
2016-10-24 22:56:33 -07:00
Nandha Kishore Easwaran
c732aa6b69 qcacmn: Adding new ATH config params
Add new ATH config params for alwaysprimary and fastlane

Change-Id: I05b15ebaa440896e3f7fc03424f614a486c16f9c
CRs-fixed: 1066381
2016-10-24 22:56:32 -07:00
Nandha Kishore Easwaran
4b8148b9d1 qcacmn: Phase 1 DP changes
Move ol_txrx_get_en_stats_base to cmn_dev as part
of DP phase 1 changes

Change-Id: Icc05beb31d3bdcf0e6d7d5b0d2add888118d89e7
CRs-fixed: 1058170
2016-10-24 22:56:30 -07:00