Commit Graph

256 Commits

Author SHA1 Message Date
Ashok Vuyyuru
607c3f123c msm: ipa3: Fix to use the msecs_to_jiffies
Based on HZ configured in target defconfig wait time was changing.
To avoid these scenario using msecs_to_jiffies function it will
give fixed time value based on HZ configured on the system.

Change-Id: Ia3fe08c238afb618b158b67d1b226ad62197391f
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-04-07 22:06:39 +05:30
Ashok Vuyyuru
444bdbd243 msm: ipa4: Adding changes to support load new GSI FW
Lito and Lagoon targets sharing same lunch option but
using different signing images, adding support
to load specific FW image to based on DTSI entry.

Change-Id: I468378fa163255a1ae8b0f7f2bb9726e7b656bd6
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-04-04 00:32:33 +05:30
Bojun Pan
c8a055ea6c xmsm: ipa4: rmnet_ctl low latency pipe support
Add 2 new pipes support for qmap flow control and low latency
traffic from rmnet_ctl module.

Change-Id: Iae11e742f1f3d1d3ec7b21b02426b0164dcb13c5
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-03-30 23:00:48 -07:00
Ashok Vuyyuru
62f45adb3d msm: ipa: Fix to avoid NULL pointer access after freeing it
Observing SMMU fault because of providing the already free pointer to
IPA HW. Add changes to avoid the accessing the already freed pointer.

Change-Id: I4d7420816aec0ab7207c683315558e551373d8bc
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-03-23 11:58:22 -07:00
Ashok Vuyyuru
58de42af6b msm: ipa3: Fix to not send command for test prod pipe
Following issues are observed:
 - For coalescing close frame not incrementing the ep_flt_num
 - In endpoint mapping added new unused endpoint with filter support
   because of that sending command for unused pipe.
Add changes to increment ep_flt_num number when sending coalescing
close frame command and avoid sending command for TEST_PROD pipe.

Change-Id: I3604c015308977c45eb1b251ed54d6e6744f643d
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-03-19 17:25:18 -07:00
Chaitanya Pratapa
23515598ab msm: ipa: Update source and dest resource group values
This update will ensure that all the source and destination groups are
updated for IPA4.9.

Change-Id: I33e4c054d762f0fa2438d12e0c7a76dc10ea1395
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-03-13 17:52:39 -07:00
qctecmdr
c861b628a4 Merge "msm: ipa: Fix ipa3_wwan_xmit return type" 2020-03-11 13:04:34 -07:00
qctecmdr
36220d72bb Merge "msm: ipa: Update WLAN pipes to use WLAN2 clients" 2020-03-11 12:18:34 -07:00
qctecmdr
475122cbfe Merge "update trace paths" 2020-03-09 12:10:53 -07:00
Chaitanya Pratapa
7049e7475f msm: ipa: Fix ipa3_wwan_xmit return type
This change will fix the error seen with CFI for the return type of
ipa3_wwan_xmit.

Change-Id: Ib201debb338295f3a83bf07f51e0434cd3519db4
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-03-05 18:24:57 -08:00
Chaitanya Pratapa
35d0429723 msm: ipa: Update WLAN pipes to use WLAN2 clients
This update will change the EP consumer and producer clients to WLAN2.

Change-Id: I5beb2d8ed067869f374182bde7370cd45ddd97e8
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-03-05 17:38:15 -08:00
Amir Levy
d1106307c3 update trace paths
update trace paths to direct to techpack dataipa folder
rather than old kernel path

Change-Id: Id6faa1f7858ecd493e66b169d31b15b1283ca887
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-03-04 15:06:50 +02:00
Amir Levy
05adaa0971 align with ipa driver in kernel
As IPA driver moved to techpack, align with kernel version

Change-Id: Ifc3e0d40b6d54f0828fd4c4afc3b8e51a3ec7ffe
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-02-27 14:13:25 +02:00
Amir Levy
73c931c92c Enable IPA and GSI driver compilation on techapck
Update makefile to enable IPA and GSI driver
compilations. Add ipa_clients_manager that will register
ipa clients API to ipa_framework at the kernel.
Add conf and header files to enable compilation in
GKI QGKI and debug modes.

Change-Id: I6993b1f6e88f89c8cd8c02fa2fc8cf6a6f169f7d
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-02-24 16:18:32 +02:00
Bojun Pan
a619aab34b msm: ipa4: debug patch gsi interrupt issue
Debug patch for GSI interrupt issue.

