Commit graph

1,569 commits

Author SHA1 Message Date
Houston Hoffman
6c0c3f95fa qcacmn: skip bmi for srng based chips
SRNG based chips will use MHI based firmware download

Change-Id: I4125578a33315011075677a0ea7e4b48c914037f
CRs-Fixed: 1089874
2016-11-19 06:48:13 -08:00
Houston Hoffman
31b25ecbea qcacmn: Support QCA6290 target type
Add device id for QCA6290 emulation platform.
Add target def support for QCA6290
Needs HIF_TYPE_QCA6290 defined

Change-Id: I4edd5a5b600007ebe7416195648815d80025e768
CRs-Fixed: 1089874
2016-11-19 06:47:36 -08:00
Houston Hoffman
a57184e5ef qcacmn: remove pci_set_drvdata
pci_set_drvdata stores a pointer in the pci driver device structure.
Since we do not use this pointer any more we do not need to set it.

Change-Id: I36452aaf2a4c218a3d3891626406e4693d968bba
CRs-Fixed: 1071958
2016-11-19 06:47:10 -08:00
qcabuildsw
c566b4160d Release 5.1.1.4L
Release 5.1.1.4L

Change-Id: I46d3e2cccfa2f2b82d1e926419e45b3717badd47
CRs-Fixed: 688141
2016-11-17 21:25:10 -08:00
Sathish Kumar
5b2cd35073 qcacmn: Add vap_hardstart function to NIC_DEV structure
vap_hardstart function was added as a structure element to NIC_DEV
as part of OL/DA modularization. These changes were added in the
NIC_DEV structure in osdep_adf_internal.h

Move declaration to NIC_DEV in qdf/linux/src/i_osdep.h introduced
as part of QDF convergence.

Change-Id: Ie9ea734818cbf4b335831155f55701549b13f435
CRs-Fixed: 1090532
2016-11-17 21:25:09 -08:00
qcabuildsw
f0825482da Release 5.1.1.4K
Release 5.1.1.4K

Change-Id: I32a214c942f2d67399022aaf6e1cb6e1fbb4d74a
CRs-Fixed: 688141
2016-11-17 20:57:43 -08:00
Sathish Kumar
7423df4905 qcacmn: Add channel noise floor and rx cycle count to DCS IM stats
Add additional stats namely channel noise floor and rx cycle count
to DCS interference stats structure maintained by WMI.

Change-Id: I0e6245c1888b5028daaa94e309ca7cc49073edc9
CRs-Fixed: 1087114
2016-11-17 20:57:42 -08:00
qcabuildsw
10ac3df3bb Release 5.1.1.4J
Release 5.1.1.4J

Change-Id: I12bebdea4f8ecf6600670a6dbc7676280b077f23
CRs-Fixed: 688141
2016-11-17 19:13:05 -08:00
Leo Chang
5ea93a4527 qcacmn: wifi3 compile against cdp
Wifi 3.0 compile against cdp apis.
Make compilable against mobile code base.
selective hw common header include.

Change-Id: I051f917001c0d13c762d9cb5a3ec141cd278d0e7
CRs-fixed: 1075736
2016-11-17 19:13:03 -08:00
Leo Chang
db6358c42f qcacmn: add cdp wrapper for mobile device compile
add cdp wrapper for mobile device data path compile

Change-Id: I05a6c58056f8884915580c074efa81a5a28f71be
CRs-fixed: 1075597
2016-11-17 19:13:02 -08:00
Nandha Kishore Easwaran
870abdada3 qcacmn: Remove common htt.h file and add cmn enum
Remove the htt.h file inclusion from inside the cdp layer.
The upper layers should include this. Create a common
enum structure to be used inside the cdp_if layer.
Translation will take place in the DP layer.

Change-Id: I0c3e30eab54c0efafb917ddb304678a392788c2b
Crs-fixed: 1075597
2016-11-17 19:13:00 -08:00
Nandha Kishore Easwaran
2906ce1943 qcacmn: Remove unnecessary flags
Remove the unnecessary compilation flags from cmn_dev

Change-Id: I39cb16122d1db930f1c759e206daedf85eebf612
Crs-fixed: 1075597
2016-11-17 19:12:59 -08:00
Nandha Kishore Easwaran
e5444bc96d qcacmn: Add CDP_IF wrapper layer for data path
Added a new layer CDP_IF inside dp which is an intermediate
between the data path functions and the upper layers. All function
calls from outside the DP layer to the DP layer goes via the CDP_IF
layer

Change-Id: I76e671c85d2d02aa0a65a90b356840d3aeede52d
CRs-Fixed: 1075597
2016-11-17 19:12:58 -08:00
qcabuildsw
140ce9541a Release 5.1.1.4I
Release 5.1.1.4I

