718298 Commits

Author SHA1 Message Date
Linux Build Service Account
4364c9b056 Merge "defconfig: qcs405: Enable the common clock framework" into msm-4.14 2018-04-13 11:31:35 -07:00
Linux Build Service Account
f923a65196 Merge changes I67dbfa8e,I866b4c0c,I566985a4 into msm-4.14
* changes:
  drivers: thermal: lmh-dcvs: Register the cooling device in order
  ARM: dts: msm: Add a test thermal zone for SM8150
  drivers: thermal: lmh-dcvsh: Add multiple clock plan support
2018-04-13 11:31:33 -07:00
Linux Build Service Account
7892838f8f Merge "mm/memblock.c: cast constant ULLONG_MAX to phys_addr_t" into msm-4.14 2018-04-13 11:31:31 -07:00
Linux Build Service Account
4a612e687d Merge "defconfig: msm: Enable RPM sleep stats for SDM8150" into msm-4.14 2018-04-13 11:31:29 -07:00
Linux Build Service Account
3aff52933f Merge changes I3fd95cb3,I9c6b1605,I59b42942 into msm-4.14
* changes:
  qbt1000: Initialize drvdata structure before usage
  qbt1000: Validate FP app name before qseecom_start_app
  soc: qcom: add support for fingerprint sensor driver
2018-04-13 11:31:26 -07:00
Linux Build Service Account
bb11c9fa69 Merge "ARM: dts: msm: Update TCS configuration for SDE RSC in SM8150" into msm-4.14 2018-04-13 11:31:19 -07:00
Linux Build Service Account
d8fb972f8a Merge "perf: arm: fix IRQ initializations in the driver" into msm-4.14 2018-04-13 11:31:13 -07:00
Raghavendra Rao Ananta
3cc1fda16e perf: arm: fix IRQ initializations in the driver
During the ARM PMU driver's probe, the IRQ number and state
are set when requesting for the IRQ lines. However, these
values are re-initialized when the driver tries to register
with the perf framework later. The bug prevents the driver
from re-enabling the interrupts during the CPU hotplug-on
case (or any IRQ operation thereafter), thus not triggering
any interrupt. Perf sampling events would be mainly impacted
by this as they update the samples for every overflow interrupt.

Hence, moving the initializations of the IRQ number and state
after the arm_pmu structure is allocated. The correct values
can be recorded after requesting the IRQ.

Change-Id: Ia4361a31e9e960efc7156f813c543574b197ff68
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2018-04-13 10:19:07 -07:00
Stefan Agner
070659e590 mm/memblock.c: cast constant ULLONG_MAX to phys_addr_t
This fixes a warning shown when phys_addr_t is 32-bit int when compiling
with clang:

  mm/memblock.c:927:15: warning: implicit conversion from 'unsigned long long'
        to 'phys_addr_t' (aka 'unsigned int') changes value from
        18446744073709551615 to 4294967295 [-Wconstant-conversion]
                                  r->base : ULLONG_MAX;
                                            ^~~~~~~~~~
  ./include/linux/kernel.h:30:21: note: expanded from macro 'ULLONG_MAX'
  #define ULLONG_MAX      (~0ULL)
                           ^~~~~

Change-Id: I23a1b8b2054ca93ed70d462285af8405fe8fe0b4
Link: http://lkml.kernel.org/r/20180319005645.29051-1-stefan@agner.ch
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Pavel Tatashin <pasha.tatashin@oracle.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: 644d87dccdc69cf79834a72ed0c889580d6af32a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2018-04-13 05:45:23 -07:00
Abir Ghosh
0e8b39234e qbt1000: Fix for incorrect buffer size check and integer overflow
Fix an incorrect buffer size check which might have caused integer
overflow.

CRs-Fixed: 2045285
Change-Id: I3b5b996c7405f51b488d6cbda31c81a9a9905f23
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
Signed-off-by: Kota Priyanka <kotap@codeaurora.org>
2018-04-13 05:13:05 -07:00
Abir Ghosh
f05c122197 qbt1000: Terminate fingerprint TA name with null
Terminate the string, coming from userspace and containing the name
of fingerprint trusted app, with null character, to make sure kernel
memory does not leak into logs

Change-Id: I1668a64fcb6747ce3ef3b1ee6321fa5fa4a1798a
CRs-Fixed: 2029409
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
Signed-off-by: Kota Priyanka <kotap@codeaurora.org>
2018-04-13 05:12:30 -07:00
Abir Ghosh
3c75efaf9b qbt1000: Initialize drvdata structure before usage
Fix uninitialized local variable error which might have lead to
crash.

