Commit graph

876,477 commits

Author SHA1 Message Date
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 <[email protected]>
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 <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Git-commit: 497210f27b8ccc38c03c679237a4fc766fbc3aba
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <[email protected]>
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Git-commit: 9521e47e9ab8401eb42e8ef5c2c9a46ac7dd8876
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <[email protected]>
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Git-commit: 71a1fa0df2a3728b8ccb97394be420d1f03df40e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <[email protected]>
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Git-commit: 33786a2801163a5888679ae064b99927fa849a9e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <[email protected]>
2020-01-08 17:26:33 -08:00
Leonard Crestez
74f1b7c498 PM / QoS: Reorder pm_qos/freq_qos/dev_pm_qos structs
This allows dev_pm_qos to embed freq_qos structs, which is done in the
next patch. Separate commit to make it easier to review.

Change-Id: Iec9ff5a1a890e9dd59626c9731b1a8dbfeeb5121
Signed-off-by: Leonard Crestez <[email protected]>
Reviewed-by: Matthias Kaehlcke <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Git-commit: 342035f66c866f4ad750477b21b210e98d1f6818
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Shaleen Agrawal <[email protected]>
2020-01-08 16:48:10 -08:00
Leonard Crestez
e936a40935 PM / QoS: Redefine FREQ_QOS_MAX_DEFAULT_VALUE to S32_MAX
QOS requests for DEFAULT_VALUE are supposed to be ignored but this is
not the case for FREQ_QOS_MAX. Adding one request for MAX_DEFAULT_VALUE
and one for a real value will cause freq_qos_read_value to unexpectedly
return MAX_DEFAULT_VALUE (-1).

This happens because freq_qos max value is aggregated with PM_QOS_MIN
but FREQ_QOS_MAX_DEFAULT_VALUE is (-1) so it's smaller than other
values.

Fix this by redefining FREQ_QOS_MAX_DEFAULT_VALUE to S32_MAX.

Looking at current users for freq_qos it seems that none of them create
requests for FREQ_QOS_MAX_DEFAULT_VALUE.

Change-Id: I13dd09926290d2e7b1251270645b43549d81c11f
Fixes: 77751a466e ("PM: QoS: Introduce frequency QoS")
Signed-off-by: Leonard Crestez <[email protected]>
Reported-by: Matthias Kaehlcke <[email protected]>
Reviewed-by: Matthias Kaehlcke <[email protected]>
Cc: 5.4+ <[email protected]> # 5.4+
Signed-off-by: Rafael J. Wysocki <[email protected]>
Git-commit: c6a3aea93571a5393602256d8f74772bd64c8225
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Shaleen Agrawal <[email protected]>
2020-01-08 16:46:57 -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 <[email protected]>
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
98705af6d7 msm: kgsl: Check correct register for clamps on a660
A660 has a new register to check whether clamps were asserted
when toggling the gx rail.

Change-Id: Ie63853b79e386fdff0e0a5ab4c4fac62ba3a2b3f
Signed-off-by: Harshdeep Dhatt <[email protected]>
2020-01-08 15:49:03 -07:00
Harshdeep Dhatt
572d5edff4 msm: kgsl: Set DMA Mask for gmu device
A single page buffer allocated via dma_alloc_attrs comes
from the system memory instead of contiguous space now.
That page can have address larger than the default dma
mask of 32 bits.

Change-Id: I591f09362d67b2a80e335ba3e593bd5e4e2f08ea
Signed-off-by: Harshdeep Dhatt <[email protected]>
2020-01-08 15:48:57 -07:00
Harshdeep Dhatt
5f43d1807c msm: kgsl: Setup CP_CHICKEN_DBG register for a660
This is needed for improving cp boot latency.

