Commit graph

879,438 commits

Author SHA1 Message Date
Nitin Rawat
eb68ce5d76 pinctrl: qcom: Expose ufs_reset as gpio on shima
The ufs_reset pin is expected to be wired to the reset pin of the
primary UFS memory but is pretty much just a general purpose output pin.
Reorder the pins and expose it as gpio 204, so that the UFS driver can
toggle it.

Change-Id: Id35739a32bf05eaf310857fa07d9c7fbdb3abf86
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-04-16 15:22:10 +05:30
qctecmdr
6c710cb348 Merge "msm: kgsl: Make OOB timeouts easier to debug" 2020-03-22 09:47:50 -07:00
qctecmdr
42372239bf Merge "msm: adsprpc: Validate smmu device is created before using it" 2020-03-22 05:55:58 -07:00
qctecmdr
2402446736 Merge "spmi: spmi-pmic-arb: make interrupt support optional" 2020-03-22 05:55:57 -07:00
qctecmdr
20f88c8444 Merge "msm: kgsl: Print always on counters if HFI timed out" 2020-03-22 05:55:57 -07:00
qctecmdr
fbc834683e Merge "arm64: defconfig: Enable QCOM_MEM_BUF on genericarmv8-64" 2020-03-22 02:18:35 -07:00
qctecmdr
5f0a70d39e Merge "arm64: defconfig: Enable BFQ io scheduler on lahaina" 2020-03-22 02:18:34 -07:00
qctecmdr
cd58436e82 Merge "cnss2: Add support for bus bandwidth scale" 2020-03-22 02:18:34 -07:00
qctecmdr
12ead59441 Merge "msm: adsprpc: increase max number of concurrent remote sessions" 2020-03-22 02:18:34 -07:00
qctecmdr
7b0820081a Merge "mm: oom_kill: Support further prioritization of OOM kills" 2020-03-21 22:18:23 -07:00
qctecmdr
eed9635975 Merge "iommu/arm-smmu: Add implementation specific device group matching" 2020-03-21 22:18:23 -07:00
qctecmdr
1db0113172 Merge "mm/Kconfig: Remove dependency on QCOM_MEM_OFFLINE for movable zone" 2020-03-21 22:18:22 -07:00
qctecmdr
ba58d064b5 Merge "soc: qcom: spcom: fix pr_err() missing "name" parameter" 2020-03-21 18:35:33 -07:00
qctecmdr
3d41a73b02 Merge "soc: qcom: spcom: return EINTR on wait interrupted" 2020-03-21 18:35:33 -07:00
qctecmdr
a2bde9bf97 Merge "soc: qcom: hyp_core_ctl: Add frequency QoS support" 2020-03-21 18:35:32 -07:00
qctecmdr
97aef1c9c5 Merge "defconfig: lahaina: Enable support for dma-coherent-hint-cached" 2020-03-21 18:35:32 -07:00
Amir Samuelov
613dfc140f soc: qcom: spcom: return EINTR on wait interrupted
wait_for_completion_interruptible() returns ERESTARTSYS when
the device goes to low power mode.
The SPU subsystem is shutdown on deep low power mode,
so the interrupted operation is not recoverable.
return EINTR to user space to propagate the error to the user app.

Change-Id: I3b47b971d4411f977a0f68c1ce838fd92198c75d
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2020-03-21 00:38:01 -07:00
Amir Samuelov
a6ec9c9d74 soc: qcom: spcom: fix pr_err() missing "name" parameter
the print format has "%s" but is missing the "name" parameter.

Change-Id: Ib2fcbcf2d477552c8d2fbf16487854ac13c1b3ca
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2020-03-21 00:37:35 -07:00
qctecmdr
b73840d28d Merge "kernel_headers: Add msm_hdmi_hdcp_mgr.h header" 2020-03-20 21:42:09 -07:00
qctecmdr
7596d83edd Merge "haven: doorbell: Fix hh_dbl_send error print" 2020-03-20 21:42:09 -07:00
qctecmdr
9c6133b184 Merge "perf: Satisfy the kernel's request to request PMU counters" 2020-03-20 21:42:07 -07:00
Yuanyuan Liu
c1284ad3b8 cnss2: Add support for bus bandwidth scale
Register MHI bus bandwidth scale callback function.

