Commit graph

2,212 commits

Author SHA1 Message Date
Sathish Kumar
3541df9810 qcacmn: Add extract API for UTF event to support TLV and Non-TLV targets
Add extract API for handling UTF event data received from the target
for both TLV and non-TLV cases.

Change-Id: I62525d7c8663fe90e0e3e76cf5286bb9dc86acd0
CRs-Fixed: 1115293
2017-01-30 03:20:38 -08:00
qcabuildsw
139d36723e Release 5.1.1.8V
Release 5.1.1.8V

Change-Id: Iae2378562178a21418f7dafc5261d36dfe978c5a
CRs-Fixed: 688141
2017-01-27 01:59:42 -08:00
Poddar, Siddarth
d56844e3e5 qcacmn: TSO MAP-UNMAP individual segments one by one
Change the static allocation of tso common info to dynamic
allocation to use this structure later on.
Introduce one more element in tso common info structure
use to store the dma address of EIT header which can be
repeatedly use to assign to the dma address of the 0th fragment
of all the tso segments corresponding to one jumbo skb.

CRs-Fixed: 1106688
Change-Id: I572c7dcd2d29cb19b398e13e0fe7ce6f88ee1641
2017-01-26 22:27:27 -08:00
qcabuildsw
354cad54d4 Release 5.1.1.8U
Release 5.1.1.8U

Change-Id: I25d87b7d97155622e7d2a70447fb6457dace4922
CRs-Fixed: 688141
2017-01-25 18:33:03 -08:00
Mahesh Kumar Kalikot Veetil
66513f2083 qcacmn: Fix a compilation error on QDF mem stats
Correct a dependency between MEMORY_DEBUG and WLAN_DEBUFS. QDF memory
stats is expected to be enabled only when MEMORY_DEBUG feature is
there.

Change-Id: Id14b5ccfa532660b24087f9456f99b1d41f5420c
CRs-Fixed: 1108556
2017-01-25 18:33:02 -08:00
Mahesh Kumar Kalikot Veetil
bdcb4db461 qcacmn: Add QDF memory stats
Create debug file system entries to show current QDF memory usage.
The 'list' option adds a little overhead, which is minimized by
locking node by node while traversing the entire allocated memory
list. Major operation is lock-less, using node reference count.

Following debugfs entries are added,

	1. /sys/kernel/debug/<module_name>_qdf/mem/list
	   This lists QDF allocation by file and line number. It takes
	   some time to traverse the entire allocated list.

	2. /sys/kernel/debug/<module_name>_qdf/mem/kmalloc
	   This file shows total kmalloc done by qdf_mem_alloc().

	3. /sys/kernel/debug/<module_name>_qdf/mem/dma
	   This file shows total allocation done by qdf_mem_alloc_consistent()

Change-Id: Ie40a7cb6ee03dd58aebd0fbda0118ab06b64725a
CRs-Fixed: 1084097
2017-01-25 18:33:01 -08:00
Mahesh Kumar Kalikot Veetil
e79aee03e8 qcacmn: Add debugfs support
Create a root directory for debugfs at
/sys/kernel/debug/KBUILD_MODNAME_qdf/. The module name,
KBUILD_MODNAME, is used in the path to avoid conflict in case of
multiple instances of the same driver.

Any sub module in QDF can use this as the root directory to add
further files of directories. While unloading the driver the exit
routine does a recursive cleanup of any remaining files or
sub directories.

Even though debugfs is a Linux specific feature, a logic which is
related to file system for debugging can be added here.

This feature is protected with a compilation flag WLAN_DEBUGFS.

Change-Id: I21cae38b69f45c22121dfe70fe84f02423a26020
CRs-Fixed: 1083771
2017-01-25 18:32:59 -08:00
qcabuildsw
5fe84fede1 Release 5.1.1.8T
Release 5.1.1.8T

Change-Id: Idacb5e39bfd377eba2d401a0f958593bfcbcbbe9
CRs-Fixed: 688141
2017-01-24 20:15:51 -08:00
Houston Hoffman
4a033e4afe qcacmn: Fix wmissing-prototype errors (dp_reo.c)
include dp_internal.h for its prototypes.

Change-Id: I0992d2b14d559a0e641ded52cc74e8fe2434c5e6
CRs-Fixed: 1115552
2017-01-24 20:15:50 -08:00
Houston Hoffman
64c32443c0 qcacmn: make napier_emu_ioremap static
make napier_emu_ioremap static since it has no prototype.

Change-Id: I3ef627d3b1d21e96a8fd0ea6795ef7bfcc265c36
CRs-Fixed: 1115552
2017-01-24 20:15:49 -08:00
qcabuildsw
bedf0fd2fe Release 5.1.1.8S
Release 5.1.1.8S

