718338 Commits

Author SHA1 Message Date
Konstantin Dorfman
754a8023cd soc: qcom: add secure processor communication (spcom) driver
This driver supports communication with secure processor subsystem
over rpmsg and ungerlying glink transport layer.
The communication is based on using shared memory and interrupts.
This driver exposes interface to user space.

Migrate from using glink api to rpmsg api:
- removed not used glink functionality
- removed not used kernel api to spcom functionality
- implemented rpmsg driver registration for each new spcom channel
open/close/tx/rx/poll flows fixes:
- rpmsg_abort flag introduced to synchronize close() of a channel with
  pending sending or receiving data from the channel
- tx implemented as rpmsg_trysend() every 10ms (timeout_msec total)
- poll imlemented link up/down events as first/last rpmsg device
  probed/removed
- locking

ION api replaced by dma-buf:
ION api depricated.
This change implements following functionality:
Lock/unlock shared buffer by reference counting on underline dma-buf.
Translation user allocated shared buffer virtual address to
physical address (to enable SPU access to the buffer).

Change-Id: I28d704b18a3b0de9711ff3235c3f5551e7302557
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2018-04-17 16:35:08 +03:00
Linux Build Service Account
4cec0cd668 Merge changes I5423b9e7,If3014a4f into msm-4.14
* changes:
  power: qcom: Add support for FG software algorithms
  power_supply: add cycle_counts property
2018-04-16 18:10:34 -07:00
Linux Build Service Account
463652cd8a Merge changes I493f29d1,I0b16ac79 into msm-4.14
* changes:
  ARM: dts: msm: update the DisplayPort AUX settings for sm8150
  drm/msm/dp: update the DP PHY and controller programming for sm8150
2018-04-16 18:10:31 -07:00
Linux Build Service Account
bd13de150e Merge "drivers: arm: cpuidle: support ARMv7 targets for lpm governor" into msm-4.14 2018-04-16 18:10:27 -07:00
Linux Build Service Account
cecfabfb48 Merge "soc: qcom: pil: Allow timeouts for graceful subsystem shutdown" into msm-4.14 2018-04-16 18:10:24 -07:00
Linux Build Service Account
7fbd64017e Merge "drivers: thermal: Aggregate userspace mitigation request" into msm-4.14 2018-04-16 18:10:21 -07:00
Linux Build Service Account
7162a8df75 Merge "drm/msm/dsi-staging: avoid ctl soft reset when cont-splash is enabled" into msm-4.14 2018-04-16 18:10:18 -07:00
Linux Build Service Account
296ce8539b Merge "drm/msm/sde: remove invalid excl_rect validations" into msm-4.14 2018-04-16 18:10:15 -07:00
Linux Build Service Account
dba6a24d70 Merge "usb: gadget: f_qdss: Add support for mdm qdss channel" into msm-4.14 2018-04-16 18:10:12 -07:00
Linux Build Service Account
0f2330d930 Merge "drm/msm/sde: avoid disabling clks/bw when cont-splash is enabled" into msm-4.14 2018-04-16 18:10:08 -07:00
Linux Build Service Account
7aebfb1e69 Merge "soc: qcom: pil: Expose function to get subsys_device pointer" into msm-4.14 2018-04-16 18:10:02 -07:00
Linux Build Service Account
890b01f5c1 Merge "ARM: dts: msm: Add GPU thermal config for SM8150" into msm-4.14 2018-04-16 18:09:59 -07:00
Linux Build Service Account
7777fa80bd Merge "ARM: dts: msm: Add vbat and soc mitigation for SM8150" into msm-4.14 2018-04-16 18:09:57 -07:00
Linux Build Service Account
dccb37dbc8 Merge changes I057d472b,I2bdbd0c2 into msm-4.14
* changes:
  ARM: dts: msm: add pinctrl information of display for SDMSHRIKE
  defconfig: sdmshrike: enable compilation of SDE display driver