Change-Id: Ia2bf4f008f1a7dc2c3b1e1cf72298b4d33f29c74
CRs-Fixed: 688141
2016-11-17 17:57:42 -08:00
Frank Liu
bc2d1c9a0b qcacmn: Define IBSS mode
qcacld-2.0 to qcacld-3.0 propagation

Firmware can't support all station feature and 32 ibss clients
in one bin because of the mem limitation. So host supports to
download IBSS firmware bin if con_mode=6.

CRs-Fixed: 962246
Change-Id: I6c3dca17c82fdfd2bdadcee319cc157e6aa2ead9
2016-11-17 17:57:41 -08:00
qcabuildsw
025e3d9a31 Release 5.1.1.4H
Release 5.1.1.4H

Change-Id: Ia8286349d28b8a88169ce14b0a00c122dac05793
CRs-Fixed: 688141
2016-11-17 14:00:29 -08:00
Kai Liu
af427fe54c qcacmn: Adjust buffer size for fw dump
qcacld-2.0 to qcacmn propagation

In platform using usb interface, when fw assert, buffer alloc for fw
dump is smaller than the actual fw dump size, so adjust the buffer size.

Change-Id: I4706c57e8c1b684bfe164b23fc0902c376d4d80a
CRs-Fixed: 1043805
2016-11-17 14:00:28 -08:00
qcabuildsw
bb3049e31b Release 5.1.1.4G
Release 5.1.1.4G

Change-Id: I6cce65103aef2b002fa4458833302337af5b95b5
CRs-Fixed: 688141
2016-11-16 06:38:41 -08:00
Venkateswara Swamy Bandaru
814094e9c2 qcacmn: Change CONFIG_SLUB_DEBUG_ON define to HIF_CONFIG_SLUB_DEBUG_ON
Change CONFIG_SLUB_DEBUG_ON to HIF_CONFIG_SLUB_DEBUG_ON to differentiate
kernel CONFIG_SLUB_DEBUG_ON macro with hif specific debug option.

Change-Id: I8922d5c37363da382f3f0b23489f8fd3544eed7d
CRs-Fixed: 1088928
2016-11-16 06:38:41 -08:00
Venkateswara Swamy Bandaru
aefb2f4dc4 qcacmn: Fix NAPI compilation issue for ext group interrupts
In current code ext group interrupts are not support. Defined these
functions to NULL to avoid compilation issue.

Change-Id: I7e1e027a3faabce1a8844606c5c5c3a412256ded
CRs-Fixed: 1088926
2016-11-16 06:38:40 -08:00
qcabuildsw
21019a75ea Release 5.1.1.4F
Release 5.1.1.4F

Change-Id: I3af0969f9b302db8516a04519b4d6e83433bb848
CRs-Fixed: 688141
2016-11-16 01:59:31 -08:00
Dustin Brown
d2a62b50ec qcacmn: Fix use-after-freed when sending WMI command to FW
Using a buffer after passing it to wmi_unified_cmd_send() induces a
race condition that may result in a use-after-freed situation. Fix
several potential use-after-freed situations when calling
wmi_unified_cmd_send() by ensuring all access to a buffer is done
before the call to wmi_unified_cmd_send().

Change-Id: I985aad6e49daf1d823e3751a9cb0a293a298323c
CRs-Fixed: 1089713
2016-11-16 01:59:30 -08:00
qcabuildsw
a7e56fb7c5 Release 5.1.1.4E
Release 5.1.1.4E

Change-Id: I6b9de3a8c87b6b8308fff49c3a84ee8eec7855dc
CRs-Fixed: 688141
2016-11-15 19:48:38 -08:00
Orhan K AKYILDIZ
f006e93682 qcacmn: Disable NAPI before disabling the irq
Before disabling the interrupts, disable NAPI so that
the softirq cannot be [re-]scheduled.
Remove the affinity notification on the irq.

Change-Id: I64061d2b4f2e1e6eff67416133b928faa9c0dd4c
CRs-Fixed: 1089166
2016-11-15 19:48:37 -08:00
qcabuildsw
f0e70a477d Release 5.1.1.4D
Release 5.1.1.4D

Change-Id: Ief4cc38f7a6a12125f26a50a35a010c7d339b4f1
CRs-Fixed: 688141
2016-11-15 02:18:26 -08:00
Houston Hoffman
a69581e791 qcacmn: Disable interrupt processing before stopping the bus
The interrupt free code is protected by a flag.  In the normal case
the interrupts are freed before the bus is stopped.  Make all cases
free the interrupt before hif_stop.