Change-Id: I705cd893233e1afcaeed6fedb424830e39621114
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-02-06 14:25:58 +02:00
Prakruthi Deepak Heragu
6ef7ceaf5c msm: gsi: Fix the WARNING for gsi_write_channel_scratch
Definition of the __gsi_update_mhi_channel_scratch is moved to the end
where it is followed by no other non static function.

Change-Id: I6243fbb322c504d606bd5cd02302627afadc82ea
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-06 14:25:45 +02:00
Ghanim Fodi
d0ea932ccf Update IPA and GSI driver techpack snapshot
Upate the driver to msm-5.4 kernel snapshot as of
'commit <e1007d065f6> ("sched/fair: consider uclamp
 boost while deciding the start_cpu")'.

Change-Id: If63ae521dd26cbf72514cd0b95acfe38ed68cf82
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2020-01-29 21:23:50 +02:00
Ghanim Fodi
2bf0baa500 Update IPA and GSI driver techpack snapshot
Upate the driver to msm-5.4 kernel snapshot as of
'commit <6da1fc6d98ff77ff4> ("interconnect: qcom:
Change bcm voter initlevel")'.

Change-Id: I0abfbbe4a8a8da7bd64b5301decb2f2b483c4397
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2020-01-21 18:25:22 +02:00
Ghanim Fodi
2fc1f94d1d Make drivers base path similar to kernel one
To have base path similar to kernel, add the
base path of drivers/platform/msm. This is
mainly to ease the propagation from older
kernels.

Change-Id: Ib75002ad95c0f3374a897e0ca5125088ba2d1a3e
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2020-01-16 10:55:16 +02:00
Ghanim Fodi
78394bf246 Update IPA and GSI driver techpack snapshot
Upate the driver to msm-5.4 kernel snapshot as of
'commit <9195ca33275ea7a17fa2d> ("drivers: thermal:
Add config sysfs entry support for thermal zones")'.

Change-Id: I611b232f4206f2d95c33029ecca0bc5793c88707
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2020-01-15 14:06:25 +02:00
Ghanim Fodi
20819ba500 Moving IPA and GSI driver code to dataipa techpack
This is a snapshot of IPA and GSI drivers
from msm-5.4 kernel as of
'commit <137a997bae4f8e1787> ("msm: ipa: Fix using
generic name for offload connect/disconnect")'.

Change-Id: I8452cf76a1c568c1f89de8b329bdc6e7254694b4
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2020-01-13 18:46:29 +02:00
Arnav Sharma
ba08fe4570 Renaming IPA Driver file for compilation fix
Adding dummy file to enable compilation for lahaina

Change-Id: Ib9b91e0d4471744d1daf3f28cf8184c4371e24d2
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-12-11 11:37:37 -07:00
Arnav Sharma
4863c3cf8a Removing Unused Techpack dataipa code
Change-Id: I69665b12382d7fe1ce0a53f165a6bb03487a681c
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-12-11 00:19:09 -07:00
Ghanim Fodi
ef8de8d9db msm: ipa: make sure ipa context exists when 11ad smmu prob
make sure ipa3_ctx is not NULL when smmu is being probed
for 11ad device

Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2019-07-22 05:59:01 -07:00
Praveen Kurapati
9c19c7f2dd msm: ipa3: vote to turbo incase of APQ platform
Change the modem vote to turbo during usb-tethering only
when APQ platform was configured.

Change-Id: Ie41b9ac11eba954705acbf15836a632ee9c01347
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2019-07-22 15:29:22 +05:30
qctecmdr
1aa6e94e72 Merge "msm: ipa3: Fix to recycle buffers" 2019-07-18 00:21:27 -07:00
qctecmdr
6dc7f1de20 Merge "msm: ipa4: add ipa_wigig debugfs" 2019-07-17 23:45:57 -07:00
qctecmdr
69dcd6150f Merge "msm: ipa3: add qmi support for cleaning MHIP rules and frags" 2019-07-17 23:11:15 -07:00
qctecmdr
18a0904a03 Merge "msm: ipa: QMI update for firwall config" 2019-07-17 22:35:20 -07:00
qctecmdr
1fe29d3152 Merge "msm: ipa4: Cleanup duplicate code used for setup coalescing pipe" 2019-07-17 21:58:18 -07:00
qctecmdr
382955c771 Merge "msm: ipa4: add ipa_wigig tx callback interface" 2019-07-17 21:21:59 -07:00
qctecmdr
a831d3bf2a Merge "msm: ipa3: vote turbo when tethering on" 2019-07-17 20:46:09 -07:00
qctecmdr
6d5824bd4a Merge "msm: ipa4: initialize the replenish pointer for WAN consumer pipe" 2019-07-17 20:08:34 -07:00
qctecmdr
5d58e3ab95 Merge "msm: ipa3: support ipa clk scaling for pcie modem" 2019-07-17 19:31:41 -07:00
qctecmdr
f92be6e3ed Merge "msm: ipa3: Initialize the shift value to avoid misuse" 2019-07-17 18:55:36 -07:00
qctecmdr
7d5a6ae1a2 Merge "msm: ipa: remove ipa rm deprecated mechanism support" 2019-07-17 18:11:47 -07:00
qctecmdr
34d6b1ae7e Merge "msm: ipa4: Don't decrease channel ref conunt for GCI channel" 2019-07-17 17:36:47 -07:00
qctecmdr
87e33d2e3a Merge "msm: ipa4: Send new QMI indication message to modem for RSC pipe" 2019-07-17 16:55:37 -07:00
Arnav Sharma
8e8cf26c19 Removing MHI defconfig for Saipan
Change-Id: If8378875ef594045908b8cf2f7dd37a313e10254
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-17 08:19:42 -07:00
Chaitanya Pratapa
6912f94f2c msm: ipa3: Fix to recycle buffers
Make a change to protect cleaning up of recycle buffers
as there can be a race between clean up and recycling.