CRs-Fixed: 2030137
Change-Id: I3fd95cb343c3175e4190c8ebfe209399db0602a6
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
Signed-off-by: Kota Priyanka <kotap@codeaurora.org>
2018-04-13 05:12:02 -07:00
Abir Ghosh
7b96bcfe6f qbt1000: Validate FP app name before qseecom_start_app
Validate the name of the client app before passing it to
qseecom_start_app.

CRs-Fixed: 2006695
Change-Id: I9c6b16050d4f6fc94827021c7b0f2ab292452f60
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
Signed-off-by: Kota Priyanka <kotap@codeaurora.org>
2018-04-13 05:11:41 -07:00
Abir Ghosh
dfe3ae5174 soc: qcom: add support for fingerprint sensor driver
The QBT1000 driver provides an API for communicating
with trustzone applications and handles firmware event
interrupts.
The driver supports the following features:
 - loading and unloading trustzone applications.
 - sending commands to trustzone applications.
 - voting/un-voting for clocks before/after making
   a trustzone call.
 - receiving firmware events, signalled by interrupts,
   and providing them to the driver client.
 - sending a key event in response to firmware finger
   detect events.
 - support for multiple IPC messages.
 - retry logic for CBGE interrupt handling.
 - remove clocks on/off logic.

This is snapshot of the qbt1000 driver as of msm-4.4 kernel base
'd93c68b1f0bd (soc: qcom: add support for fingerprint sensor driver)' .

Change-Id: I59b4294285edab6e4916528a31d0713d06d5a072
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
Signed-off-by: Kota Priyanka <kotap@codeaurora.org>
2018-04-13 05:11:20 -07:00
Taniya Das
c0f18b39d6 defconfig: qcs405: Enable the common clock framework
Enable common clock framework and syscon for QCS405 device.

Change-Id: I3c0f451511fa350a53ceec2e2c25b00384a5a6fd
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2018-04-13 15:12:55 +05:30
Chong Gu
e2df260dba defconfig: sm8150: Enable ST touch driver support
Enable ST touch driver for sm8150_defconfig and sm8150-perf_defconfig.

Change-Id: I70206d9e865680a1bf5f1d5962d53f682b80a025
Signed-off-by: Chong Gu <chongu@codeaurora.org>
2018-04-13 02:22:40 -07:00
chenx
f5872e1b66 input: touchscreen: Update ST touch driver
Update ST touch driver for chip type FTM4

Signed-off-by: chenx <chenxiang0527@thundersoft.com>
Git-commit: 2e1337310abee3a24bf37fc1211924b7f756af98
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-4.14/commit/?h=caf/tsoft/STMicroelectronics_ctp_V4.1.0_FTM4&id=2e1337310abee3a24bf37fc1211924b7f756af98
CRs-Fixed: 2210870
Change-Id:Ib0910350cc7a3c0b02222b46cfe28584a8828d25
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2018-04-13 16:37:20 +08:00
Ajay Singh Parmar
10e9b127e1 drm/msm/dsi-staging: optimize dsi probe
Currently every dsi display is probed. Optimize it by having
a main dsi device tree node and reference all available displays.
Use the command line parameters to identify which display to
select for a given target.

Change-Id: Ic88d431829b177afdc91b2282b630ea0356d886a
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2018-04-12 22:28:40 -07:00
Mulu He
0fe9dda635 ARM: dts: msm: Enable coresight ssc etm for sm8150
Add ssc funnel and ssc remote etm0 node for sm8150, which used to config
ssc etm hardware path when catch etm log from ssc core.

Change-Id: Ibcb6ab8cf4e48b50af6faa49cd64346e3bdb329b
Signed-off-by: Mulu He <muluhe@codeaurora.org>
2018-04-12 22:22:13 -07:00
Siva Kumar Akkireddi
fc8a47dd6e ARM: dts: msm: Enable TSENS driver for qcs405
Enable temperature controller (TSENS) on qcs405.
Thermal clients can read from TSENS temperature sensors,
set temperature thresholds and receive notification.

Change-Id: I1b8d5d36fbab9519bc056db8fed49cf7f8afe266
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
2018-04-13 10:16:46 +05:30
Mulu He
7c9e6c4f09 ARM: dts: msm: Add dl_south for sm8150
Add dl_south funnel and dl_south tpdm device node, they are new HW
introduced on sm8150 platform.

Change-Id: If8a6833c73dfd0aaee792e1bd27324dc2a607722
Signed-off-by: Mulu He <muluhe@codeaurora.org>
2018-04-12 20:01:14 -07:00
Skylar Chang
74a84e67c6 msm: ipa3: add missing dma-coherent description
add dma-coherent description to enable dma-coherent
feature on SMMU context bank.

