Commit Graph

24 Commits

Author SHA1 Message Date
Kai Liu
4be28ba641 qcacmn: Enhance hang info feature
Add bus related info in hif layer in order to get bus status
when hang issue happened.

Change-Id: If922e0892e0f65de778b9696bbc56fc63c25c169
CRs-Fixed: 2801350
2020-10-30 13:03:35 -07:00
Uraj Sasan
0d5e9734be qcacmn: Adds dummy API's
Adds dummy API's for hif_config_irq_by_ceid.

Change-Id: I7bbb0ece4ab5f8bf648bc0e945c5a28de2a49feb
2020-10-12 02:32:11 -07:00
Srinivas Girigowda
80c1b5a6c3 qcacmn: Replace obsolete HIF_DBG() with hif_debug()
Replace obsolete HIF_DBG() with hif_debug().

Change-Id: I462d75617359fd13eafa497045ddfb70c2025595
CRs-Fixed: 2779720
2020-10-01 14:41:39 -07:00
Srinivas Girigowda
9667b145c6 qcacmn: Replace obsolete HIF_ERROR() with hif_err()
Replace obsolete HIF_ERROR() with hif_err().

Change-Id: I9260b47d11c1820bb05d9a7e2bf50d5257ba85ae
CRs-Fixed: 2779720
2020-10-01 14:40:57 -07:00
Shashikala Prabhu
cb2acc0ea0 qcacmn: Correct the return types of functions in HIF component
A few functions in HIF component returns QDF status value with return
type as non QDF STATUS and vice versa. For such functions, update the
correct return type.

Change-Id: Ifc1068d60e62f7405a15e2b4f0738d91243bd6de
CRs-Fixed: 2734818
2020-07-24 09:21:14 -07:00
Nisha Menon
046f3623de qcacmn: Back pressure in REO2SW1 ring resulting in REO panic
Update QCA_NAPI_DEF_SCALE_BIN_SHIFT for defconfig builds to
the same value as the perf build.
Move the WLAN ext irqs to gold cores for defconfig builds.
Disable cpu isolation before moving the IRQs to gold cores.
Add the ability to move IRQs to gold cores when the cpus
hotplug in.

Change-Id: I4cfecd02a1a2200dc99adee9a324b90c877c13fd
CRs-Fixed: 2638820
2020-04-09 05:21:20 -07:00
Jeff Johnson
1002ca5ed9 qcacmn: hif: Fix misspellings
Address the following issues in the hif folder:
CHECK: 'controll' may be misspelled - perhaps 'control'?
CHECK: 'Implemenation' may be misspelled - perhaps 'Implementation'?
CHECK: 'intialize' may be misspelled - perhaps 'initialize'?
CHECK: 'occuring' may be misspelled - perhaps 'occurring'?
CHECK: 'reseting' may be misspelled - perhaps 'resetting'?
CHECK: 'stuct' may be misspelled - perhaps 'struct'?
CHECK: 'substract' may be misspelled - perhaps 'subtract'?
CHECK: 'successfull' may be misspelled - perhaps 'successful'?
CHECK: 'syncronize' may be misspelled - perhaps 'synchronize'?
CHECK: 'transfered' may be misspelled - perhaps 'transferred'?
CHECK: 'untill' may be misspelled - perhaps 'until'?
CHECK: 'wirte' may be misspelled - perhaps 'write'?

Change-Id: I80280ecb8ac8b0270a32add74429a8df89bedbcb
CRs-Fixed: 2241576
2018-05-19 19:41:05 -07:00
Jeff Johnson
5fb2e3d5f1 qcacmn: hif: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I5d1411d241cfed4f50759960d18e9220f6c0da39
CRs-Fixed: 2230684
2018-05-18 02:17:27 -07:00
Jeff Johnson
ae1b3de378 qcacmn: Fix typo "sucess"
Replace typo "sucess" with correct spelling "success"

Change-Id: Ieacb299890210d67848268a389a57168e2a2badd
CRs-Fixed: 2238309
2018-05-17 00:46:44 -07:00
Sravan Kumar Kairam
58e0adfb53 qcacmn: Add support for WLAN-IPA WDI2 with SMMU Stage 1
Update WLAN-IPA WDI-2 datapath for DMA buffer sharing with SMMU
Stage 1 translation support. When SMMU Stage 1 is enabled DMA
APIs return IO virtual address(IOVA) instead of physical address.
This IOVA need to mapped to physical address by IPA module
before accessing them.

Change-Id: I33082bc74760b0f12c348238c6f48f5ce5750172
CRS-Fixed: 2072953
2018-03-19 09:34:39 -07:00
Surabhi Vishnoi
6f752b487b qcacmn: Check target address boundary before access
Athdiag procfs entry does not have address sanity check, this is
resulting in invalid ioread32/iowrite32 if out of PCIE BAR address
is used.

Fix this by allowing address with in PCIE BAR range.

