Commit graph

876,555 commits

Author SHA1 Message Date
Jordan Crouse
5ccad5a6da mhi: Fix compile errors
module_init() was incorrectly used instead of module_exit(). Fix
the macro and the exit function for the correct prototype. Slightly
adjust a function callback to match the header prototype and add a
missing variable.

Fixes: 689af8a2e0a ("mhi: add snapshot for MHI driver stack").

Change-Id: Ic0dedbad55f535efd0d77b9bb3ff0ea1e25d6f3a
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-01-23 18:47:27 -08:00
qctecmdr
187d2284fd Merge "arm64: defconfig: Enable TSENS driver for lahaina" 2020-01-23 08:18:16 -08:00
qctecmdr
f5ad5307bc Merge "msm: ipa: split quota stat memory between q6 and ap" 2020-01-23 08:18:16 -08:00
qctecmdr
4507644e12 Merge "iommu/iova: Limit IOVA alignment using CONFIG_ARM64_DMA_IOMMU_ALIGNMENT" 2020-01-22 22:21:08 -08:00
qctecmdr
9bbfc83048 Merge "cnss2: NULL terminate FW build ID string" 2020-01-22 11:55:37 -08:00
qctecmdr
9cf1fba397 Merge "input: touchscreen: Enable FTS Touch driver" 2020-01-22 11:55:36 -08:00
qctecmdr
58b8b1c859 Merge "soc: qcom: Add module dependence for spss_utils" 2020-01-22 11:55:36 -08:00
qctecmdr
0fdf10b672 Merge "Revert "cnss2: Add support to monitor PM QOS votes"" 2020-01-22 11:55:36 -08:00
qctecmdr
cbcb40d51d Merge "qcom: soc_sleep_stats: Correctly read accumulated sleep length" 2020-01-22 11:55:34 -08:00
qctecmdr
543ab4a62b Merge "soc: qcom: pmic_glink: add support for multiple pmic_glink devices" 2020-01-22 11:55:34 -08:00
qctecmdr
c8de901940 Merge "ion: Make MSM pool auto refill built-in only" 2020-01-22 11:55:34 -08:00
qctecmdr
4d9b0e873d Merge "clk: qcom: Fix accessing of clks element during the probe" 2020-01-22 11:55:34 -08:00
qctecmdr
026ff13b2f Merge "NFC: Add support to get NFC interface type" 2020-01-22 11:55:33 -08:00
qctecmdr
aa3ad04eac Merge "msm: ipa: clear the ipa pipeline before any ep config" 2020-01-22 11:55:33 -08:00
qctecmdr
3a4e5978ef Merge "iommu/arm-smmu: Replace while loop with for_each_set_bit" 2020-01-21 08:48:18 -08:00
qctecmdr
94e0b5746e Merge "uapi: sound: remove redundant QGKI config checks" 2020-01-21 08:48:17 -08:00
qctecmdr
e5d3e34590 Merge "uapi: sound: remove redundant QGKI config checks" 2020-01-21 08:48:16 -08:00
Ajay Prathi
32aae719f9 arm64: defconfig: Enable TSENS driver for lahaina
Add configuration changes in lahaina qgki defconfig
to enable tsens driver.

Change-Id: I5bb64da99179f87b0ca6aaa0eacad9409038b122
Signed-off-by: Ajay Prathi <aprathi@codeaurora.org>
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
2020-01-21 16:37:31 +05:30
Patrick Daly
8693c2d4c4 iommu/iova: Limit IOVA alignment using CONFIG_ARM64_DMA_IOMMU_ALIGNMENT
Currently IOVAs are aligned to the next power of two of the size of the
allocation. This can result in unnecessary fragmentation of the IOVA
space.

If defined use CONFIG_ARM64_DMA_IOMMU_ALIGNMENT to limit the maximum IOVA
alignment.

Change-Id: Ica7f6382237e37acac2d35972a564ca1e1f5e84f
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-01-20 16:11:20 -08:00
Michael Adisumarta
2515833a73 msm: ipa: clear the ipa pipeline before any ep config
The packets on IPA RX pipe 0 are route back to IPA TX pipe 0
which is causing the IPA stall. This fix allows to clear ipa
pipeline for ep config such as set/reset DMA mode
for rmnet tethering config.

Change-Id: Idd923f67bebfbc0aed8afcd0ea94a175ff691395
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-01-20 13:54:58 -08:00
Manikandan Mohan
6db3fa0974 Revert "cnss2: Add support to monitor PM QOS votes"
This reverts commit Ida5128ae0ed9335be17ea220d6d26a386d35ac02.
PM QOS feature is moved to qcacld driver.