Change-Id: I1c9cf23806f23e461de1f9cfdb8e7e7b652340f4
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2018-04-12 19:31:10 -07:00
David Dai
4b3cba21d8 ARM: dts: msm: Change display rsc to use AMC votes for sm8150
Since display RSCs now have their own dedicated AMC TSC,
they no longer need to repurpose a single TSC for both
wake and AMC.

Change-Id: I6aa8c32b167d58214f4965f594857d3fbc911dd7
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2018-04-12 18:13:30 -07:00
David Dai
044f990ab3 ARM: dts: msm: Add ALC mas node for sm8150
Include an ALC node so that we can clear its
proxy vote at late_init.

Change-Id: I4b9605ec8d6ff5f71a6cc5d6494195b53bb38d80
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2018-04-12 18:08:45 -07:00
David Dai
355ab5b8b4 ARM: dts: msm: add cdsp/snoc/cnoc keepalive governor for sdmshrike
Keep a small active only vote on system critical resources
on behalf of APPS processor.

Change-Id: I636714d96928c43790765b6968f83ed41b91f370
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2018-04-12 17:50:17 -07:00
Isaac J. Manjarres
57eb127f0a ARM: dts: msm: Use proper node names for CPUSS L2 TLB Dumping
Currently, the TLB nodes that are used for CPUSS dumping
are named L1 TLB nodes, but they are acutally L2 TLB nodes.
Update incorrect L1 TLB node names to correct L2 TLB node
names on sm8150.