Change-Id: I8365eacca7ccc4f489b7d0bda6c998384d0fec7b
CRs-Fixed: 2112270
2017-11-05 20:37:06 -08:00
Houston Hoffman
def86a361b qcacmn: Introduce hif_exec_context
hif_exec_context extends hif_ext_groups to support napi and tasklet models.
Some of the rename and enahancements have been done to support merging of
the execution context management code between the CE and DP contexts, as
well as supporting irq affinity for both napi & tasklet contexts.

Change-Id: I82c8abf2e906f027ec80faf7353a7685536bb79b
CRs-Fixed: 2051902
2017-07-13 03:37:59 -07:00
Srinivas Girigowda
6e0cfd9494 qcacmn: HIF: Reduce the log spam in kmsg
Move the logs to appropriate log levels to reduce the log spam in kmsg.

Change-Id: I29121bb4cc1272aa1fb88183914530dd21c64272
CRs-Fixed: 2017427
2017-05-08 16:51:52 -07:00
Manikandan Mohan
8e0313588d qcacmn: Fix kernel module check patch warnings in HIF Dispatcher files
Fix kernel module check patch warnings in HIF DISPATCHER files

Change-Id: Ice22f299c075f99eacc20c7acc10fe8040139f97
CRs-fixed: 2033001
2017-05-02 13:29:25 -07:00
Venkateswara Swamy Bandaru
61824944ab qcacmn: Add API to support configuring external group interrupts
Added API to support configuring external group interrupts for AHB bus.

Change-Id: If65984183db808e68dea680c585692e1533e4c7a
CRs-Fixed: 2018655
2017-04-12 04:02:03 -07:00
Dustin Brown
07d24be439 qcacmn: Implement hif_dummy_map_ce_to_irq
Implement hif_dummy_map_ce_to_irq to prevent runtime errors on new
platforms that do not use hif_map_ce_to_irq.

Change-Id: I9e3da22e237c351ecc9919e69d8d68a656ef7cc9
CRs-Fixed: 2028145
2017-04-11 11:04:36 -07:00
Venkateswara Swamy Bandaru
31108f318c qcacmn: Add framework for external group interrupt handling
Change-Id: I68a3c597e452e1975a97f9262870e16538f6dc4c
CRs-Fixed: 1042915
2016-09-20 07:58:33 -07:00
Houston Hoffman
7fdff0c52f qcacmn: Use suspend_noirq callback instead of disabling irqs
Disabling the interrupts and setting them as wakeup sources does
not work as expected.  The pending interrupt gets trapped in sw
and kernel does not check for it before finishing the suspend.

Instead, use the suspend_noirq callback to guarantee that
wakeup messages don't get processed without rejecting the suspend.

Change-Id: I5ec5ce2a7e1b14c3d8477fe7aa0372c9ffd4dc0d
CRs-Fixed: 1060880
2016-09-01 22:08:57 -07:00
Mohit Khanna
1957ba9385 qcacmn: Add USB bus support (HIF Dispatcher)
Add module specific changes for USB bus support.

Change-Id: If1f7d16a733d5d98cba982e3a5e7936356c57d8a
CRs-Fixed: 1023663
2016-08-17 12:05:29 -07:00
Nirav Shah
b70bd731ec qcacmn: Add per CPU interrupt statistics
Add per CPU per copy engine interrupt statistics.

Change-Id: I1619f0db3314ae3d915284459f2b191f31fc2190
CRs-Fixed: 1017437
2016-06-30 03:11:34 -07:00
Nirav Shah
da0881a68f qcacmn: Datapath changes for WiSA specification
Datapath changes for WiSA specification.
 - Multicast packets with 50000 as destination
   port should go at 6Mbps.
 - Multicast packets with 50001 as destination
   port should go at 24Mbps.

Change-Id: I582b13fd85e2bdc0e49739a1c6f8d8a3b295902f
CRs-Fixed: 1010412
2016-06-14 13:48:41 -07:00
Nirav Shah
3573f9537b qcacmn: SDIO bus support (Part 2 - HIF Dispatcher)
Add HIF Dispatcher support for SDIO bus.

Change-Id: I953e1990cc14cbd07bc728f4cd4a8e8e20014158
CRs-Fixed: 969334
2016-06-14 13:48:15 -07:00
Houston Hoffman
b4149dda4f qcacmn: pointerize hif power_management apis
Bus power management requirements are different for different busses.
Add them to the bus opps table.

Change-Id: Ia5a2500dc2f1db3be2ddbbaea6a5969420ec0c51
CRs-Fixed: 978810 978802
2016-03-31 22:46:46 -07:00
Houston Hoffman
4ca03b6579 qcacmn: Add dummy functions to bus_ops table for snoc
Use bus ops table to tunnel into dummy implementations for snoc.
Needed to support both pcie and snoc in the same binary.

Change-Id: I11725ed4dfa5dd7b43a4b29236d3caca58fda41f
CRs-Fixed: 986480
2016-03-16 13:03:03 -07:00