2018-04-16 18:09:52 -07:00
Linux Build Service Account
b3341f290e Merge "ARM: dts: msm: Update video clock config for sm8150" into msm-4.14 2018-04-16 18:09:48 -07:00
Linux Build Service Account
483e99c103 Merge "iommu/iova: Limit IOVA alignment using CONFIG_ARM64_DMA_IOMMU_ALIGNMENT" into msm-4.14 2018-04-16 18:09:43 -07:00
Linux Build Service Account
7c4ed7799d Merge "clk: qcom: gdsc: Fix issue with dereferencing NULL pointer in gdsc APIs" into msm-4.14 2018-04-16 18:09:40 -07:00
Linux Build Service Account
4ce5787b08 Merge "mmc: host: Kconfig: Enable cmdq config" into msm-4.14 2018-04-16 18:09:36 -07:00
Linux Build Service Account
df4a408155 Merge "ARM: dts: msm: Add bluetooth device node for sm8150" into msm-4.14 2018-04-16 18:09:33 -07:00
Linux Build Service Account
92165529e4 Merge changes I3b5b996c,I1668a64f into msm-4.14
* changes:
  qbt1000: Fix for incorrect buffer size check and integer overflow
  qbt1000: Terminate fingerprint TA name with null
2018-04-16 18:09:30 -07:00
Linux Build Service Account
b7ff3d3a6e Merge "defconfig: sdm: Update defconfig for sdm640" into msm-4.14 2018-04-16 18:09:26 -07:00
Linux Build Service Account
f009d33da2 Merge "rcu: Create RCU-specific workqueues with rescuers" into msm-4.14 2018-04-16 18:09:19 -07:00
Linux Build Service Account
174cc3d0ae Merge changes If05b547b,I6b7616ff into msm-4.14
* changes:
  ARM: dts: msm: Add NPU device configuration on SM8150
  msm: npu: Add driver functionality to support NPU
2018-04-16 18:09:13 -07:00
Linux Build Service Account
f4bc62bbd4 Merge "power: smb5: Make TYPEC_ATTACH_DETACH_IRQ wakeup capable" into msm-4.14 2018-04-16 18:09:05 -07:00
Linux Build Service Account
baeef4281d Merge "power: smb5: update IRQ configuration" into msm-4.14 2018-04-16 18:09:03 -07:00
Linux Build Service Account
b20e2c1f0b Merge "defconfig: sm8150: Enable CMA debugfs" into msm-4.14 2018-04-16 18:08:58 -07:00
Linux Build Service Account
f3c9cf833d Merge "defconfig: sm8150: Enable MHI host driver stack" into msm-4.14 2018-04-16 18:08:54 -07:00
Isaac J. Manjarres
d3badbe62b Revert "ARM: dts: msm: Add a test thermal zone for SM8150"
This reverts commit 2f994ded4e87a6ee0950fb5d78c6913d00d3e972.

Change-Id: I9a1fcf9174a8cc327a74d539315ed32d937423f8
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2018-04-16 16:12:19 -07:00
Sujeev Dias
e4ec2969a5 defconfig: sm8150: Enable MHI host driver stack
MHI Host Interface is a communication protocol to be used by the host
to control and communicate with modem over a high speed peripheral bus.
Enabling this stack will allow host to communicate with external devices
that support MHI protocol.

CRs-Fixed: 2204910
Change-Id: I856b035d196885420797594e3c274390b5504237
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-04-16 15:32:59 -07:00
Shashank Babu Chinta Venkata
2b96185ec4 ARM: dts: msm: add pinctrl information of display for SDMSHRIKE
Add te, reset and modeselect pincontrol information for
SDMSHRIKE.

Change-Id: I057d472bdf66e79a8fb6cc1db8e9d93b5c37ed3d
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2018-04-16 11:53:50 -07:00
Guru Das Srinagesh
a8de8a24fb power: smb5: Make TYPEC_ATTACH_DETACH_IRQ wakeup capable
Commit d92bfe55f8cc4dc1 ("power: smb5: update IRQ configuration") adds
wakeup capabilities to several IRQs. Extend this to include
TYPEC_ATTACH_DETACH_IRQ as well. And while we're at it, associate
TYPEC_ATTACH_DETACH_IRQ with the right IRQ handler routine.

CRs-Fixed: 2221052
Change-Id: I846e0bae574d2934b4498f1d2a55970347e181e4
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2018-04-16 11:34:00 -07:00
Ashay Jaiswal
424013358b power: smb5: update IRQ configuration
Update IRQ handlers for all charger peripheral to ensure
only required IRQ handlers are registered.

While at it, configure few IRQs as wakeup capable.