Change-Id: Ie0b73947ab4cd2260418ebf0b2375ab43e39e6e7
CRs-Fixed: 688141
2017-01-24 02:28:44 -08:00
Debasis Das
c4c2ac4121 qcacmn: Inline funcs for mgmt_txrx southbound API's
Use inline functions to access the mgmt_txrx southbound API's.
CRS Fixed: 1110551
Change-Id: I50f71261618fd6812265738597bd6f2968cef692
2017-01-24 02:28:43 -08:00
qcabuildsw
df39aeb619 Release 5.1.1.8R
Release 5.1.1.8R

Change-Id: I61b87c97397de83a4ecf602eb0a06dc6476501de
CRs-Fixed: 688141
2017-01-23 16:03:22 -08:00
Kiran Venkatappa
df17b072b6 qcacmn: Fix wmi extended service ready handling APIs
Add hw_mode_id. HW mode is received in extended service ready.
This will be used to determine FW capability to support multiple radio.
This is used on host to create multiple instantces of pdev on host.
Change mac_phy_cap extract API to get mac_phy_cap based on hw_mode_id
and phy_id

Change-Id: I9a6abdac8799d167828f13bef61b1a1d8c3e9769
CRs-Fixed: 1113888
2017-01-23 16:03:21 -08:00
qcabuildsw
f7ab3176ff Release 5.1.1.8Q
Release 5.1.1.8Q

Change-Id: Ic4736d53190c1f5bf738a4f3a998b333d29748f9
CRs-Fixed: 688141
2017-01-23 04:32:16 -08:00
Sathish Kumar
fc93b2d84d qcacmn: QDF Converged Debug Framework
QDF Debug Framework is implemented that will be used across
WIN and MCL to converge the debug methods used currently.

These changes have passed basic dev validation, carried out
by exercising each of the APIs.

Also, WIN validation is complete with these framework changes tested by
registering to the framework and adapting to the new converged trace API
qdf_trace_msg_cmn.

Change-Id: I4b87c910906cf0a49e91b1000f5218402cd45fe2
CRs-Fixed: 1102956
2017-01-23 04:32:15 -08:00
qcabuildsw
4e13a1dfb6 Release 5.1.1.8P
Release 5.1.1.8P

Change-Id: I645fb7b92d601a6f7c164bd108fc37392f26955d
CRs-Fixed: 688141
2017-01-20 02:43:43 -08:00
Debasis Das
f3740946da qcacmn: Enable Log Level for QDF_TRACE prints
The WIN-specific macro for QDF_TRACE should use the
log-level.Currently,it is defined to printk which
results in flooding the console with debug prints of all
levels.

CR's Fixed: 1112458
Change-Id: Ic63c695fdc667af02595f9217f1bf365f76317f0
2017-01-20 02:43:42 -08:00
qcabuildsw
4c6f38dcd9 Release 5.1.1.8O
Release 5.1.1.8O

Change-Id: If38e455000c79e88eb83d8e6bfbf197b02a857a8
CRs-Fixed: 688141
2017-01-19 15:07:46 -08:00
Venkateswara Swamy Bandaru
99075965f8 qcacmn: Add rawmode tx support for lithium
Added raw mode descriptor preparation support in tx path when packet is
in Interface configured in raw mode.

Change-Id: I3159bce9ec6f3cd86ccfb157c51d1cb5f6412b89
2017-01-19 15:07:45 -08:00
Venkateswara Swamy Bandaru
bfbef4f48d qcacmn: Add rawmode simulation support in cdp interface
Added rx simulation decap function interface to do simulation decap.

Change-Id: I8ae3fceeec0f6ca08d7d2857c2d017dbbdafbb85
2017-01-19 15:07:43 -08:00
qcabuildsw
3e65134751 Release 5.1.1.8N
Release 5.1.1.8N

Change-Id: I1a74efb5d52cd570deef8d96003d8abcfb64d147
CRs-Fixed: 688141
2017-01-19 12:46:38 -08:00
Karunakar Dasineni
e8380bbece qcacmn: REO descriptor changes
Disable CHK_2K_MODE and OOR_MODE in REO descriptor. Also set RTY bit for non-BA TID queues as temporary WAR for duplicate detection issue.

Change-Id: Ifa51c20ffbfe31c807d4e7f99014cb76f411e066
2017-01-19 12:46:37 -08:00
Ishank Jain
2fab33dcd4 qcacmn: Fix to make ping work on Hawkeye emulation(64 bit)
Change RXDMA_BUF_RING_SIZE to 2048
Change RXDMA_MONITOR_BUF_RING_SIZE to 2048

Change-Id: I1dee076e8e92259ffa43d2625a2dce0a94eb3164
CRs-Fixed: 1108439
2017-01-19 12:46:36 -08:00
qcabuildsw
73967c5c90 Release 5.1.1.8M
Release 5.1.1.8M

