720860 Commits

Author SHA1 Message Date
Satya Durga Srinivasu Prabhala
43980276ec sched/sched_avg: make number of running tasks conservative
Right now if a task ran 15% in the previous window, that task is
considered as part of number of running tasks as well as while
calculating misfit tasks on smaller capacity clusters which
agressively un-isolates higher capacity CPUs and may lead to
more power consumption. To avoid such issues, make number of
running tasks conservative by changing threshold to 85%.

Change-Id: Ic82724b822bb605fbda385ddeb50a591757d2c9d
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2018-05-31 08:04:25 -07:00
Satya Durga Srinivasu Prabhala
746245c894 sched/core_ctl: disable prev assist by default
Prev assist is not needed for all clusters with in the system
and can be enabled from user space for specific cluster as needed.
So, disable prev assist by default and update checks as necessary.

Change-Id: I3e3770a0f2dc6f588693c98e3b8514b4fab29fd6
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2018-05-31 08:02:13 -07:00
Satya Durga Srinivasu Prabhala
96a6526f36 sched/core_ctl : make assisting more stringent
Currently, if the task_threshold is very high as compared
to the assist threshold, we could end up in a situation
where the next cluster assists when there are isolated
cores in the prev cluster.

Fix this by setting the assist need to 0 when there are
isolated cpus.

Change-Id: Ic85ce244397a48d2bb28fd68b2c7c49d06c1afa5
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2018-05-31 07:59:58 -07:00
qctecmdr Service
c78e874c98 Merge "defconfig: enable additional features to automotive" 2018-05-29 23:37:00 -07:00
qctecmdr Service
092302c218 Merge "ion: add support for secure dma allocations" 2018-05-29 23:37:00 -07:00
qctecmdr Service
a71009e03e Merge "sched/core_ctl: Pass sorted clusters based on capacity to cluster_init" 2018-05-29 20:03:50 -07:00
qctecmdr Service
6e4709c6ba Merge "arch: arm: add support for sdxprairie target" 2018-05-29 20:03:49 -07:00
qctecmdr Service
d2560a2633 Merge "Revert "mm/memblock: fix a race between search and remove"" 2018-05-29 13:49:35 -07:00
qctecmdr Service
be19bd2203 Merge "msm: vidc: Add qcom,msm-vidc,mem-cdsp node" 2018-05-29 13:49:35 -07:00
qctecmdr Service
f378f7cad6 Merge "ARM: dts: msm: Add MPM interrupt controller for qcs405" 2018-05-29 13:49:35 -07:00
qctecmdr Service
50214dcb8f Merge "ARM: dts: msm: Add secondary USB configuration for sm8150" 2018-05-29 13:49:34 -07:00
qctecmdr Service
18604f1e9d Merge "ARM: dts: msm: Change mem timer base for qcs405" 2018-05-29 08:40:45 -07:00
qctecmdr Service
23eba07844 Merge "ARM: dts: msm: update continuous splash region for sm6150" 2018-05-29 08:40:45 -07:00
qctecmdr Service
6c6ba3bac5 Merge "defconfig: arm64: qcs405: Enable MPROC drivers" 2018-05-29 08:40:45 -07:00
qctecmdr Service
0d4b600d4c Merge "pmqos: Enable cpu isolation awareness" 2018-05-29 08:40:44 -07:00
qctecmdr Service
7f57870cd9 Merge "defconfig: qcs405: enable SMB1351 charger driver" 2018-05-29 08:40:44 -07:00
Avaneesh Kumar Dwivedi
4f52f6cf6c ARM: dts: msm: Change mem timer base for qcs405
The base of mem timer was incorrect, resulting
in non firing of mem timer hence updating the same.

Change-Id: Ib62a1599abf554f01af63b2f26aa994e12824ac8
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
Signed-off-by: Archit Saxena <archsaxe@codeaurora.org>
2018-05-29 05:13:12 -07:00
Dhoat Harpal
b06d6e9ee0 defconfig: arm64: qcs405: Enable MPROC drivers
Enable SMEM, RPMSG and Glink drivers for communication
with MPSS, LPASS and CDSP.

CRs-Fixed: 2243942
Change-Id: Ib59cef94263c679e4fab69ea252a53806e98ba56
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2018-05-29 00:18:54 -07:00
Olav Haugan
837aaf2a09 pmqos: Enable cpu isolation awareness
Set long latency requirement for isolated cores to ensure LPM logic will
select a deep sleep state.

Change-Id: I83e9fbb800df259616a145d311b50627dc42a5ff
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2018-05-28 10:21:31 +05:30
Hans Chang
79e225b4d2 defconfig: enable additional features to automotive
defconfig: Enable CONFIG_NETFILTER_XT_MATCH_BPF

Enable bpf match support for targets with kernel 4.9 and above
so that iptable command from netd (userspace module) with -m bpf
doesn't fail.

defconfig: Enable full reference count validation