Change-Id: Ia6181b90b462ce1e1dd02e3f9e01746e566c88af
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-01-20 12:29:52 -08:00
qctecmdr
6da1fc6d98 Merge "interconnect: qcom: Change bcm voter initlevel" 2020-01-20 07:23:37 -08:00
qctecmdr
496291b53a Merge "arm64: defconfig: Enable CMA debug configs on Lahaina" 2020-01-20 07:23:37 -08:00
Karthik Poosa
af944fff10 NFC: Add support to get NFC interface type
Add new ioctl NFC_GET_PLATFORM_TYPE to get the NFC
interface type. This is used by the NFC HAL to 
do the firmware download according to the interface
type.

Change-Id: I45e8c4814e04348daa88c8b7a026bd44fa84163a
Signed-off-by: Karthik Poosa <kpoosa2@codeaurora.org>
2020-01-20 15:05:45 +05:30
qctecmdr
f22a034b4c Merge "cpufreq: schedutil: fix CPU util when WALT is enabled" 2020-01-19 23:48:12 -08:00
qctecmdr
fa10563f7d Merge "interconnect: qcom: Add sync_state for Lahaina QNOC" 2020-01-19 23:48:12 -08:00
qctecmdr
c0dac684fd Merge "uapi: sound: remove redundant QGKI config checks" 2020-01-19 23:48:12 -08:00
qctecmdr
131058b76a Merge "uapi: sound: remove redundant QGKI config check" 2020-01-19 23:48:11 -08:00
Ghanim Fodi
0060af5a98 msm: ipa: split quota stat memory between q6 and ap
Q6 uses only 2 pipes for stats. Split the SRAM
specific region between Q6 (2 entries) and AP
(rest 3 entries).

Change-Id: Ie9eac932a6547e03f76a2a294d69f90db1d1b190
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2020-01-19 17:33:04 +02:00
Meng Wang
3ea63ceb53 uapi: sound: remove redundant QGKI config checks
Userspace does not have access to QGKI configs,
so remove redundant QGKI config checks.

CRs-Fixed: 2603947
Change-Id: I712525434311c48d4046cb7fa1aca2add89eb23e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-17 16:46:31 -08:00
Maulik Shah
bb396fa20a qcom: soc_sleep_stats: Correctly read accumulated sleep length
Correct the offset to read accumulated sleep length.

Change-Id: I7b05c85cb1664762781dfd6bd1917708e276f429
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-01-17 12:18:21 +05:30
Chris Goldsworthy
240d6f5367 iommu/arm-smmu: Replace while loop with for_each_set_bit
Switch out a while loop that loops over the set bits in a bitmap with
for_each_set_bit.

Change-Id: I8843a0b36906979a09122a8ccb07c8081278bf3b
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-01-16 21:57:10 -08:00
Prakash Gupta
aa4926dd8d iommu/arm-smmu: enhance tlb sync timeout handler
Enhance TLB sync timeout handler. Parse debug registers to identify TBU/TCU
invalidation or SYNC pending state and dump appropriate TBU testbus data
accordingly.

Example output:
arm-smmu 15000000.apps-smmu: TLB sync timed out -- SMMU may be deadlocked
TBU ACK 0x3f0000 TBU PWR 0x3f TCU sync_inv 0x1000d5
arm-smmu 15000000.apps-smmu: TCU invalidation completed, TCU sync pending
arm-smmu 15000000.apps-smmu: TBU PWR status 0x3f
arm-smmu 15000000.apps-smmu: TBU sync ack pending for TBU
150d9000.adsp_tbu, check pending transactions on TBU.

Change-Id: If9ca9dcaf26f06ee9b4204771631425cec52f95b
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-01-16 19:42:12 -08:00
Xiaoyu Ye
f494801035 uapi: sound: remove redundant QGKI config checks
Userspace does not have access to QGKI configs,
so remove redundant QGKI config checks.

Change-Id: I1d5167e482478e63381b7f36c3119558a466e5f7
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-01-16 19:34:58 -08:00
Subbaraman Narayanamurthy
154dc9d0de soc: qcom: pmic_glink: add support for multiple pmic_glink devices
Currently, pmic_glink driver supports a single Glink channel of
name PMIC_RTR_ADSP_APPS. Add support for another Glink channel of
name PMIC_LOGS_ADSP_APPS through which logs or debug information
can be shared to HLOS from the remote subsystem.

As of now, pmic_glink rpmsg driver is registered when pmic_glink
platform driver is probed. This doesn't work well when multiple
pmic_glink devices need to be supported because of the way that
kernel device framework thinks the same rpmsg device is being
registered again. Fix this by registering pmic_glink platform
and rpmsg drivers from module_init().