Change-Id: I747d847c516519264686ec5853acdf82e8151ac7
CRs-Fixed: 688141
2017-01-18 20:05:35 -08:00
Venkata Sharath Chandra Manchala
837d323bfb qcacmn: Attach CE SRNG SERVICES selectively
Selectively attach to ce_services_srng only when
Lithium family chipsets are enabled/disabled during
CE configuration by HIF i.e. if QCA_WIFI_QCA8074 or
QCA_WIFI_QCA6290 is defined.

Change-Id: I3c25e17160d78a3f359e5cdfe48ad05b295d0bfd
CRs-Fixed: 1103135
2017-01-18 20:05:34 -08:00
Venkata Sharath Chandra Manchala
8e8d8f1e82 qcacmn: Fix for compilation issues in REO management
Added suitable typecasting for qdf_set_bit and
qdf_clear_bit functions

Change-Id: I90fc0f441a6eae8dfdea43705373fced81b26b48
CRs-Fixed: 1105853
2017-01-18 20:05:32 -08:00
Dhanashri Atre
a98e024f86 qcacmn: Change due to R102 hardware headers for QCA6290
Changes needed to support the new definitions introduced
in the R102 hardware header files for QCA6290.

Change-Id: I4e3c27dfdc48b4d6a44f0f50f3e4a907be20e53d
CRs-Fixed: 1105853
2017-01-18 20:05:31 -08:00
Karunakar Dasineni
a0f09eae1d qcacmn: REO management changes
Changes to use REO HW command/status interface to update/delete REO queues.

Change-Id: I3500d45db021ef314b4d03fa878314d407ddfe65
2017-01-18 20:05:29 -08:00
Manoj Ekbote
4f0c6b1732 qcacmn: REO command access APIs
Implementation of APIs for Lithium REO command/status rings

Change-Id: Ib428dd995bd597f7fbfbfc458dade6e7e258000c
2017-01-18 20:05:28 -08:00
qcabuildsw
d6445c874c Release 5.1.1.8L
Release 5.1.1.8L

Change-Id: I7751731aabb7b8bfec5000c9e37ff781eebf99ae
CRs-Fixed: 688141
2017-01-18 09:40:11 -08:00
Jeff Johnson
8a4fd9bec1 qcacmn: Fix -Wmissing-prototypes in dp_rx_err.c
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code in dp_rx_err.c that is generating warnings.
Fix these warnings by making the following functions static:
	dp_rx_frag_handle()
	dp_rx_pn_error_handle()
	dp_rx_2k_jump_handle()
	dp_rx_null_q_desc_handle()

Change-Id: I45108fff8f69194b28391eebb5e079149ae5cc5a
CRs-Fixed: 1108176
2017-01-18 09:40:10 -08:00
qcabuildsw
e67e82c484 Release 5.1.1.8K
Release 5.1.1.8K

Change-Id: Iddab7d1714f491554853f8950e40d531fe607503
CRs-Fixed: 688141
2017-01-17 18:58:39 -08:00
Orhan K AKYILDIZ
547ec52872 qcacmn: fix a potential access after free
Once the wmi command is send to the FW, a sequence of events
(deletion of peer and sending of unmap messages to host) happens
on FW. This could potentially make a subsequent access to peer_addr
an access after the object is freed. Indeed a crash instance of
such a case has been reported.
Fix this by moving the print command before the actual wmi command
send.

Change-Id: I5a0d19b9b4a09687d5513acc52139a73b8490512
CRs-Fixed: 1108700
2017-01-17 18:58:38 -08:00
qcabuildsw
f50019f8b2 Release 5.1.1.8J
Release 5.1.1.8J

Change-Id: I719ef840161430cc24bbd28ab886df5ea9f06345
CRs-Fixed: 688141
2017-01-17 16:30:00 -08:00
Sandeep Puligilla
45c0daed19 qcacmn: Move defination of WMI_DBG_PARAM to host wmi file
Defination of enum WMI_DBG_PARAM is used only in host
so moved to host private wmi file.

Change-Id: I42a529b343e4e6e81b570c505385cfc8dbf9f017
CRs-Fixed: 1107600
2017-01-17 16:29:59 -08:00
qcabuildsw
434e47dab1 Release 5.1.1.8I
Release 5.1.1.8I

Change-Id: I600b437378b40e07ca226c9781fb94ff50eb5370
CRs-Fixed: 688141
2017-01-17 10:38:16 -08:00
Pratik Gandhi
7af44280a7 qcacmn: Convert wireless modes to host internal values
Convert the wireless_modes HALPHY capability from FW defined REGDMN_MODE
values to host internal WMI_HOST_REGDMN_MODE values. This will help make
host code independent of target specific definitions.