CRs-Fixed: 2641678
Change-Id: Ice9e2e13042b7365629a6c85bb5acbb799e4b04d
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2020-03-20 11:22:27 -07:00
qctecmdr
2ec6c06627 Merge "interconnect: Add interconnect_graph file to debugfs" 2020-03-20 09:40:40 -07:00
qctecmdr
da61f2ab29 Merge "interconnect: qcom: Support bcm-voter-specific TCS wait behavior" 2020-03-20 09:40:40 -07:00
qctecmdr
4fb04ec2bf Merge "iommu/arm-smmu: Add support for implementation specific debugging" 2020-03-20 09:40:40 -07:00
qctecmdr
3b90a3b235 Merge "msm: kgsl: remove redundant check for usermem type" 2020-03-20 05:55:01 -07:00
qctecmdr
1150df1e70 Merge "msm: ADSPRPC: Awake PM with a timeout" 2020-03-20 05:55:00 -07:00
qctecmdr
c18b56730d Merge "soc: qcom: socinfo: Add soc information for Shima" 2020-03-20 01:15:50 -07:00
qctecmdr
c81d459676 Merge "ion: Fix to record NR_KERNEL_MISC_RECLAIMABLE in page units" 2020-03-20 01:15:49 -07:00
qctecmdr
12d4640529 Merge "sched: Add support to spread tasks" 2020-03-20 01:15:49 -07:00
qctecmdr
fa0c7b3eb6 Merge "drivers: lpm-levels: check for per-cpu dev PM QoS" 2020-03-20 01:15:48 -07:00
Isaac J. Manjarres
1ae017a0bf arm64: defconfig: Enable QCOM_MEM_BUF on genericarmv8-64
Enable the mem-buf driver on the genericarmv8-64 configuration.

Change-Id: I566dcdd02e5ff36e92f8291bda8294e4ce80f850
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-19 17:47:25 -07:00
Isaac J. Manjarres
2125fba9bd soc: qcom: kconfig: Relax QCOM_MEM_BUF dependencies
The mem-buf driver doesn't strictly depend on the secure
buffer functionality. For example, it can still be functional
in environments where it is used purely for requesting memory
from other VMs. Thus, remove the dependency.

Change-Id: Ie4e39c00473509ee3552e6da849c633ccfab21ce
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-19 17:14:49 -07:00
Isaac J. Manjarres
a564157706 arm64: defconfig: Enable memory configs on genericarmv8-64
Enable CONFIG_VM_EVENT_COUNT_CLEAN_PAGE_RECLAIM and
CONFIG_BALANCE_ANON_FILE_RECLAIM on genericarmv8-64.

Change-Id: I9810575dcabd14a2e39c2e08d502e3213877ed69
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-19 17:10:56 -07:00
Isaac J. Manjarres
7860b02416 arm64: defconfig: Enable memory hotplug configs on genericarmv8-64
Enable the memory hotplug and hotremove configs for the
genericarmv8-64 configuration.

Change-Id: I80ac4cd226a42a36a8dbecab7af99783f0875c27
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-19 16:14:15 -07:00
Isaac J. Manjarres
eee5991b7f mm/Kconfig: Remove dependency on QCOM_MEM_OFFLINE for movable zone
Enabling the movable zone shouldn't depend on QCOM_MEM_OFFLINE,
so remove the dependency.

Change-Id: Id5bd1a7b79adbf6f85c2007cd7d690a387258c83
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-19 16:02:51 -07:00
Isaac J. Manjarres
851cb188d0 arm64: defconfig: Enable ZRAM on genericarmv8-64
Enable the configs necessary to enable ZRAM functionality
on genericarmv8-64.

Change-Id: Iebb618a4b716f0dee27f6ddd7e14975481d4a3c8
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-19 15:11:30 -07:00
Isaac J. Manjarres
6d728c9921 arm64: defconfig: Enable CMA optimizations for genericarmv8-64
Enable the CMA optimizations for the genericarmv8-64
configuration.

Change-Id: Ib65684f4d3c89d7a6bf9961d6538cbeb84cec638
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-19 14:37:50 -07:00
Isaac J. Manjarres
2b35e4dcac mm/Kconfig: Relax CMA optimization dependencies
The CMA performance optimizations depend on QGKI, which
prevents them from being enabled on configurations that don't
have a notion of GKI and QGKI. Thus, remove this dependency.
This shouldn't cause any problems with the ABI surface with
respect to GKI targets as the configs still have to be enabled
explicitly anyway.

Change-Id: I1bea32ccf23e485f491dfb27422f83d0919aedd6
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-19 14:35:27 -07:00
Raghavendra Rao Ananta
6c1e5e4534 arm64: defconfig: Enable debugging support for spinlocks
Enable CONFIG_DEBUG_SPINLOCK to debug issues with respect to
deadlocks on Lahaina platforms.

Change-Id: I9599e3478118c1decdfe7a0b2c76064e710ef9f3
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-19 06:47:02 -07:00
Raghavendra Rao Ananta
e5ac623a25 perf: Satisfy the kernel's request to request PMU counters
The SELinux policy on Android doesn't provide the kernel-space
with CAP_SYS_ADMIN capability. The perf-core checks for this
capability before giving access to the callers to read the PMU
counters. Hence, when the kernel drivers try to gain access
to the PMU (via perf_event_create_kernel_counter()), it fails
with -EACCES.