Enable full reference count validation to prevent
use-after-free cases and memory leak cases that
may appear because of reference count overflows.

defconfig: sm8150: Enable vmem layout prints

Config option to print kernel virtual memory layout by default
on debug builds.

Change-Id: I5e0cc359851b827821fed07c83eaff239423eee0
Signed-off-by: Hans Chang <hansc@codeaurora.org>
2018-05-27 15:52:48 -07:00
qctecmdr Service
ac1211193f Merge "power: smb5: add minor fixes to SMB5 charger" 2018-05-27 06:37:45 -07:00
Raghavendra Kakarla
e1ba9df10c ARM: dts: msm: Add MPM interrupt controller for qcs405
Add mpm interrupt controller as SOC interrupt parent and
as a child domain under intc for qcs405.

Change-Id: I3fc3a24d7a99c64fe1ab615b37239aec0b8e13c1
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2018-05-27 05:04:17 -07:00
Raghavendra Kakarla
672f6fe4b1 defconfig: Enable MPM support for qcs405
Enable MPM interrupt controller compilation support.

Change-Id: Ib2717f3af7f957dfac552fbdf655b25742c35317
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2018-05-27 17:31:01 +05:30
qctecmdr Service
4624f8d739 Merge "msm: ipa: fix to not allow NAT DMA command without device initialization" 2018-05-26 14:59:44 -07:00
Maheshwar Ajja
989da0c9f8 msm: vidc: Add qcom,msm-vidc,mem-cdsp node
Add qcom,msm-vidc,mem-cdsp node to memory heaps
documentation.

Change-Id: I3b425b35edba69208a4e1db40c45474872aa78b0
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
2018-05-26 12:39:44 -07:00
Mohammed Javid
5245a8855a msm: ipa: fix to not allow NAT DMA command without device initialization
Without NAT device initialization sending NAT DMA
commands leads to XPU violation. Added checks to
verify device initialized or not before sending DMA
command.

Change-Id: I7440abc14a81e1621573f0e2808a410d60b2458d
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-05-26 16:55:17 +05:30
Ashay Jaiswal
84ff924605 defconfig: qcs405: enable SMB1351 charger driver
Enable SMB1351 charger driver for QCS405, SMB1351
supports VBUS detection and battery charging
functionality.

Change-Id: I909833e7f43ea93f8dde3a2bee9a66f72933f8f1
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2018-05-26 12:19:57 +05:30
Satya Durga Srinivasu Prabhala
833279caa2 sched/core_ctl: Pass sorted clusters based on capacity to cluster_init
Core control assumes that the clusters in the system are sorted
based on their capacity, i.e., first cluster is the minimum
capacity cluster and last cluster is the max capacity cluster,
but, there are systems which has max capacity cluster as first
cluster of the system and min capacity cluster as last cluster
in the system. This assumption breaks core control for systems
with max capacity system as first cluster. To make sure core
control won't be broken for such systems, pass sorted clusters
based on the capacity to cluster_init.

Change-Id: Ib27698080b9e4fe8b0e7789b9042d0a210fda486
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2018-05-25 19:27:44 -07:00
Jeevan Shriram
3601097fd7 arch: arm: add support for sdxprairie target
Add machine, socinfo and board related configurations for supporting
sdxprairie target.

Change-Id: I4b718775eaf9a5636e67ca2255d3d5444edf0f54
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2018-05-25 17:04:39 -07:00
qctecmdr Service
57116e1446 Merge "msm: ipa: fix clock vote sm on imp" 2018-05-25 15:33:19 -07:00
qctecmdr Service
5a96a5b988 Merge "power: qpnp-fg-gen3: Restore recharge SOC only when not in JEITA" 2018-05-25 15:33:19 -07:00
Jack Pham
b2dc259a4a ARM: dts: msm: Add secondary USB configuration for sm8150
Add support for second USB controller and PHYs on sm8150. Add
nodes for GPIO based extcon on CDP and MTP which is used to
notify cable connection status via VBUS and ID pins. Also use
secondary phandles for regulators which match the naming scheme
used in the power grid hardware documentation.

Leave the nodes disabled for now.

Change-Id: I0da14087011d5845a13fd956b6c5457265ec4fb4
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2018-05-25 14:50:48 -07:00
qctecmdr Service
aa46e03832 Merge "mhi: dev: net_dev: do not assert wake during napi_poll" 2018-05-25 12:13:34 -07:00
qctecmdr Service
51856490de Merge "arm: dma-mapping: flush highmem mappings" 2018-05-25 12:13:34 -07:00
qctecmdr Service
69424ee787 Merge "power: smb5: update APSD result in USBIN_PLUGIN IRQ" 2018-05-25 12:13:33 -07:00
qctecmdr Service
f09365d97b Merge "mhi: core: do not assert device wake when processing completion event" 2018-05-25 09:09:38 -07:00
Sujeev Dias
1d84beb8d9 mhi: dev: net_dev: do not assert wake during napi_poll
MHI device does not require host to assert wake
when processing downlink data.

