Grafik Komit

1876 Melakukan

Penulis SHA1 Pesan Tanggal
Orhan K AKYILDIZ
0f521bf9be qcacmn: Harden NAPI event handler
Make sure that NAPI event handler would handle events only
after it has been initialized. Check init flag before procesing
the event and emit a warning and return an error to the caller.

Change-Id: I9d2b84560ee2363ecf2a570dbef0275dfb87786a
CRs-Fixed: 1091678
2017-01-31 13:14:49 -08:00
qcabuildsw
93e24e385d Release 5.1.1.8Z
Release 5.1.1.8Z

Change-Id: Ief482e1a0d8dc123d949e5e3bd03d0ba7a44bc06
CRs-Fixed: 688141
2017-01-31 12:44:56 -08:00
Sathish Kumar
febd4b7b54 qcacmn: Update QDF Debug Framework
Update QDF debug framework with API to store and to get the print index.

As a part of QDF framework convergence, we need to update the QDF framework.

Add API to handle the print index in the converged QDF framework.

Change-Id: I871c09189202d021405777db732e8821e7aaca7c
CRs-Fixed: 1108907
2017-01-31 19:33:48 +05:30
qcabuildsw
45cbe075a7 Release 5.1.1.8Y
Release 5.1.1.8Y

Change-Id: If11ede80d1d49e248a5a188dad0e9bf6ad9f7c1e
CRs-Fixed: 688141
2017-01-30 22:18:24 -08:00
Houston Hoffman
3ba070e41e qcacmn: Include pld_common.h later
The pld_common.h stub doesn't include all the header files it needs
for compilation.  Let it get included from hal_internal.h through
hal_api.h.  In this manner, all the required .h files will allready
be included.

Change-Id: I40d107d2305baabe57719afe854bad4428d74a23
CRs-Fixed: 1113131
2017-01-30 22:18:24 -08:00
Houston Hoffman
403c2df426 qcacmn: Fix wmissing errors in shadow_register code
hif_prepare_hal_shadow_register_cfg and hif_print_hal_shadow_register_cfg
needed to be declared static after enabling "Werror=missing-prototypes"

Change-Id: I3682436edb7bcb3ee02f1c4037aefc82863c0ec5
CRs-Fixed: 1113131
2017-01-30 22:18:23 -08:00
Houston Hoffman
10fedfc050 qcacmn: move shadow_config_v2 to srng services
Wish to keep ce_main.c independent of hal.

Change-Id: Ia1caddc9cb81ac996955ad316e4646a4abc8b876
CRs-Fixed: 1113131
2017-01-30 22:18:22 -08:00
Houston Hoffman
e3c1a37468 qcacmn: add sanity check of shadow configuration
When shadow registers replace other register addresses,
ensure that they are configured to point at the registers
that would be written to with shadow registers disabled.

Change-Id: I789021fe394cad2ce50cbbeb2943827b6d5e464f
CRs-Fixed: 1113131
2017-01-30 22:18:21 -08:00
Houston Hoffman
5141f9d1e8 qcacmn: construct shadow v2 config
In this change, hif requests hal construct the shadow register
configuration for all the necessary datapath rings.  Then hif
requests hal append the configuration for the srng rings used
by the host copy engine module.  When constructing the shadow
register configuration, the hal makes note to use the shadow
register addresses instead of the actual addresses.

Change-Id: Ide8f523dece0d1dc6eb05f4c86739ece7909c25a
CRs-Fixed: 1113131
2017-01-30 22:18:20 -08:00
Houston Hoffman
f483307b62 qcacmn: Support shadow_reg_v2_cfg in dummy pld
Need dummy stubs for compilation.

Change-Id: I591d77ed0b4069d3db1b436e798f1bd047d90242
CRs-Fixed: 1113131
2017-01-30 22:18:19 -08:00
qcabuildsw
ec77860eab Release 5.1.1.8X
Release 5.1.1.8X

Change-Id: I199dc76aaac92f5bec0852018a98347cc79c2447
CRs-Fixed: 688141
2017-01-30 09:06:34 -08:00
Kiran Venkatappa
92521a0c6b qcacmn: Change FIPS event extract APIs
Add pdev_id in FIPS extract params to be used to get appropriate pdev.
Also refactor extart APIs to get all data in one API and implement TLV
APIs.

Change-Id: Ib58d54ad0dcc25814e58f45e7e4a83d01549a523
CRs-Fixed: 1115213
2017-01-30 17:21:41 +05:30
Kiran Venkatappa
627ecd41e4 qcacmn: Add extract API for dcs interference event
Add TLV APIs to extract DCS intereference event. Add pdev id in
extract API used to derive pdev object.

Change-Id: Ie42ec1e3aec899ddc5b6b13d37dfd468ee29df7c
CRs-Fixed: 1115213
2017-01-30 17:21:05 +05:30
qcabuildsw
0001efea92 Release 5.1.1.8W
Release 5.1.1.8W

Change-Id: Ia7000f487d69f9f3507832f1994be6486d03ffd0
CRs-Fixed: 688141
2017-01-30 03:20:39 -08:00
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