Change-Id: I6d325f76959b35a3f854ade680f4d058c9d4bfcb
CRs-Fixed: 1061096
2017-01-17 10:38:14 -08:00
qcabuildsw
db59c09b51 Release 5.1.1.8H
Release 5.1.1.8H

Change-Id: I0cdf8a8b0581ba3bab8041c14407ff3ee2671305
CRs-Fixed: 688141
2017-01-17 00:40:12 -08:00
Poddar, Siddarth
028f0696be qcacmn: Add cookie to tso seg structure to debug double mem free
Add a field in qdf_tso_seg_t. This cookie helps to check in case of
double memory free case. When double mem free hits, it will result into
qdf_assert.

Change-Id: I3c60f2603bce23b47224ae9a5d88881c2fbb8e01
CRs-Fixed: 1102423
2017-01-17 00:40:11 -08:00
qcabuildsw
da35fb5c91 Release 5.1.1.8G
Release 5.1.1.8G

Change-Id: Ib247e866ea8d2e07d0341d122aeff6dd04f49059
CRs-Fixed: 688141
2017-01-16 23:57:27 -08:00
Debasis Das
4411a492ae qcacmn: Use relative path for internal header files
The internal header file included by mgmt_txrx
dispatcher files can be included through relative
path.The kbuild need not have an entry for this
in the inclusion path.

Change-Id: Ie47351c8f69d8dbd08d665282e7827dc9c98458e
CR's Fixed:1110532
2017-01-16 23:57:26 -08:00
qcabuildsw
ea08d11a9f Release 5.1.1.8F
Release 5.1.1.8F

Change-Id: I683cc4ca5e33b894bbe9d4ae1634fde8abbe0289
CRs-Fixed: 688141
2017-01-16 18:36:41 -08:00
Yuanyuan Liu
58cac671f3 qcacmn: decrement scheduler qidx count during deregister
Decrement scheduler qidx count during deregister.

Change-Id: Idabb59628aa9f493f17cfdc72aca1699e1b71e4d
CRs-Fixed: 1111374
2017-01-16 18:36:40 -08:00
qcabuildsw
512f26c08c Release 5.1.1.8E
Release 5.1.1.8E

Change-Id: I5a1dbe98e845ca582baa746d700410104cc8088c
CRs-Fixed: 688141
2017-01-16 12:57:33 -08:00
Pratik Gandhi
6d2e13bb26 qcacmn: Fix for write operations in wmi_recording
Change incorrect extraction of wmi_handle from file handler
reference during write operations, performed on debugfs files
in wmi_recording/wmi logging.

IR-Fixed: 189093
CRs-Fixed: 1111722

Change-Id: I0603efe8f8e2530950f845f9ef9419b6784c626f
2017-01-16 12:57:32 -08:00
qcabuildsw
3d8019a02f Release 5.1.1.8D
Release 5.1.1.8D

Change-Id: Iacf32ee4000efd140e5b83ad6ded44b0b1b05e4d
CRs-Fixed: 688141
2017-01-16 01:15:00 -08:00
Arunk Khandavalli
cae132b6a9 qcacmn: Get monotonic boottime from kernel in nano sec
qcacld-2.0 to qca-wifi-host-cmn propogation

Add support to get the boot time from kernel in nano seconds.

Change-Id: Iaa512248a5e56d77cff39da562e0c9ee4eaeeefd
CRs-Fixed: 1107219
2017-01-16 01:14:59 -08:00
qcabuildsw
9b18ff1e56 Release 5.1.1.8C
Release 5.1.1.8C

Change-Id: I30e0a63b3cdfddf7af0e7bf109d4c54d40693431
CRs-Fixed: 688141
2017-01-12 07:12:01 -08:00
Jeff Johnson
0771857b80 qcacmn: Add WAR for dp_soc_attach_wifi3 -Wmissing-prototypes
Currently dp_main.c generates warnings when compiled with the GCC
-Wmissing-prototypes switch because it does not include a header file
which exports a prototype for dp_soc_attach_wifi3(). Currently the "dp
soc attach" APIs are defined in a strange manner, and there is not a
prototype which dp_main.c can include. So as a WAR define the
prototype internal to dp_main.c itself.

Of course the whole point of -Wmissing-prototypes is to prevent
mismatches between callers of an interface and the implementation of
an interface, and this WAR explicitly bypasses that protection. This
WAR should be superceded in the future by a proper registration
mechanism where the architecture-specific DP implementation attaches
to the Converged Data Path (CDP).

Change-Id: I1858ac4ec9f53c28cde622a43a3adb8643328916
CRs-Fixed: 1110197
2017-01-12 07:12:00 -08:00