Commit graph

876,347 commits

Author SHA1 Message Date
Satya Durga Srinivasu Prabhala
dff862de34 defconfig: arm64: Enable sched debug features on Lahaiana
To be able to debug performance issues related to scheduler and
other scheduler bugs, enable below debug features:
  1. PREEMPTIRQ_EVENTS
  2. PANIC_ON_SCHED_BUG
  3. PANIC_ON_RT_THROTTLING

Change-Id: If3350c3914e0c1590a7536cfb8131d747a075263
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-01-10 10:16:23 -08:00
qctecmdr
801710a3fa Merge "msm: kgsl: Add A660 to the gpulist" 2020-01-10 09:07:24 -08:00
qctecmdr
89cb2f1e04 Merge "msm:ipa: stop UL IPA TX channel at the end of the probe" 2020-01-10 01:27:35 -08:00
qctecmdr
f9c09b638f Merge "msm: ipa: tune mhip ring size shrink to 6 elements" 2020-01-10 00:50:28 -08:00
qctecmdr
d93983d18c Merge "msm: ipa: vote for device side through mhi for tethering use cases" 2020-01-10 00:16:33 -08:00
qctecmdr
7ee6423b56 Merge "msm:ipa: mhip ring size optimization" 2020-01-09 23:40:11 -08:00
qctecmdr
35ad67c68d Merge "msm:ipa: continue ODL logging on MHIP post modem SSR" 2020-01-09 23:08:14 -08:00
qctecmdr
e445a70cfa Merge "msm:ipa: uc based flow control for UL tethering offload" 2020-01-09 22:00:04 -08:00
qctecmdr
f27ee2ff0d Merge "usb: typec: ucsi: fix spelling mistake "connetor" -> "connector"" 2020-01-09 17:14:37 -08:00
qctecmdr
93a183ce66 Merge "usb: typec: ucsi: Actually enable all the interface notifications" 2020-01-09 16:42:39 -08:00
qctecmdr
1345c14964 Merge "msm: ipa : Fix KW array index issue on dbg_buff" 2020-01-09 15:33:59 -08:00
Michael Adisumarta
a1667e6019 msm: ipa: vote for device side through mhi for tethering use cases
Specify MHI_VOTE_DEVICE flag when calling mhi-driver API:
mhi_device_get_sync to make sure device side PCIE won't
get to power collapse.

Change-Id: Ia254d3bdbc191f80af05224df4b272921aba2d10
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-01-09 14:28:11 -08:00
Michael Adisumarta
e1d40758a7 msm: ipa: tune mhip ring size shrink to 6 elements
This change tunes MHIP UL / DL ring sizes to 6 elements for better
memory optimization.

Change-Id: I2e350bfee0c5b6f0aafdf5462be80f06001c6052
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-01-09 14:22:35 -08:00
qctecmdr
b53ff71bc0 Merge "crypto: msm: Add QTI crypto drivers" 2020-01-09 14:16:02 -08:00
Michael Adisumarta
0ebf33cfb2 msm:ipa: mhip ring size optimization
reduce MHIP ring size to 64 elements for memory saving
and tcp transmission queue size reduction.

Change-Id: Ib718d07a5f5078899847527ea26ef23524fbe024
Acked-by: Suhas Mallesh <smallesh@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-01-09 14:00:12 -08:00
Michael Adisumarta
58c73c8d55 msm:ipa: uc based flow control for UL tethering offload
This change enables uc UL tethering offload flow control by
setting/resetting end point delay  for tethering clients
such as USB/WiFi.

Change-Id: Ie02c9234fe264f88042b4cf4b7682d9b86d154c2
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-01-09 13:55:37 -08:00
Michael Adisumarta
e5f9bb8d59 msm:ipa: stop UL IPA TX channel at the end of the probe
Stop UL MHIP IPA TX channel at end of the probe
if there is no active tethering. This will make sure no Uplink data is
sent when Device side is not prepared to take data.

Change-Id: Id37c0c7eb8270bdf4806265c75780951ae7394c3
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-01-09 13:53:13 -08:00
Michael Adisumarta
b5eb1a5688 msm:ipa: continue ODL logging on MHIP post modem SSR
Post modem SSR, check if previously ODL was connected and if yes
connect back ODL from mhip probe.