Change-Id: I26846723e88ed5a2bf5a9ca8cd655ec8ec1eab1c
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2018-04-12 16:59:56 -07:00
Dinesh K Garg
0b787611fc msm: mink: Snapshot of smcinvoke driver
This patch is a snapshot of smcinvoke driver taken from msm-4.9
commit a8117effbe0 (Merge "ARM: dts: msm: Disable GPU memory
pools for QCS605")

Change-Id: I9e2de0c464bc23c48ae8a5a90e289048b0c274ae
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2018-04-12 16:56:56 -07:00
Sujeev Dias
1a17cb597d mhi_bus: dev: uci: add user space interface driver
This module allows user space clients to transfer data
between external modem and host using standard file
operations.

CRs-Fixed: 2204910
Change-Id: I46af0e99a68836e50cc4da4ad3ab85e248d4af4f
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-04-12 16:51:40 -07:00
Isaac J. Manjarres
64e4647392 ARM: dts: msm: Add initial device tree support for SM8150P
Introduce DTS files to support APQ version of SM8150 chipset.

Change-Id: Id5af8b8973fd01fb0663f4a2fcbfdc4b2857edab
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2018-04-12 16:37:14 -07:00
Mayank Rana
01230cef4f ARM: dts: msm: Set snps,ssp-u3-u0-quirk on SM8150
Enable SSP suspend/resume related quirk with primary USB port
on SM8150.

Change-Id: I6a0539095f5b72ba6e325cfa4d04af0249f495ad
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2018-04-12 16:19:46 -07:00
Mayank Rana
23a5350467 dwc3: core: Add ssp u3 u0 link state related quirk
USB PHY (qmp super speed phy) is unable to consistently move between
the u3 (p3)/u0(p0) states causing controller and phy link level issues
resulting in device re-enumeration. Fix the issue by forcing qmp phy to
move to P2 state always before moving to P0 from P3 state. Forcing by
phy link state is done by enabling Ux_exit_in_Px (BIT:27) and P3ExSigP2
(BIT:10) of GUSB3PIPECTL register.

Change-Id: I1edd6c77769d3139863413eed82f2b8b98b33d42
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2018-04-12 16:19:21 -07:00
Jeevan Shriram
2bd2fa5c7c ARM: dts: msm: Add devicetree overlay files for sdmshrike
Add support for devicetree overlay on sdmshrike target.

Change-Id: I372d4e8d5cf2940c047c466e59bf7a918801b240
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2018-04-12 16:13:09 -07:00
Narendra Muppalla
9079f0fb53 drm/msm: handle dma_buf attach/map for secure buffers
During addfb2 ioctl, buffer is always attached to non-secure context bank.
At commit time when the plane property tells the buffer is secure
it needs to be attached and map to the secure context bank.
This change detects the context bank type and maps the buffer accordingly.

Change-Id: Icf3697b31d5ae5d217846fbee16467af55529c86
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2018-04-12 16:09:55 -07:00
Lina Iyer
3c4911f18e ARM: dts: msm: Update TCS configuration for SDE RSC in SM8150
Update devicetree bindings for SDE RSC to match the RSC sequencer in
SM8150.

Change-Id: Ia19bc1d53497e3e5ebd8ee99bb6c56d6150977b2
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2018-04-12 16:59:10 -06:00
Lina Iyer
859b76c187 defconfig: msm: Enable RPM sleep stats for SDM8150
Enable sleep stats driver to report XO and system sleep statistics from
AOSS.

Change-Id: Iee8602d5538ea13d211d24a218c6eb3702398fc4
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2018-04-12 16:55:13 -06:00
Ram Chandrasekar
2656dad6cf drivers: thermal: lmh-dcvs: Register the cooling device in order
The CPU cooling device registration is scheduled for later execution
during probe. Due to this, the CPU cooling devices are not created in
the same order as CPU logical numbers. This could result in unexpected
behavior for thermal-engine.

Modify the driver to acquire a lock and ensure that the cooling devices
are always registered in the same order as CPU logical numbers.

Change-Id: I67dbfa8e386480fc437425386855faf2f6ebdd5d
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2018-04-12 16:23:12 -06:00
Ram Chandrasekar
2f994ded4e ARM: dts: msm: Add a test thermal zone for SM8150
Add a sample thermal zone, which mitigates the cooling devices like
modem and display backlight for SM8150. This is a sample thermal zone,
which will be disabled by default.

Change-Id: I866b4c0c0b981960f9579501597d81cf258cd55f
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2018-04-12 16:23:11 -06:00
Ram Chandrasekar
5774dd4e27 drivers: thermal: lmh-dcvsh: Add multiple clock plan support
A single LMH DCVSh hardware can mitigate CPUs with different clock plan
operating in a single voltage rail.

Add support in LMH DCVSh driver to treat individual CPU to have
different clock plan. Hence all the throttling frequencies are compared
against each individual CPUs.

Change-Id: I566985a45007bf6939fa315a9471bbba4e5df7de
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2018-04-12 16:23:11 -06:00
Linux Build Service Account
a8cbba84d2 Merge "PM / wakeup: Fix error when CONFIG_QCOM_SHOW_RESUME_IRQ not defined" into msm-4.14 2018-04-12 14:30:04 -07:00
Linux Build Service Account
6bb01985e6 Merge changes Ic8c20ca7,I998008ef,Ica95fd83,I74201fa1 into msm-4.14
* changes:
  drivers: cpuidle: lpm-levels: Ignore sleep bias for isolated cpus
  cpuidle: lpm-levels: Do not predict LPM for isolated cpus
  cpuidle: lpm-levels: Correctly check if its okay to do cluster LPM
  drivers: cpuidle: lpm-levels: Remove unused code
2018-04-12 14:30:02 -07:00
Linux Build Service Account
bfe6260750 Merge "ARM: dts: msm: Fix camera flash LED configurations for sm8150 platforms" into msm-4.14 2018-04-12 14:29:56 -07:00
Linux Build Service Account
410cf208ae Merge "ARM: dts: msm: Add VADC channel nodes on PM855B" into msm-4.14 2018-04-12 14:29:53 -07:00
Linux Build Service Account
c93299a688 Merge "ARM: dts: msm: Update video sid masks for SM8150" into msm-4.14 2018-04-12 14:29:50 -07:00
Linux Build Service Account
3b8317c85c Merge "mhi_bus: devices: netdev: remove submitted skb list" into msm-4.14 2018-04-12 14:29:47 -07:00
Linux Build Service Account
b89536e1df Merge "clk: qcom: clk-alpha-pll: Set the inited flag to avoid PLL reconfiguration" into msm-4.14 2018-04-12 14:29:45 -07:00
Linux Build Service Account
61b3f460b1 Merge "alarmtimer: add rtc irq support for alarm" into msm-4.14 2018-04-12 14:29:42 -07:00
Linux Build Service Account
bf7ed3a20a Merge "iommu: arm-smmu: Implement eCATS translation fault errata workaround" into msm-4.14 2018-04-12 14:29:39 -07:00
Linux Build Service Account
e5c0638d29 Merge "ARM: dts: msm: Add wdsp glink node for sdmshrike" into msm-4.14 2018-04-12 14:29:35 -07:00
Linux Build Service Account
a6045f56f3 Merge "ARM: dts: msm: add ST touch node for SM8150" into msm-4.14 2018-04-12 14:29:33 -07:00
Linux Build Service Account
7a858f38ff Merge changes I9eb07dba,Ib55c200f into msm-4.14
* changes:
  trace/sched: Fix compilation for 32 bit systems
  sched: fix 32 bit compilation errors
2018-04-12 14:29:31 -07:00