Change-Id: Ib2307f16d01278180c23c5abbe49dfd21bee3710
Signed-off-by: Harshdeep Dhatt <[email protected]>
2020-01-08 15:42:40 -07: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 <[email protected]>
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 <[email protected]>
Signed-off-by: Shashank Babu Chinta Venkata <[email protected]>
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 <[email protected]>
Signed-off-by: Isaac J. Manjarres <[email protected]>
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 <[email protected]>
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 <[email protected]>
2020-01-08 13:25:40 -07:00
qctecmdr
b399a72c3f Merge "msm:ipa: Race condition observed during client disconnect" 2020-01-08 11:01:36 -08:00
Abhijeet Dharmapurikar
48f92fa93a sched: walt: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: Ib8505248b91fb33395fe53f2dfacc8ec68c0273c
Signed-off-by: Abhijeet Dharmapurikar <[email protected]>
Signed-off-by: Lingutla Chandrasekhar <[email protected]>
[[email protected]: resolution of trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <[email protected]>
2020-01-08 09:34:26 -08:00
Abhijeet Dharmapurikar
5b3824419a sched: walt: improve the scheduler
This change is for general scheduler improvements.

Change-Id: I567213580a970abc374d95e3d1fdc0aa73eaf705
Signed-off-by: Abhijeet Dharmapurikar <[email protected]>
Signed-off-by: Lingutla Chandrasekhar <[email protected]>
[[email protected]: resolve trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <[email protected]>
2020-01-08 09:33:37 -08:00
Biao Long
e24b1df8d9 sched/fair: Don't place wakee on waker cpu if colocate enabled
If both wakee and waker are in top-app,don't place wakee on waker
cpu, because most of this case waker is not going to sleep,this
will cause waker preempted and lead high runnable time,so let
scheduler to select the best cpu in this case.

Change-Id: If6eb3c0acb202197e9dd90205c581398ac049649
Signed-off-by: Biao Long <[email protected]>
2020-01-08 09:31:47 -08:00
qctecmdr
c9a80de967 Merge "sched/walt: Avoid walt irq work in offlined cpu" 2020-01-08 08:47:27 -08:00
Zhen Kong
3cbbb8a5bc arm64: defconfig: Enable qseecom driver for Lahaina
Enable qseecom driver to provide secure communication from HLOS
to TZ.

Change-Id: If27300c985536dbdad15afee74b007bf01cb87ae
Signed-off-by: Zhen Kong <[email protected]>
2020-01-08 08:31:42 -08:00
qctecmdr
f71c15bb63 Merge "sched/fair: Improve the scheduler" 2020-01-08 08:11:29 -08:00
qctecmdr
2d6312a106 Merge "msm: kgsl: Don't error out if dst size is not equal to src in copy_prop" 2020-01-08 07:31:54 -08:00
qctecmdr
b60524e9c2 Merge "msm: ipa: Add SMMU driver as soft dependency for IPA" 2020-01-08 04:58:57 -08:00
qctecmdr
2483f85924 Merge "qseecom: Add qseecom driver snapshot for Lahaina" 2020-01-08 03:23:03 -08:00
Deepak Kumar
32eea8bf28 msm: kgsl: Don't error out if dst size is not equal to src in copy_prop
Update copy_prop to allow copy to a destination buffer of size greater
than or less the source buffer size. This is needed to correctly pass
gaming bin fuse value to user mode.

Change-Id: I1b651c79b9286c1259fbace815d58892462a7931
Signed-off-by: Deepak Kumar <[email protected]>
2020-01-08 16:17:41 +05:30
qctecmdr
588d9a8be4 Merge "include: sound: add stub function for wcd dsp manager" 2020-01-08 02:40:25 -08:00
Ajay Prathi
18c9d42bb7 arm64: defconfig: Enable SPS driver for lahaina
Enable SPS driver for Lahaina. SPS (Smart Peripheral System)
enables the support of all BAMs in the system which provide DMA
functionality to various peripherals.

Change-Id: Icd393576a6c96240414c432e08b2bf2ae083dac9
Signed-off-by: Ajay Prathi <[email protected]>
2020-01-08 15:43:30 +05:30
qctecmdr
c4754c3e48 Merge "dt-bindings: Add new port types for SWR 1.6 feature" 2020-01-08 02:00:58 -08:00
qctecmdr
160be75a7c Merge "defconfig: lahaina-gki: enable ufs 7nm phy for lahaina" 2020-01-08 01:22:29 -08:00
qctecmdr
605e1eb14c Merge "phy: qcom-ufs: add 7nm UFS QMP PHY support on Lahaina" 2020-01-08 00:37:28 -08:00
Mohammed Javid
216ce5870c msm:ipa: Race condition observed during client disconnect
Client ep[i] entries are memset to 0 as a part of tearing down
uc offload pipes which results in a race condition, if there are already
some packets which have been sent to IPA, when the client notify callback
is called.

Change-Id: I998e5d1c09d82e72b80ff00d1dd96398a92adc75
Acked-By : Abhishek Choubey <[email protected]>
Signed-off-by: Mohammed Javid <[email protected]>
Signed-off-by: Chaitanya Pratapa <[email protected]>
2020-01-08 10:58:11 +05:30
qctecmdr
d750b39007 Merge "interconnect: qcom: Fix MACRO fields for Lahaina" 2020-01-07 20:37:31 -08:00
qctecmdr
2c5445837e Merge "iinterconnect: qcom: Hold high bandwidth vote for keepalive BCMs" 2020-01-07 19:58:26 -08:00
qctecmdr
7da699bec8 Merge "scsi: ufshcd-qti: Port the new crypto framework to QTI ufs" 2020-01-07 18:47:16 -08:00
Aditya Bavanari
701f0e8aed dt-bindings: Add new port types for SWR 1.6 feature
Add new port types for SWR 1.6 feature to accommodate
unified SWR Tx port mapping.

Change-Id: Ib3ac905c12628ea90b24ca26d29fde24e8ba0309
Signed-off-by: Aditya Bavanari <[email protected]>
2020-01-07 16:51:57 -08:00
qctecmdr
4495d8274f Merge "msm: kgsl: Refactor IOMMU contexts" 2020-01-07 16:32:22 -08:00
Anirudh Raghavendra
9175d25a5f msm: adsprpc: HMX,Async-FastRPC capability
Added two extra capabilities - HMX and Async FastRPC.
Async FastRPC checks the DSP for capability and
ANDs it with its own capability
which is then returned to the userspace.

Change-Id: I3310b76ccdafad664eff5f12493c9d3fc45cc4ca
Signed-off-by: Anirudh Raghavendra <[email protected]>
2020-01-07 15:35:02 -08:00
Maria Yu
f1a785af81 sched/walt: Avoid walt irq work in offlined cpu
Avoid walt irq work in offlined cpu.

Change-Id: Ia4410562f66bfa57daa15d8c0a785a2c7a95f2a0
Signed-off-by: Maria Yu <[email protected]>
[[email protected]: Resolved trivial merge conflicts]
Signed-off-by: Lingutla Chandrasekhar <[email protected]>
[[email protected]: resolve trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <[email protected]>
2020-01-07 15:33:56 -08:00
Pavankumar Kondeti
6c7d9537fe sched/fair: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I7c3a073fa68d715dd3bdbed11e4f83e82046a3c0
Signed-off-by: Pavankumar Kondeti <[email protected]>
2020-01-07 15:33:23 -08:00
qctecmdr
db96989477 Merge "msm: kgsl: Support global secure memory objects" 2020-01-07 15:23:35 -08:00
qctecmdr
37db9fecc5 Merge "msm: kgsl: Add a function to map global buffers" 2020-01-07 14:47:32 -08:00
qctecmdr
9cab59b92c Merge "msm: kgsl: Calculate the offset of context bank 0" 2020-01-07 13:53:32 -08:00