Change-Id: I1e1dfae9ba388733eb13f2cdf90aa85b3db35b0d
CRs-fixed: 1089935
2016-11-15 02:18:25 -08:00
Houston Hoffman
7fe51b1cf3 qcacmn: Free ce fastpath buffer even if handler not installed
Durring a driver load failure, the fastpath buffer is allocated
before the fastpath handler is installed.  Change the free logic
to match the allocation logic.

Change-Id: Ib9731b3d06d7ac728e0f23bb32e2b74c35b9a8de
CRs-Fixed: 1089933
2016-11-15 02:18:24 -08:00
Houston Hoffman
8a3539345e qcacmn: Do not export dump_hex_trace
Since dump_hex_trace is defined as a static function,
it should not be exported. The 2 scopes conflict.

Change-Id: Ia39a4fdcffeffa452b684f77d015eabd421e89e8
CRs-Fixed: 1089727
2016-11-15 02:18:23 -08:00
Houston Hoffman
78feca302e qcacmn: Prepend DPT timeout messages with 'DPT:'
Mark the timeout messages in qdf_dp_display_record with
the 'DPT:' prefix and print them with the same error
level as other DPT messages.

Note that there are allready error level logs in HDD to
indicate that a timeout occured. The value add here is that
this timeout is noted in the contect of DPTRACE where prior
successfull packets will also have been logged.

Change-Id: I87b041895462474d37d092d48aa4c7e957ff45c5
CRs-Fixed: 1089725
2016-11-15 02:18:22 -08:00
Houston Hoffman
271951f0dc qcacmn: Return error in hif start for allocation failures
This allocation failure will likely lead to a copy engine
stall and subsequent need to restart the subsystem.
Abort the module start immediately to avoid a system crash
or delayed subsystem restart.

Change-Id: Ibe7b348dee39d35e3e7f767f17f0114d888a30f8
CRs-Fixed: 1088725
2016-11-15 02:18:21 -08:00
Houston Hoffman
bba5ca6af7 qcacmn: Reduce log level of DPTRACE prints
DPT prints were flooding kmesg and causing watchdog bark
in stress testing cases.  Reduce log level to info and
only include the prints in the driver log.

Change-Id: If6ba6786cfe9ff050a21673002ef273a670c3f68
CRS-Fixed: 1089051
2016-11-15 02:18:20 -08:00
qcabuildsw
a5daa9165a Release 5.1.1.4C
Release 5.1.1.4C

Change-Id: Ic112063116de79ef93c9f67a82688e60e1fb863b
CRs-Fixed: 688141
2016-11-15 00:35:31 -08:00
Manjunathappa Prakash
2146da30dd qcacmn: Add changes for per NAPI or per Rx CE LRO manager
Make changes for per per Rx context LRO manager, this addresses
all parallel Rx concurrency issues. There by removes all the contention.

Change-Id: I90604ffdf7b7fd930eee636426a4c7fc9b92c7d7
CRs-Fixed: 1079320
2016-11-15 00:35:31 -08:00
qcabuildsw
4b7565cba3 Release 5.1.1.4B
Release 5.1.1.4B

Change-Id: I3955546c3608ac3abd1d48655622f67d69720ca9
CRs-Fixed: 688141
2016-11-14 06:13:11 -08:00
Kiran Venkatappa
e478fe720e qcacmn: Remove function prototype for hif_get_dev_ba from c file
Function prototype for hif_get_dev_ba is added in hal_sng.c to avoid
warning. This should be ideally added in header file. Removing the
prototype from c file.

Change-Id: I3220765b1dbc8a2cd5a45ccfe85fde09aee12a00
CRs-Fixed: 1079655
2016-11-13 23:59:44 -08:00
Kiran Venkatappa
7439befaf8 qcacmn: Add function prototype for hif_get_dev_ba in header file
Function prototype for hif_get_dev_ba is c file to avoid
warning. This should be ideally added in header file. Adding this
prototype in hif.h.

Change-Id: Ic61c5b8278e6e888931721e716de74c4703ace82
CRs-Fixed: 1079655
2016-11-13 23:59:33 -08:00
qcabuildsw
2721538417 Release 5.1.1.4A
Release 5.1.1.4A

Change-Id: I24c365b8c0a3bd7a407292b7013a7fe5fc2cdbb5
CRs-Fixed: 688141
2016-11-11 00:07:14 -08:00
Nandha Kishore Easwaran
132a470105 qcacmn: Enable STAT log for tx time and rx time
STATS log for:
a) total time for tx
b) total time for rx(inside bss)
c) total time for rx(outside bss)
On "iwpriv athX txrx_fw_stats 24" command, stats logged
On "iwpriv athX txrx_fw_stats 25" command, stats logged and reset

