Commit graph

1,585 commits

Author SHA1 Message Date
Dhanashri Atre
57e420d642 qcacmn: Pass the device to memory allocation and free
Pass the device instance to the QDF memory allocation and
free functions.

Change-Id: Ia6297e311cdca708b96c72fb50f8961cddc95d83
CRs-Fixed: 1087538
2016-11-21 15:20:03 -08:00
Ankit Gupta
7ee2ab073b qcacmn: Increase timeout values for napier emu
Increase the timeout duration for protocol events
for napier emulation platform.

Change-Id: I358259801018dc7ce48bd85f35594dec44704017
CRs-Fixed: 1089638
2016-11-21 15:20:02 -08:00
qcabuildsw
d5b4fa8eea Release 5.1.1.4O
Release 5.1.1.4O

Change-Id: If9c2f33c2d0d7c411ab3bc7e85af4c382651577a
CRs-Fixed: 688141
2016-11-21 13:07:32 -08:00
Nandha Kishore Easwaran
fd7832e906 qcacmn: Change CDP layer to include build flags
Making changes in cdp layer to include proper compilation
flags

Change-Id: I6d325386f2a6a2b01a900d0c525c7f30aa128e47
Crs-fixed: 1075597
2016-11-21 13:07:31 -08:00
qcabuildsw
a4a0a3d008 Release 5.1.1.4N
Release 5.1.1.4N

Change-Id: I6769d8dcc0c5b490ba93bbd2b240c708bc0278c0
CRs-Fixed: 688141
2016-11-20 22:33:05 -08:00
Sarada Prasanna Garnayak
8d9eba1470 qcacmn: Fix compilation error for msmcobalt_32
In hnc_link_clusters function, few local variables left
uninitialized. Initialize them with zero as they will get
overwritten during the processing of the cluster for first time.

CRs-Fixed: 1085510
Change-Id: I04af509bdc1a63eeb215c5ec854b55a8bc45aba9
2016-11-20 22:33:04 -08:00
qcabuildsw
5ce8af883b Release 5.1.1.4M
Release 5.1.1.4M

Change-Id: Ife936e41b4f4001f20604c6a7d8d9867b410967b
CRs-Fixed: 688141
2016-11-19 19:32:15 -08:00
Houston Hoffman
6fe6059965 qcacmn: Dummy hif_hal_attach when hal not supported
If hal_api.h is not available do not use its api's.
Avoid "implicit declaration of function" compilation error.

Change-Id: I8458bde4ce862adeeda5c8d3892ce439be068c06
CRs-Fixed: 1089874
2016-11-19 19:32:14 -08:00
Houston Hoffman
b522bdc3cc qcacmn: sync qca6290def.c with fw_common
Use UMAC_CE_COMMON_CE_HOST_IE_0 instead of
UMAC_CE_COMMON_WFSS_CE_COMMON_R0_CE_HOST_IE_0

Change-Id: I70e92ca4b86329b562e84261d8911f52f7d64cd0
CRs-Fixed: 1089874
2016-11-19 19:32:13 -08:00
Houston Hoffman
2d8ee28971 qcacmn: changes in pcie path to bypass for emulation builds
Changes include skipping of legacy interrupt routing,
target probe and target sleep state adjust

Change-Id: I36b7f627e7ca6970a73ffbc85b7f0e7a6ce40325
CRs-Fixed: 1089874
2016-11-19 19:32:12 -08:00
Houston Hoffman
74109127d0 qcacmn: write DEST_MAX_LENGTH for CE rings
Change that allows configuration of max buffer
size for SRNG rings in the receive direction

Change-Id: Ib857f1fdf43c849078f9470ec029fe627379fcb4
CRs-Fixed: 1089874
2016-11-19 19:32:11 -08:00
Houston Hoffman
f7bc308404 qcacmn: use my_io_remap to map 13MB for pcie space
This remap is needed temporarily for emulation builds

Change-Id: I6662eeba32dc5847aac730928ed72db77ff1d42c
CRs-Fixed: 1089874
2016-11-19 19:32:10 -08:00
Houston Hoffman
202425d1a5 qcacmn: Set intr_timer_thres_us to 0
intr_timer_thres_us minimum step size is 8us. So anything
less than 8 will not enable the hardware timer.  Set the
value to 0 to avoid confusion.  A strong warning message
should also be added.

Change-Id: I9286d2988930df8577e46e5a753cc6f68c71d180
CRs-Fixed: 1089874
2016-11-19 19:32:09 -08:00
Houston Hoffman
e1961b6e84 qcacmn: supply dev to qdf_mem_alloc_consistent
Required by newer kernels.

Change-Id: I891a6f86fcd8566deb4988a13259325be37e1fda
CRs-Fixed: 1089874
2016-11-19 06:49:42 -08:00
Houston Hoffman
6b3047aa2b qcacmn: Do msi init first and write to PRODUCER_INT_SETUP
PRODUCER_INT_SETUP register write was missed.
MSI init should be done before configuring interrupt
triggers.

Change-Id: Idf356b889ba2aa9d1269e0c07dcad02cc9c63a6a
CRs-Fixed: 1089874
2016-11-19 06:49:00 -08:00
Houston Hoffman
9a1b391970 qcacmn: Add direction to srng DPTRACE call
DPTRACE has been enhanced to record send and recive packets.
Update the missed call site

Change-Id: If1554b31add1df00f98b6d3eed8e5f752ca4722c
CRs-Fixed: 1089874
2016-11-19 06:48:38 -08:00
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