Commit graph

877,441 commits

Author SHA1 Message Date
Isaac J. Manjarres
4bb0643878 dma-mapping-fast: Align memory allocation to dma_alloc_attrs expectations
On newer kernels, memory allocated by dma_alloc_attrs() is
expected to be zeroed out upon allocation. The allocation
paths in fastmap do not currently account for this new
requirement, so update them to zero out memory, unless
the client explicitly asks for memory to not be zeroed out.

Change-Id: I5c7fa81ab4b8fa98890036082883769ab12443c6
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-13 10:11:33 -08:00
qctecmdr
4c93b2bdf0 Merge "serial: msm_geni_serial: Manage HSUART clocks when read HW Ver" 2020-02-12 23:42:26 -08:00
Mukesh Kumar Savaliya
c1d740e838 serial: msm_geni_serial: Manage HSUART clocks when read HW Ver
This change is to make sure UART doesn't turn on/off clocks for
console usecase. HSUART tries to store firmware version for debug
purpose which needs clocks to be ON, hence keep reading of FW
version only for HSUART.

Change-Id: I95025872852df3eb5b8252dfe1cc6f5be95586be
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2020-02-13 03:45:37 +05:30
qctecmdr
d184fa35bf Merge "msm: kgsl: Fix gdsc disable timeout during reset" 2020-02-12 12:44:55 -08:00
qctecmdr
824167f1ba Merge "ASoC: pcm: update the start-up sequence for playback" 2020-02-12 12:44:54 -08:00
qctecmdr
d6d4969a7e Merge "sched: micro optimization for sched_energy_present" 2020-02-12 12:44:54 -08:00
qctecmdr
933bad2feb Merge "Add hdcp_qseecom driver snapshot for Lahaina" 2020-02-12 12:44:54 -08:00
qctecmdr
378eb426d0 Merge "mm: set the watermark_boost before updating the low and high wmarks" 2020-02-12 05:13:21 -08:00
qctecmdr
f1adcf9983 Merge "ion: msm: Add support for the Trusted UI(TUI) dynamic carveout heap" 2020-02-12 05:13:21 -08:00
qctecmdr
9e911020fe Merge "msm: cvp: Relocate Synx init/uninit calls" 2020-02-12 05:13:21 -08:00
qctecmdr
91f2f60060 Merge "sched/core: Fix size of rq::uclamp initialization" 2020-02-12 00:18:29 -08:00
qctecmdr
9484b7d44c Merge "haven: Add VM management support for clients" 2020-02-12 00:18:29 -08:00
qctecmdr
f3bd0349ce Merge "sched/fair: bonus vruntime for task boost 3" 2020-02-12 00:18:29 -08:00
qctecmdr
b7f7f81480 Merge "mm, oom: Modify default value of panic_on_oom" 2020-02-12 00:18:29 -08:00
qctecmdr
2a0b4922bc Merge "Revert "defconfig: lahaina: enable FSA driver on Lahaina"" 2020-02-11 17:42:02 -08:00
qctecmdr
00b9f1f54c Merge "kernel_headers: Add missing header for lahaina" 2020-02-11 17:42:02 -08:00
Sudheer Papothi
da36af38c0 ASoC: pcm: update the start-up sequence for playback
Codec should be started before the CPU to ensure that there is no data
loss during playback.Current sequence enables the CPU first followed by
codec.This change updates the sequence prevent any playback data loss.

Also, squash the below change to fix possible NULL pointer dereference
issue

ASoC: pcm: Check for capture path in all codec_dais

During soc_pcm_prepare, check for capture path for all
the codec_dais instead of the last codec_dai. This is
will help to set pcm start event for all the codec dais
that has capture_active set to high. Change checks for
all the codec_dais capture_active bit to set start stream
event.

Change-Id: I3f1b457ecd169f6ecc42e15f2151ede9cdbd580d
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2020-02-11 15:21:39 -08:00
Rishabh Bhatnagar
a45cbced55 kernel_headers: Add missing header for lahaina
Add missing header to gen_headers_*.bp files for lahaina.