Change-Id: Ia3a7777d39e94557e6cdf2d72675614581e67572
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-01-16 18:46:15 -08:00
Yue Ma
543a8ac575 cnss2: NULL terminate FW build ID string
If FW build ID passed by QMI from firmware is a non-NULL terminated
string, it will result in a out-of-bounds read when driver populates
the QMI message using strlcpy where the src string must be NULL
terminated. Hence manually NULL terminate the string.

Change-Id: I8e27c01eae79e56afd1a706d071b4ccfa51d79e0
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-01-16 16:41:07 -08:00
Isaac J. Manjarres
103eb3b3d9 arm64: defconfig: Enable CMA debug configs on Lahaina
Enable CMA_DEBUGFS and CMA_DEBUG on Lahaina debug builds to collect
information about CMA statistics/allocation times through
DEBUGFS.

Change-Id: Iae10513210c85ad32101720b9ee57ac5fe49d6fb
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-01-16 13:16:38 -08:00
Isaac J. Manjarres
8d0b09d4f2 Revert "mm: cma: make writeable CMA debugfs optional"
This reverts commit 099c0c9a64.
CONFIG_CMA_DEBUGFS is only enabled in debug builds on 5.4+
and the purpose of this commit is to disallow CMA allocations
through debugfs on production builds. Since, this is no longer
possible, revert this change.

Change-Id: If1f322533660bfc7609fb09a5b13ff2ecbbe3135
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-01-16 13:16:30 -08:00
Jordan Crouse
01882490f0 ion: Make MSM pool auto refill built-in only
When built as a module, msm_ion_heaps.ko is missing the following
generic unexported symbols:

  ERROR: "__next_zones_zonelist" [drivers/staging/android/ion/heaps/msm_ion_heaps.ko] undefined!
  ERROR: "zone_watermark_ok_safe" [drivers/staging/android/ion/heaps/msm_ion_heaps.ko] undefined!

Make ION_POOL_AUTO_REFILL depend on ION_MSM_HEAPS=y which should make
sure that the symbols are only used when the driver is built in.

Change-Id: Ic0dedbadc048743b9f92070af97ef2656e78a0ab
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-01-16 13:48:12 -07:00
Konstantin Dorfman
39778e8bb7 soc: qcom: Add module dependence for spss_utils
The spss_utils driver has a functional dependence on subsys-pil-tz module.
When subsys-pil-tz module not yet registered into PIL framework, need to
defer spss_utils probe.

Also redundant input parameters sanity checks are removed.

Change-Id: I48a934b0477d5d781c041243cc8b28dacd343375
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2020-01-16 21:22:35 +02:00
qctecmdr
059aa413d9 Merge "soc: pil: Disable error-ready timeout" 2020-01-16 10:53:39 -08:00
qctecmdr
bbf404ed4b Merge "defconfig: Enable DCC driver for GKI" 2020-01-16 10:53:39 -08:00
qctecmdr
3be4bf9d9b Merge "Revert "defconfig: lahaina: Enable QRNG driver"" 2020-01-16 10:53:38 -08:00
qctecmdr
ea08467f55 Merge "msm: cvp: Avoid overflowing the stack frame" 2020-01-16 09:15:14 -08:00
qctecmdr
f26239f965 Merge "msm: IPA: remove unsupport enum for uC debug stats" 2020-01-16 09:15:13 -08:00
qctecmdr
76fbbd8b26 Merge "devfreq: bwmon: Export symbols" 2020-01-16 07:50:02 -08:00
qctecmdr
6fe62bb042 Merge "drivers: lpm-levels: Use cpu_do_idle for shallower LPM entry" 2020-01-16 04:59:06 -08:00
Fei Mao
de0dffc367 input: touchscreen: Enable FTS Touch driver
Enable the FTS touch driver for Lahaina device.

Change-Id: Ia576ba69ebb45c5ae6cb087607026cc812cdc1ed
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-01-16 19:25:35 +08:00
chenx
1533b6cd8c input: touchscreen: Add STMicroelectronics Touchscreen driver
This is the reference source driver code from ST Microelectronics.

Change-Id: I7319385daedf19761428fbd5542069d63f7192d5
Signed-off-by: chenx <chenxiang0527@thundersoft.com>
Git-commit: 0f965cac4d6bf76bcd7b6221228b814532e59463
Git-repo: https://source.codeaurora.org/external/thundersoft/ihvjointlab/sensor-driver/log/?h=STMicroelectronics_ctp_V4.1.0_2019
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-01-16 19:00:26 +08:00
qctecmdr
81738d81be Merge "NFC: Made the QTI NFC drivers GKI compliant" 2020-01-16 02:43:27 -08:00