Change-Id: I3b7d794e155916745a2c6c045984b416d3dc91ee
CRs-Fixed: 1072258
2016-11-11 00:07:13 -08:00
qcabuildsw
2b4d5cebf9 Release 5.1.1.4
Release 5.1.1.4

Change-Id: I5f16ce67cc8359eb3195d0e09d7afce36732ade4
CRs-Fixed: 688141
2016-11-09 22:57:50 -08:00
Kiran Venkatappa
3a4153318c qcacmn: Add extract routines for WMI ext service ready event
Add helper routines to extract TLV params in WMI EXT service ready
event. These helper routines abstracts all TLV related information
providing APIs to extract ext serivce ready params.

Change-Id: Ic989331856ed2f9376965bdec4b658328f9e470b
CRs-Fixed: 1079237
2016-11-09 22:57:44 -08:00
Kiran Venkatappa
6768509c68 qcacmn: Pass valid dev in consistent mem alloc
On 64-bit platform consistent mem alloc was failing due to NULL
passed for dev. Fix this by passing valid dev in consistent mem alloc
call.

Change-Id: I730af58c637dc652c4e249b83d432e0b5f01f7fb
CRs-fixed: 1079575
2016-11-09 22:57:36 -08:00
qcabuildsw
7cd0866eab Release 5.1.1.3Z
Release 5.1.1.3Z

Change-Id: I28d651fc7ffb1b2aef113f062fadddf6616ab39d
CRs-Fixed: 688141
2016-11-09 20:26:00 -08:00
Liangwei Dong
2c73be828a qcacmn: Fix WMI command tx failure
qcacld-2.0 to qcacmn propagation

In USB solution, one WMI command will consume
one "resource". So, for WMI endpoint, the
"resource" number of one bundle is
HTC_MAX_MSG_PER_BUNDLE_TX rather than 2 *
HTC_MAX_MSG_PER_BUNDLE_TX.

Change-Id: Ia60e49a403a0d689d1ba8397f7c796cd911ab918
CRs-Fixed: 1013006
2016-11-09 20:25:59 -08:00
qcabuildsw
6dae88454c Release 5.1.1.3Y
Release 5.1.1.3Y

Change-Id: I9724278a15b403bdb174ee5375b89c446af9d469
CRs-Fixed: 688141
2016-11-08 22:54:46 -08:00
Sreelakshmi Konamki
e2e313532a qcacmn: Change time format of MTRACE logs
qcacld-2.0 to qcacld-3.0 propagation

MTRACE logs timestamp format is different from logcat logs,
and it's difficult to correlate with other logs.

This fix changes the timeformat of MTRACE logs
from qtimer ticks to hr:min:sec:msec

Change-Id: I45e5d28fbeccd757648f05ce4e593d8ca4fe7804
CRS-Fixed: 1049125
2016-11-08 22:54:45 -08:00
qcabuildsw
3f82a0e32d Release 5.1.1.3X
Release 5.1.1.3X

Change-Id: I74bd5e1c6c4d5b2272b0b36e3e3b61b999eabe38
CRs-Fixed: 688141
2016-11-08 02:37:00 -08:00
Mukul Sharma
5984d920a0 qcacmn: Change WMI command limit to 256 from 1024
qcacld-2.0 to qcacmn propagation

To debug the fwr stuck issue as early as possibile,
reduce the wmi max pending command threshold to 256
from 1024.

Change-Id: Ic3cbe26cca979dcaa68fca03e6fe1af397cf0c4f
CRs-FIXED: 1080761
2016-11-08 02:36:59 -08:00
qcabuildsw
6a4fcd9914 Release 5.1.1.3W
Release 5.1.1.3W

Change-Id: Ic0d1751e5b565f7e722bb83efc9d6d4dff1b0744
CRs-Fixed: 688141
2016-11-07 03:33:24 -08:00
Komal Seelam
887b648e11 qcacmn: ADD API to sanatize during SSR shutdown
During SSR, HDD context prevails, no need to free the contexts.
Hence add an API to sanatize runtime pm list during SSR shutdown.

CRs-Fixed: 1082449
Change-Id: I189eca6fc31dfa2cdedade3d5308f01311d72c88
2016-11-07 03:33:23 -08:00
Nandini Suresh
d94d51144b Release 5.1.1.3V
Release 5.1.1.3V

Change-Id: Ic7a637b9212bdc0e19a6896293f853041fdce438
CRs-Fixed: 688141
2016-11-04 11:21:51 -07:00