Change-Id: Iae50001dcaefc8d454a51af2b8c37b21f835c8d7
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-02-11 10:33:17 -08:00
qctecmdr
41c8b9e2f3 Merge "defconfig: arm64: Add SELinux configs" 2020-02-11 06:56:31 -08:00
qctecmdr
26692f6684 Merge "i3c: i3c-master-msm-geni: Propagate tip changes from 4.19" 2020-02-11 06:56:31 -08:00
qctecmdr
075947b759 Merge "ASoC: dt-bindings: update soundwire port configurations" 2020-02-11 06:56:31 -08:00
qctecmdr
ab33cc9923 Merge "soc: qcom: spcom: propagate print macro parameters to pr_*()" 2020-02-11 06:56:30 -08:00
qctecmdr
b1a5fe988e Merge "clk: qcom: gdsc-regulator: Add support for proxy consumers" 2020-02-11 06:56:30 -08:00
qctecmdr
18456641d5 Merge "dwc3-msm: Add USB role switch handling" 2020-02-11 06:56:29 -08:00
Meng Wang
3ffeec2495 Revert "defconfig: lahaina: enable FSA driver on Lahaina"
This reverts commit 5f563b2c24.
FSA config will be enabled after all dependent changes are merged.

Change-Id: I585fd44abe2210b6a9dc572c5dcd1b6ce426b9d8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-02-11 19:52:24 +08:00
Phanindra Babu Pabba
b1ae6d832f Add hdcp_qseecom driver snapshot for Lahaina
Add and modify files to enable hdcp_qseecom driver
for Lahaina.

This implementation is based on a snapshot of the HDCP
QSEECOM module as of this commit c13c06fa4bc677f4
("hdcp_qseecom: Maintain repeater_flag appropriately")
on kernel-4.19.

Change-Id: I91a9d9c539f5ab11af7f427e907622d8391b454f
Signed-off-by: Phanindra Babu Pabba <pabba@codeaurora.org>
2020-02-11 16:59:19 +05:30
qctecmdr
4c77e0c054 Merge "defconfig: lahaina: Enable hv-haptics driver" 2020-02-10 21:10:31 -08:00
qctecmdr
c80a3f6ef0 Merge "drivers: edac: Defer work for the polling EDAC driver" 2020-02-10 21:10:29 -08:00
qctecmdr
7392fc6449 Merge "defconfig: Split CNSS configs to GKI and debug" 2020-02-10 21:10:29 -08:00
qctecmdr
a4d164558e Merge "defconfig: lahaina: enable FSA driver on Lahaina" 2020-02-10 21:10:29 -08:00
qctecmdr
7b05f44006 Merge "input: touchscreen: Enable new Focaltech touch driver" 2020-02-10 21:10:28 -08:00
qctecmdr
996874f161 Merge "ASoC: pcm: update arch_setup_dma_ops to of_dma_configure for hostless" 2020-02-10 21:10:27 -08:00
Charan Teja Reddy
c0580dc24c mm: set the watermark_boost before updating the low and high wmarks
Updating the zone watermarks by any means, like extra_free_kbytes,
min_free_kbytes, water_mark_scale_factor, when boost_watermark(zone) is
set can result into the higher water_mark_low|min as the macro
min_wmark_pages returns by adding the zone->watermark_boost.
Set this to Zero early.

Change-Id: I5e3edd1798e46974f3df34ef750f9d08b8ff35f4
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-10 19:49:37 -08:00
Prakash Gupta
ed69314eaf mm, oom: check LMK enabled for pagefault_out_of_memory()
Rely on LMK to reclaim memory and avoid OOM, when out of memory
condition is detected in a pagefault.