CRs-Fixed: 2248650
Change-Id: Ibc8aa75afdeb9176ea936d794b39c6675ad49859
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-05-25 07:07:18 -07:00
Sujeev Dias
d2dd62695b mhi: core: pm lock not needed to read pm state
Acquiring of pm lock is necessary if data is going over the PCIe
link to avoid another thread from turning off the link. For
reading pm state, acquiring pm lock is not necessary so remove
grabbing the lock when entering process ctrl event thread.

CRs-Fixed: 2248650
Change-Id: I68b894f41cac5a4a4c58bc94a20eaef4d70bf311
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-05-25 07:06:58 -07:00
Sujeev Dias
e04e35914c mhi: core: do not assert device wake when processing completion event
When processing completion events, we do not need to assert
wake because device has already completed required work.

CRs-Fixed: 2248650
Change-Id: I0a1981baaae2784a23abf1fdc262bc9e7f2aa460
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-05-25 07:06:31 -07:00
Sujeev Dias
2315437725 mhi: core: for downlink transfer only assert wake if MHI is in lpm mode
When MHI is in an active state, external device CPU cores can go
into a low power mode while device data movers processing data
transfer. Whenever host assert wake, it can cause device CPU to
exit low power mode even though there is no work to be done. For
downlink channels, assert wake only if MHI is in a low power mode
to avoid unnecessary wake ups.

CRs-Fixed: 2248650
Change-Id: I05ca7483a885237711a630844670e887572c13b7
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-05-25 07:06:01 -07:00
Sujeev Dias
8f90aea758 mhi: core: process incoming terminal signals from modem
Some MHI clients require terminal signals coming from modem
to host. Add support for processing device terminal
signals.

CRs-Fixed: 2225734
Change-Id: I795d610deb7673dde0d6bc95ae4f361b66d4cdf5
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-05-25 07:05:41 -07:00
Sujeev Dias
6f4f9ed619 mhi: core: separate event processing based on ev type
As an optimization, have dedicated event processing
algorithm based on type of event ring.

CRs-Fixed: 2246114
Change-Id: I5bdb155a8b24ddc5ba62ac31630f0fbb30632c5d
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-05-25 07:04:59 -07:00
Sujeev Dias
49dc104d52 mhi: core: Reorganize mhi event ring configurations in DT
For better clarity, reorganize how MHI event rings
are configured in device node.

CRs-Fixed: 2244344
Change-Id: I27c734668d63bbd98b285360916a3a36c6fb97b4
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2018-05-25 07:04:20 -07:00
Shiraz Hashim
0d81f6cf2b arm: dma-mapping: flush highmem mappings
DMA allocations with no kernel mapping are likely
protected as well. Stale highmem mappings in such cases
with cache-able attributes may lead to speculative fetch,
as highmem mappings are not cleared out.

Hence flush out unused highmem mappings explicitly when
allocation request with no kernel mapping is requested.

Change-Id: Ic1de633c6364eaa1b6d5b0932f2cfe17d64d920e
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2018-05-25 06:51:26 -07:00
Laura Abbott
5fa884ffd4 arm: highmem: Add support for flushing kmap_atomic mappings
The highmem code provides kmap_flush_unused to ensure all kmap
mappings are really removed if they are unused. This code does not
handle kmap_atomic mappings since they are managed separately.
This prevents an issue for any code which relies on having absolutely
no mappings for a particular page. Rather than pay the penalty of
having CONFIG_DEBUG_HIGHMEM on all the time, add functionality
to remove the kmap_atomic mappings in a similar way to kmap_flush_unused.

Change-Id: I9d73abad693c18f2daa1647353e7592b255475b0
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2018-05-25 06:51:08 -07:00
Laura Abbott
19e308d6ca ARM: dma-mapping: Allow highmem pages to not have a mapping
The DMA_ATTR_NO_KERNEL_MAPPING is used to make sure that CMA
pages have no kernel mapping. Add support to make sure that
highmem pages have no mapping.

Change-Id: Ife76df126ecfedf0dba81a35e0de8a1787355b3d
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2018-05-25 06:50:44 -07:00
qctecmdr Service
65939c370d Merge "clk: qcom: Fix compilation for SMD-RPM driver" 2018-05-25 06:24:58 -07:00
qctecmdr Service
0d4f78b359 Merge "drivers: qpnp-qg: Add snapshot of the QPNP QG driver" 2018-05-25 06:24:58 -07:00
qctecmdr Service
5037ffdee3 Merge "ARM: dts: msm: add SPMI debug bus for sm8150 platforms" 2018-05-25 06:24:58 -07:00
qctecmdr Service
f7a1e25a08 Merge "fbdev: msm: Correct ion sequence for splash and pan display" 2018-05-25 06:24:57 -07:00