Change-Id: If0a2cc4a6e9c0a9836ea85fa62677f0c8a6f0e44
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-01-09 13:28:37 -08:00
qctecmdr
a347cbb376 Merge "usb: typec: ucsi: Store the notification mask" 2020-01-09 12:37:39 -08:00
qctecmdr
12712c665b Merge "usb: typec: ucsi: Fix the notification bit offsets" 2020-01-09 11:57:13 -08:00
qctecmdr
18ed6679f0 Merge "dt-bindings: clock: add MDSS clock names for Lahaina" 2020-01-09 08:55:51 -08:00
qctecmdr
f878ff116d Merge "coresight: csr: update programming sequence of enabling etr to bam" 2020-01-09 07:14:51 -08:00
qctecmdr
2aa3d32fe7 Merge "coresight: fix tmc flush timeout issue" 2020-01-09 06:44:47 -08:00
qctecmdr
8d7ec1b3ac Merge "coresight: tmc: leverage etr disable/enable when switching mode" 2020-01-09 06:14:58 -08:00
qctecmdr
bbb08a9d27 Merge "coresight: tmc: add usb support to etr" 2020-01-09 05:41:06 -08:00
qctecmdr
34d581cbff Merge "platform: msm: add support for external display module" 2020-01-09 04:09:02 -08:00
qctecmdr
07bf3d2c9e Merge "arm64: defconfig: Enable USB QDSS and USB BAM drivers on Lahaina" 2020-01-09 03:26:49 -08:00
qctecmdr
7ed98cdb71 Merge "iommu: Fixup selftests" 2020-01-09 02:51:55 -08:00
Yuanfang Zhang
5bbfb312c6 coresight: csr: update programming sequence of enabling etr to bam
There is a new programming sequence on Kona, the register of
QDSS_QDSS_CS_QDSSCSR_USBFLSHCTRL should be configured after
programming TMC ETR registers. This changes use new programming
sequence to enable etr to bam. Add sysfs interface in CSR to let
user space change usb flush period.

Change-Id: I0cee7db746106fd0318d01a92682f185cb31ad97
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2020-01-09 00:00:43 -08:00
Yuanfang Zhang
0726d3a73c coresight: fix tmc flush timeout issue
cpu will hang when FlushMan bit, StopOnFl bit don't be reset
to 0 and etm0 was enabled. This change disable source and link
for all activated path to workaround this issue when read tmc
from dev interface and switch etr out_mode.

Change-Id: Idf6d8cffcef0bedaeed91f28366f9c33e22bc0cb
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2020-01-09 00:00:35 -08:00
Tingwei Zhang
f37e82faf4 coresight: tmc: leverage etr disable/enable when switching mode
Disable ETR first and enable it again with new mode to switch
out_mode. In this way, we can leverage etr_disable and etr_enable
function and avoid doing same thing.

Change-Id: I5dcae31b657568c751e9b4a209cc7a85d13f83f0
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2020-01-09 00:00:14 -08:00
Tingwei Zhang
32ce34b1c4 coresight: tmc: add usb support to etr
Coresight ETR can support USB mode. Trace data is streamed
out through USB to host machine.

Change-Id: If6ab122f5bbfc247210c4450ab1ec846a32ce2cd
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2020-01-09 00:00:05 -08:00
qctecmdr
b57852c6b0 Merge "arm64: defconfig: Enable SPS driver for lahaina" 2020-01-08 21:03:11 -08:00
qctecmdr
7c46c88c7b Merge "iommu/arm-smmu: avoid possible deadlock during map_sg" 2020-01-08 20:10:12 -08:00
Tatenda Chipeperekwa
bed7a261e1 platform: msm: add support for external display module
Add support for the external display module, which is a utility
to manage display interface and audio codec interactions
associated with the cable connect/disconnect events of the
display interfaces. The helper class is responsible for
routing operations called by the audio codec to a particular
display, and for creating and updating the audio switch nodes.