Change-Id: I7cc4f40ea87fb0a2b9ce76ff24b47c5d8a02d94f
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:18:57 -07:00
Amir Levy
4dcae9f2d5 msm: ipa4: add ipa_wigig debugfs
Add debugging capabilities to ipa_wigig.

Change-Id: I41ce94bbb2af597aa11848869261d8d432fa0e04
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:18:00 -07:00
Michael Adisumarta
e0745d4cc5 msm: ipa3: add qmi support for cleaning MHIP rules and frags
Add QMI IDL changes for supporting cleaning DL MHIP filtering
rules and also adds an option to use legacy path instead
of MHIP path for DL frag packets which are not supported.

Change-Id: Ic5641012f1d8a8365f51eef27426ad4d008d9892
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:16:53 -07:00
Mohammed Javid
96832ace0d msm: ipa: QMI update for firwall config
QMI struct update to support firewall
config.

Change-Id: I55f80d24670ec3062bd8d83834f2b302177119c5
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:13:46 -07:00
Praveen Kurapati
0247ef6bbe msm: ipa4: Cleanup duplicate code used for setup coalescing pipe
Cleaning up duplicate code used for setup coalescing pipe and
using the existing function ipa_setup_sys_pipe function for
configuring coalescing pipe.

Change-Id: I22be19f202ce9da96e9c0776b2b4dfa276a0e27b
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:10:23 -07:00
Amir Levy
c1c2fdf7f8 msm: ipa4: add ipa_wigig tx callback interface
Add interface for wigig driver to register tx completion
callback.

Change-Id: I20880b09c89e952519bd1ec917ae9153809ee7d6
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:09:22 -07:00
Skylar Chang
e9ddca7066 msm: ipa3: vote turbo when tethering on
Change the modem vote for pm_client as
the highest when usb-tethering is on and vote
back to low power mode when usb-tethering off.

Change-Id: I3e51dc34cea5c97a7f901d9981f908e35b8b0fb2
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:08:28 -07:00
Ashok Vuyyuru
ca68ccb325 msm: ipa4: initialize the replenish pointer for WAN consumer pipe
When coalescing pipe and WAN consumer pipe are configuring case
using the same replenish pointer as coalescing replenish pointer causing
overriding head_idx/tail_idx values for both pipes. Add changes initialize
the new replenish pointer for WAN consumer pipe.

Change-Id: I4d637ae9fd6a6d95a12bc239fbff9dea5668ff03
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:07:25 -07:00
Skylar Chang
710f989e84 msm: ipa3: support ipa clk scaling for pcie modem
Add the QMI support to change ipa clk scaling
from PCIE modem.

Change-Id: Iee77ff4b8027c2a042f2e6c640749cdec09d92dc
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 21:05:59 -07:00
Praveen Kurapati
17d30030db msm: ipa3: Initialize the shift value to avoid misuse
While writing to AGGR register shift value which is uninitialized
can be corrupted. Add changes to initialize the shift value.

Change-Id: I61d90fc1e370792b0f26a98fd02051c2ecac52ab
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 20:20:23 -07:00
Amir Levy
17f1f70c1e msm: ipa: remove ipa rm deprecated mechanism support
RM isn't in use for newer devices.

Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Change-Id: I8005f02acbd424e0721c2efa49f840f2cf7e8f7b
Signed-off-by: Arnav Sharma <arnav_s@codeaurora.org>
2019-07-16 20:19:19 -07:00