Change-Id: I04f6017a4940baa2539c007d6f17427b2b4db86f
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2018-04-16 11:34:00 -07:00
Prateek Sood
eaf58ade21 defconfig: sdm: Update defconfig for sdm640
Update defconfig for sdm640 to be in sync with sm8150.

Change-Id: I17d4353a6cfdf80bd6407b23a93e101d093cb330
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2018-04-16 15:15:36 +05:30
Paul E. McKenney
89b7e992f7 rcu: Create RCU-specific workqueues with rescuers
RCU's expedited grace periods can participate in out-of-memory deadlocks
due to all available system_wq kthreads being blocked and there not being
memory available to create more.  This commit prevents such deadlocks
by allocating an RCU-specific workqueue_struct at early boot time, and
providing it with a rescuer to ensure forward progress.  This uses the
shiny new init_rescuer() function provided by Tejun (but indirectly).

This commit also causes SRCU to use this new RCU-specific
workqueue_struct.  Note that SRCU's use of workqueues never blocks them
waiting for readers, so this should be safe from a forward-progress
viewpoint.  Note that this moves SRCU from system_power_efficient_wq
to a normal workqueue.  In the unlikely event that this results in
measurable degradation, a separate power-efficient workqueue will be
creates for SRCU.

Change-Id: I2988819b553b769ccfdeabd62394c3aad63d6668
Reported-by: Prateek Sood <prsood@codeaurora.org>
Reported-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Git-commit: ad7c946b35ad455417fdd4bc0e17deda4011841b
Git-Repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2018-04-16 12:35:40 +05:30
Hemant Kumar
5d13333ba0 usb: gadget: f_qdss: Add support for mdm qdss channel
Driver needs to pass qdss data received from mdm qdss
bridge driver to host PC. This requires a software data
path using IN endpoint. Bridge driver needs to open
qdss_mdm channel and use exported write() API to pass
the qdss data received from mdm. Driver calls the notify
call back upon write completion.

Change-Id: I4d8ceaed0bf9c85aa17d3f49503cd690917cc117
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2018-04-13 17:46:23 -07:00
Veera Sundaram Sankaran
bef8f4172e drm/msm/sde: remove invalid excl_rect validations
Remove few excl_rect checks from crtcs atomic_check
to avoid invalid failures.

Change-Id: If6b787c373c7ea516346ab5ca1857d47d17550c3
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2018-04-13 16:09:09 -07:00
Veera Sundaram Sankaran
69ea224880 drm/msm/dsi-staging: avoid ctl soft reset when cont-splash is enabled
Avoid resetting the dsi ctrl when continuous splash screen is
enabled as it might cause flicker during the transition from
UEFI to kernel.

Change-Id: I0f9a28867fb83c26d39a2212916273cd686d7d23
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2018-04-13 16:00:48 -07:00
Veera Sundaram Sankaran
25e4557483 drm/msm/sde: avoid disabling clks/bw when cont-splash is enabled
Avoid disabling the core clocks and bandwidth vote during
crtc disable when continuous splash screen is enabled as it
might result in flicker or underrun during the transition
from UEFI to kernel.

Change-Id: I9299918ada63bb51f490c1d1aa9e94d6d9249db3
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2018-04-13 16:00:03 -07:00
Farrukh Qurashi
2db5a3d9e7 ARM: dts: msm: Add NPU device configuration on SM8150
Add interrupt, MMU, system cache, clocks and power level device node
configurations required by latest NPU driver. The NPU driver uses
these nodes for integrating with other various subsystems.

Change-Id: If05b547b26ebbe1efe9d0d259f7750a520f7349e
Signed-off-by: Farrukh Qurashi <fqurashi@codeaurora.org>
2018-04-13 17:59:34 -04:00
Farrukh Qurashi
f6a8cd9973 msm: npu: Add driver functionality to support NPU
Add clock control, bandwidth monitor integration, thermal
integration, IPC and execution management for operation of the NPU
hardware block. The driver provides control of the NPU hardware for
execution of neural networks.

Change-Id: I6b7616ffd758e8660ac0855d37f53af732f49e48
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Farrukh Qurashi <fqurashi@codeaurora.org>
2018-04-13 17:58:08 -04:00
Ingrid Gallardo
3b411b7a23 defconfig: sdmshrike: enable compilation of SDE display driver
This patch enables the necessary configs for compiling
the SDE DRM driver for sdmshrike.