pagefault_out_of_memory() may be called due to commit d1b75390beb8 ("mm:
reduce the time spend by killed tasks in alloc path"), which bails out from
alloc_pages_slowpath() if the current task has been killed.

Change-Id: Icfdaa51d7cfb0dfe9a665bcff23357101b15f421
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-10 19:49:36 -08:00
Charan Teja Reddy
44783e7f43 mm: oom: enable the sysctl_reap_mem_on_sigkill by default
Enable the reaping of memory on a sigkill by default. This helps in
faster releasing of memory pages to buddy.

Change-Id: I90a508e6d16099527991674f6b4efdc55f415c59
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-10 19:49:36 -08:00
Chris Goldsworthy
271ccd3018 defconfig: Enable userspace low memory killer for Lahaina
Enable support for a userspace low memory killer and associated
debug options.

Change-Id: If730f1634e39b516e00b29f86260b720c33706d4
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-10 19:49:36 -08:00
Patrick Daly
e9ddfc8eea mm, oom: Modify default value of panic_on_oom
If a userspace low memory killer is present, the kernel oom killer
is not expected to be invoked. Therefore, trigger a reset on any
such occurrence.

Change-Id: I7f3451e9c4deb843b3e4dfa13e9764101e90b8ae
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-10 19:49:35 -08:00
Patrick Daly
de77105488 mm: oom-kill: Add lmk_kill possible for ULMK
While ULMK is active, prevent OOM for order <= COSTLY_ORDER
pages. No special actions are taken for larger orders.

Change-Id: I4ccba1b71155947569acc3d88ae2027e3b2e0620
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2020-02-10 19:49:35 -08:00
Dennis Cagle
30dcc390c9 defconfig: arm64: Add SELinux configs
Add SELinux related kernel defconfig options.

Change-Id: Id08aec868995b0f3bfe1eab19a03f3b809e6967c
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
2020-02-10 16:27:13 -08:00
Akhil P Oommen
d14dbe6866 msm: kgsl: Fix gdsc disable timeout during reset
Smmu driver takes a vote on CX gdsc before calling the kgsl pagefault
handler. If there is contention for device mutex in this path and the
dispatcher fault handler is holding this lock, trying to turn off CX
gdsc will fail during the reset. So to avoid blocking here, try to
lock device mutex and return if it fails.

Change-Id: Idf1726960071d66b9112f6b4abdf19a49afacefd
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Signed-off-by: Urvashi Agrawal <urvaagra@codeaurora.org>
2020-02-10 12:32:18 -08:00
Isaac J. Manjarres
a2b9b1678e ion: msm: Add support for the Trusted UI(TUI) dynamic carveout heap
Add support to allow usage of memory from the TUI dynamic carveout
heap.

Change-Id: I585b68215f2f5e8ab114f1c83c19b3bc77a65845
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-10 10:52:50 -08:00
qctecmdr
3bdb50e53a Merge "arm64: defconfig: Enable haven doorbell driver" 2020-02-10 07:51:49 -08:00
qctecmdr
81c4256b2e Merge "scsi: ufs: Fix phy init sequence" 2020-02-09 21:05:45 -08:00
Meng Wang
54792d2a02 ASoC: pcm: update arch_setup_dma_ops to of_dma_configure for hostless
arch_setup_dma_ops is not exported and when compiling ASoC framework
as modules, it would not found arch_setup_dma_ops. Change it to
of_dma_configure to resolve this issue.

Change-Id: I2a031373eff8a4abc212798825c9effd77bce9f7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-02-09 20:21:33 -08:00
qctecmdr
c5d20367bc Merge "ion: msm: Add support for addition/removal of memory to ION heaps" 2020-02-09 14:36:35 -08:00
qctecmdr
d54f34fc01 Merge "input: qcom-hv-haptics: correct pattern source checking logic" 2020-02-09 09:08:49 -08:00
qctecmdr
495a16b463 Merge "leds: qti-flash: Fix updating flags when disabling flash/torch device" 2020-02-09 09:08:49 -08:00
Maya Erez
ae1b591161 wil6210: prevent ioctl access while in reset or suspend
Accessing some of the memory of the device while the device is
resetting or suspending may cause unexpected error as the HW is still
not in a stable state. Prevent this access to guarantee successful
read/write memory operations.

Change-Id: Idbf046e21726ec8d074161f75643f34137d6ec24
Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Lior David <liord@codeaurora.org>
2020-02-09 01:34:32 -08:00
Prakruthi Deepak Heragu
06c03f1e68 drivers: edac: Defer work for the polling EDAC driver
Use the defer work mechanism to poll for errors using a callback function.

Change-Id: Id599a9159098a8b13df386290b3e46939831a4ff
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-02-08 15:14:23 -08:00
Rohit Vaswani
b6541efc03 edac: Allow the option of creating a deferrable work for polling
EDAC provides a mechanism to poll for errors using a callback function
and uses a delayed timer to schedule it. Provide an option to create
a deferrable timer if the error checking is not worth waking up
the cpu from idle.

Change-Id: Ia25216323eabf7fa4b894897c950414006921f3f
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
2020-02-08 15:13:16 -08:00