To get past this, add another condition to check if the request
is coming from kernel-space or user-space. If kernel-space,
don't check for the capability any further and move on.

Change-Id: Ie2ddc6b619fa0d60d4752994ea0c9cedf5b96b5c
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-19 06:43:39 -07:00
Chandra Sai Chidipudi
9f5985196b soc: qcom: socinfo: Add soc information for Shima
Add SOC ID to support socinfo for Shima SOC.

Change-Id: I2f3c8476d02ab55e55d14c64e359a1a2a5deeafd
Signed-off-by: Chandra Sai Chidipudi <cchidipu@codeaurora.org>
2020-03-19 06:24:59 -07:00
Leonard Crestez
3e8b7928e2 interconnect: Add interconnect_graph file to debugfs
The interconnect graphs can be difficult to understand and the current
"interconnect_summary" file doesn't even display links in any way.

Add a new "interconnect_graph" file to debugfs in the graphviz "dot"
format which describes interconnect providers, nodes and links.

The file is human-readable and can be visualized by piping through
graphviz. Example:

ssh $TARGET cat /sys/kernel/debug/interconnect/interconnect_graph \
	| dot -Tsvg > interconnect_graph.svg

Change-Id: I372a284efd67cf02b6791758c0ab836b8f011f7a
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Git-commit: 1a0013c62b33158dcb67a3c11872a03be50711a3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Georgi Djakov <gdjako@codeaurora.org>
2020-03-19 04:09:11 -07:00
Pradeep P V K
3782049a0e arm64: defconfig: Enable BFQ io scheduler on lahaina
Enable BFQ IO scheduler as a default on lahaina.

Change-Id: Ie32a51dffec9c48acc5b1d1e8322c2d2dd641044
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
2020-03-19 15:45:50 +05:30
qctecmdr
ad8b0e3fc3 Merge "msm: kgsl: Finish up probe cleanups" 2020-03-18 19:19:21 -07:00
Himateja Reddy
9cd09505df msm: adsprpc: increase max number of concurrent remote sessions
Increase the maximum number of concurrent sessions on one remote
subsystem from 9 to 13, to support the 4 new compute context banks
added in the device-tree.

Change-Id: Id2e8f92a147c3ec37a3622939bb2f23a6605a38a
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-03-18 15:50:03 -07:00
Lingutla Chandrasekhar
50a9295169 sched: Add support to spread tasks
If sysctl_sched_prefer_spread is enabled, then tasks would be freely
migrated to idle cpus within same cluster to reduce runnables.

By default, the feature is disabled.
User can trigger feature with:
   echo 1 > /proc/sys/kernel/sched_prefer_spread
	Aggressively spread tasks with in little cluster.
   echo 2 > /proc/sys/kernel/sched_prefer_spread
	Aggressively spread tasks with in little cluster as well as
	big cluster, but not between big and little.

Change-Id: I0a4d87bd17de3525548765472e6f388a9970f13c
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
[satyap@codeaurora.org: fix trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-03-18 12:41:02 -07:00
Tatenda Chipeperekwa
c6845e33d0 kernel_headers: Add msm_hdmi_hdcp_mgr.h header
Add msm_hdmi_hdcp_mgr.h header that is exported from the display
techpack for use in the display userspace modules.

Change-Id: Ib17dee3daf3f7998ea76d18cdc55e724266a0021
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2020-03-18 10:36:11 -07:00
Isaac J. Manjarres
0964a68146 iommu/arm-smmu: Add implementation specific device group matching
Certain SMMU implementations depend on implementation specific
settings to ensure that translations for a group of SMMU masters
work properly, so add a function to determine if a master belongs
in a particular IOMMU group based on implementation defined
settings.

Also, wire up the QSMMUV500 implementation of this hook, leaving
the arm_smmu_arch_ops structure completely unused. Since it has
been superseded by the implementation framework, remove the
remaining support for it.

Change-Id: I53b1b014be187757c6e48e57f23cc9732103f890
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-18 10:28:54 -07:00
Isaac J. Manjarres
84af7c6716 iommu/arm-smmu: Add support for implementation specific removal
Certain SMMU implementations may need to follow certain
procedures prior to having their devices removed, so
add support for implementation specific removals.

Also, migrate the QSMMUV500 device removal function to utilize
the newly added implementation specific removal hook. This makes
it so that there are no users of the device_remove() hook in the
arm_smmu_arch_ops structure, so remove it.

Change-Id: I6143fee5744ebec2090e74337f6fce99e23c5cf0
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-18 10:28:54 -07:00