Change-Id: I2bdbd0c2b60ed8e4fd8f974d88e6f1afd73246fe
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2018-04-13 14:53:26 -07:00
Liam Mark
e68686c5b0 defconfig: sm8150: Enable CMA debugfs
Enable CMA debugfs on sm8150_defconfig to enable testing of CMA.

Change-Id: I25b6232390f5dc40966aceed9cc53e47e8f50e40
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2018-04-13 14:51:12 -07:00
Linux Build Service Account
452becbfc8 Merge "scripts: build-all.py: update regex to compile defconfigs" into msm-4.14 2018-04-13 14:02:24 -07:00
Isaac J. Manjarres
d8f0846685 soc: qcom: pil: Allow timeouts for graceful subsystem shutdown
Currently, if a subsystem does not send a response through QMI
confirming that it has properly gone through its shutdown
sequence within a certain time, it is assumed that something
went wrong, and the subsystem could not shutdown gracefully.
However, for some subsystems, part of their shutdown sequence
may involve disabling the QMI service prior to sending the
response, and continuing the rest of the shutdown sequence
without any problems. The real indicator of an issue is not
receiving either an SMP2P interrupt or an QMI indication that
the subsystem has shutdown. Allow for timeouts to be
an acceptable cause of a graceful shutdown sequence, and wait
for either an SMP2P interrupt or QMI indication that indicate
whether the device has shutdown or not.

Change-Id: Id870f948f5e99a999965cf83ca225788e01eaf2e
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2018-04-13 13:25:32 -07:00
Isaac J. Manjarres
0274d93143 soc: qcom: pil: Expose function to get subsys_device pointer
There is currently no way to access the subsys_device data
structure from an external source, which prevents access to
other necessary data structures. Expose function to find
the subsys_device data structure associated with a subsystem
descriptor, so that it can be accessed.

Change-Id: I068c859b2313e4e95347dc3f96625665411e8b96
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2018-04-13 13:25:25 -07:00
Tatenda Chipeperekwa
23af556226 ARM: dts: msm: update the DisplayPort AUX settings for sm8150
Update the DisplayPort AUX settings to the latest recommended
values from the hardware programming guide. This is necessary
to ensure that the PHY is programmed correctly in order to
enable AUX transactions once the cable is plugged in.

Change-Id: I493f29d16f151062d22f7435ee07271c8ef791d7
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2018-04-13 12:11:24 -07:00
Tatenda Chipeperekwa
71a4d4f0da drm/msm/dp: update the DP PHY and controller programming for sm8150
Update the AUX setup sequence for DP PHY on sm8150 in order to
enable AUX transactions once the cable is plugged in. Update the
values for the voltage swing and pre-emphasis levels used when
programming the DP PHY during the link power on sequence.
Furthermore, update the controller programming to ensure all
controller state transitions happens correctly.

Change-Id: I0b16ac79e9679a7aac119548a226531698400935
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2018-04-13 11:58:39 -07:00
Shivendra Kakrania
ae31c63a3c ARM: dts: msm: Update video clock config for sm8150
Video clock config is updated with following changes:
1. Removal of iris ahb clock, since this is enabled by default
2. Removal of 200MHz as this is not supported by display & gpu

CRs-Fixed: 2223586
Change-Id: I3cb470edfe9f2d8a1f8fd0cfb1d8d5d38ea6729a
Signed-off-by: Shivendra Kakrania <shiven@codeaurora.org>
2018-04-13 11:41:12 -07:00
Linux Build Service Account
da79c56833 Merge changes I7d83113e,Iab5cb23d into msm-4.14
* changes:
  Merge remote-tracking branch 'remotes/origin/tmp-7e76ead' into msm-4.14
  Merge remote-tracking branch 'remotes/origin/tmp-27e69ad' into msm-4.14
2018-04-13 11:38:17 -07:00
Isaac J. Manjarres
56b547598d scripts: build-all.py: update regex to compile defconfigs
Update regex so targets that use sm*_defconfig can compile
with the build-all script.

Change-Id: I74612a64e3eb37b84dfdadc53cba97b2f578c39f
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2018-04-13 11:35:45 -07:00