This implementation is based on a snapshot of the external
display module as of this commit 104eef6e1fe8d4d2 ("platform:
msm: Remove unused local count variable") on kernel-4.19.

Change-Id: I919adf3fda110ecba8d7054a1385e2cbdaca2467
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2020-01-08 17:37:50 -08:00
Colin Ian King
e5b16844c6 usb: typec: ucsi: fix spelling mistake "connetor" -> "connector"
There is a spelling mistake in a dev_dbg message. Fix it.

Change-Id: Ic0c777c5854a0f0c472be6b679f334ee258e347f
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200106111124.28100-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 497210f27b8ccc38c03c679237a4fc766fbc3aba
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-01-08 17:26:42 -08:00
Heikki Krogerus
151ebcaf7b usb: typec: ucsi: Actually enable all the interface notifications
The notification mask was not updated properly before all
the notifications were enabled in ucsi_init().

Change-Id: I1af9225b7f419d7ad435448ae24576d4dcbcd4d2
Fixes: 71a1fa0df2a3 ("usb: typec: ucsi: Store the notification mask")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200108131347.43217-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 9521e47e9ab8401eb42e8ef5c2c9a46ac7dd8876
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-01-08 17:26:42 -08:00
Heikki Krogerus
9ab8436baa usb: typec: ucsi: Store the notification mask
The driver needs to ignore any Connector Change Events
before the Connector Change Indication notifications have
actually been enabled. This adds a check to
ucsi_connector_change() function to make sure the function
does not try to process the event unless the Connector
Change notifications have been enabled.

It is quite common that the firmware representing the "PPM"
(Platform Policy Manager) starts generating Connector Change
notifications even when only the Command Completion
notifications are enabled.

Change-Id: I465c91247e70c34b74ede51bb89b103ed9f083c6
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20191230133431.63445-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 71a1fa0df2a3728b8ccb97394be420d1f03df40e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-01-08 17:26:38 -08:00
Heikki Krogerus
fbefff560a usb: typec: ucsi: Fix the notification bit offsets
The bit offsets for the Set Notification Enable command were
not considering the reserved bits in the middle.

Change-Id: I50247ffce31f3d7613823231485b7f693ce1f216
Fixes: 470ce43a1a81 ("usb: typec: ucsi: Remove struct ucsi_control")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200108131347.43217-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 33786a2801163a5888679ae064b99927fa849a9e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-01-08 17:26:33 -08:00
qctecmdr
dda0be3d74 Merge "ion: Fix API changes in dma-buf-ref.c" 2020-01-08 16:41:06 -08:00
Mayank Rana
a643bb5f75 arm64: defconfig: Enable USB QDSS and USB BAM drivers on Lahaina
QDSS over USB functionality needs USB QDSS function driver and USB BAM
driver. Hence enable those drivers on Lahaina.

Change-Id: Ic4196b6aac1b40c671db2f1abba1994ffb473112
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-01-08 16:08:45 -08:00
qctecmdr
3512d1a673 Merge "msm: ipa3: Fix to ignore frag status packet in lan consumer pipe" 2020-01-08 16:06:58 -08:00
Harshdeep Dhatt
63b8c17f57 msm: kgsl: Add A660 to the gpulist
This change adds the core device structure for a660.

Change-Id: I17eb144585c08ed75eb55a2ebe29c26c0a301bc7
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-01-08 15:41:56 -07:00
Satya Rama Aditya Pinapala
4d2ead1122 dt-bindings: clock: add MDSS clock names for Lahaina
This change adds names for the clocks and dividers used
by DP and DSI PLL on 5nm architecture.

Change-Id: Ia6a49b765cbfbc517e4f2bc06c357c5f3109f912
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-01-08 14:21:30 -08:00
qctecmdr
d1fe4aac61 Merge "sched/fair: Don't place wakee on waker cpu if colocate enabled" 2020-01-08 14:10:37 -08:00
Sudarshan Rajagopalan
92b97fee78 iommu/arm-smmu: avoid possible deadlock during map_sg
A possible deadlock could occur with the following flow:

    arm_smmu_map_sg()
    -->arm_smmu_secure_domain_lock()
    -->ops->map_sg() //this returns an error with ret = 0
    -->size_to_unmap = iova + size - __saved_iova_start;
    -->goto out;
    -->arm_smmu_assign_table()
    -->arm_smmu_unmap()
    ---->arm_smmu_secure_domain_lock() //DEADLOCKed!!!!!
    -------->mutex_lock()

The secure domain lock is needed to protect hyp assign and unassign.
Hence, its safe to call arm_smmu_secure_domain_unlock() after the
map and assign is done. Do this to avoid any runtime deadlocks.

Change-Id: I35effc170d8432d32c0cab3081be4897830d9212
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-01-08 13:41:57 -08:00
qctecmdr
a5c335f749 Merge "msm: adsprpc: HMX,Async-FastRPC capability" 2020-01-08 13:34:18 -08:00
qctecmdr
89f8099d56 Merge "arm64: defconfig: Enable qseecom driver for Lahaina" 2020-01-08 12:50:46 -08:00
Jordan Crouse
3a2abcbc85 iommu: Fixup selftests
Commit fb3f251037 ("iommu/arm-smmu: Merge all IOMMU changes from msm-4.19
to msm-lahaina") added some enhanced selftest functions for io-pgtable-arm
and io-pgtable-fast but they still had older APIs for the IOMMU
operations.

Change-Id: Ic0dedbad3ce8339bc471afb83113b47cd169d5cc
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-01-08 13:25:40 -07:00
Jordan Crouse
2b6002f8df ion: Fix API changes in dma-buf-ref.c
Commit fe5698e796 ("ion: Merge all ION related changes from msm-4.19 to
msm-lahaina") added the file dma-buf-ref.c but it was using an older
kernel API for the stack trace management. Fix up the API to work
with 5.4.

Change-Id: Ic0dedbad6f0603ace4c8dc92e6789e043e7fdfa9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-01-08 13:25:40 -07:00