Commit graph

884,133 commits

Author SHA1 Message Date
Laurent Dufour
f783633cc8 mm: introduce CONFIG_SPECULATIVE_PAGE_FAULT
This configuration variable will be used to build the code needed to
handle speculative page fault.

By default it is turned off, and activated depending on architecture
support, SMP and MMU.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Suggested-by: David Rientjes <rientjes@google.com>
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Change-Id: I17123124ec0667a0f0af741a740e5219d278620c
Patch-mainline: linux-mm @ Tue, 17 Apr 2018 16:33:07
[vinmenon@codeaurora.org: disable the feature by default]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-06-09 10:54:37 +05:30
qctecmdr
24ed5bd0dd Merge "ANDROID: GKI: mm: add struct vm_fault fields for SPECULATIVE_PAGE_FAULTS" 2020-06-08 08:54:29 -07:00
qctecmdr
328be0c51b Merge "RTIC: Move selinux_state to a separate 4k" 2020-06-08 08:54:29 -07:00
qctecmdr
6a326ce1dc Merge "msm: adsprpc: Check size with length passed by client" 2020-06-08 04:30:43 -07:00
qctecmdr
bf2d916a9f Merge "soc: qcom: smd-rpm: Support new clocks resources" 2020-06-08 04:30:43 -07:00
qctecmdr
d2340decfd Merge "msm: kgsl: Make GPU core initialization consistent across the list" 2020-06-08 04:30:42 -07:00
qctecmdr
240ed0260c Merge "power: supply: qcom: Add snapshot of SMB5 charger driver" 2020-06-08 04:30:42 -07:00
Preeti Nagar
55c09c9b96 RTIC: Move selinux_state to a separate 4k
We need to relocate selinux_state to a separate 4k page
to enable EL2 Hypervisor to monitor changes to this
variable using ARM stage 2 MMU. We will avoid getting
page faults from un-related data as the MMU granularity
is configured to 4k.

Change-Id: I7d0e5c9eae0a2a65ca9db73e85283e164e20c11c
Signed-off-by: Preeti Nagar <pnagar@codeaurora.org>
2020-06-08 15:49:07 +05:30
Jishnu Prakash
58bfbabe9e power: supply: qcom: Add snapshot of SMB5 charger driver
Add snapshot of qpnp-smb5 charger driver from msm-4.19
as of commit 1bb7bbeb1d09("sched: Fix compilation errors
with !WALT").

Change-Id: Ie7c99bea8887dcb97244e43e7984e2a82d1e5526
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-06-08 02:17:27 -07:00
qctecmdr
85a774ce52 Merge "aarch64: ABI: Update the QCOM whitelist" 2020-06-07 23:35:40 -07:00
qctecmdr
323d9afcfe Merge "soc: qcom: mem-buf: Align allocation sizes to MHP subsection size" 2020-06-07 23:35:39 -07:00
Mohammed Nayeem Ur Rahman
ad1583f391 msm: adsprpc: Check size with length passed by client
Check whether size of fd is greater than or equal to
length passed by client. If its not checked here, client
might access unmapped address on dsp.

Change-Id: I4e176f32b0f263e2f7bf648e03b4ca904479527b
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-06-07 23:07:32 -07:00
Shyam Kumar Thella
3be2db0032 power: supply: Add snapshot of QPNP QG driver and its dependencies
Add snapshot of the qpnp-qg driver as of msm-4.19
'commit 7bbb67403d95 ("Merge: msm_geni_serial: Correct the DMA RX
interrupt logic")'.

Change-Id: If8df8bc75705676006be7172c20469baa1c1dae6
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-06-08 11:26:57 +05:30
Suren Baghdasaryan
e89b2b7f5b ANDROID: GKI: mm: add struct vm_fault fields for SPECULATIVE_PAGE_FAULTS
Two new fields in the struct vm_fault can't easily be excluded using
CONFIG_SPECULATIVE_PAGE_FAULTS. Add them as padding to reduce the
ABI diff between vendors which use SPECULATIVE_PAGE_FAULTS and ACK. This
allows vendors to pick the SPECULATIVE_PAGE_FAULTS feature and still be
ABI compatible with ACK.

Bug: 153715905
Test: build
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
(cherry picked from commit 47e3eb155848872a13ab6ef73a4d0eecac36ce66)
[surenb: kept only struct vm_fault changes and dropped the rest]
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I08dbe38f37fa3e8a0f96f71cb6b2dd8737221da5
Git-commit: a1db93d3a956eae02646e3269f5bb6f3c6fdc7c9
Git-Repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-06-08 10:46:23 +05:30
qctecmdr
cb9b03954c Merge "usb: dwc3: debugfs: Add LPM check for ep_info_register" 2020-06-07 19:33:15 -07:00
qctecmdr
f23a376aa5 Merge "soc: qcom: qti_battery_debug: Add NULL check" 2020-06-07 19:33:15 -07:00
qctecmdr
e2e7b603cc Merge "msm: cvp: poll on cvp lpi status during power down" 2020-06-07 19:33:14 -07:00
qctecmdr
c7786668e6 Merge "arm64: defconfig: change VA bits to 39 from 48" 2020-06-07 19:33:14 -07:00
qctecmdr
94e4bc29fa Merge "defconfig: lahaina: Enable AMOLED ECM driver" 2020-06-07 19:33:14 -07:00
qctecmdr
6d688f0472 Merge "haven: irq: Support lending from other domains" 2020-06-07 19:33:14 -07:00
qctecmdr
abc354e684 Merge "leds: qti-flash: Do not enable flash without the timeout" 2020-06-07 19:33:13 -07:00
qctecmdr
7505c36e78 Merge "cpuidle: lpm_levels: Wakeup biased cpu" 2020-06-07 19:33:13 -07:00
Taniya Das
fa45c0de3a soc: qcom: smd-rpm: Support new clocks resources
Add the clock resource ids required to vote from the smd rpm clock
driver.

Change-Id: Ic224d83ea2aacabd26450498b626ebfc687aad04
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-07 16:36:51 +05:30
Taniya Das
54d68c324d dt-bindings: clock: Update the SMD-RPM clock ID
Add and update new clock IDs for SMD rpm clocks.

Change-Id: I46b711ef26fb3995372009a917f6252d4ec87e98
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-07 16:36:45 +05:30
Rajesh Kemisetti
67e92d19e3 msm: kgsl: Make GPU core initialization consistent across the list
Add missing base reference for GPUs to make them consistent
across the list.

Change-Id: Iaaf9ce83fc21d18f5aea573cabe4c99b1454fc76
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2020-06-07 11:47:02 +05:30
Raghavendra Rao Ananta
6b2f5048ba aarch64: ABI: Update the QCOM whitelist
Update the QCOM whitelist file with additional symbols and
regenerate the snapshot accordingly.

Change-Id: I09c9c91d9d0d1c5bafcb54bd4893f7554c4b8e49
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-06-06 07:57:13 -07:00
Prakruthi Deepak Heragu
21b3dfffb4 tracing: Remove unnecessary DEBUG_FS dependency
As of commit <a5f1397e4b> ("Revert "BACKPORT: tracing: Remove
unnecessary DEBUG_FS dependency""), DEBUG_FS was selected by TRACING.
Remove DEBUG_FS dependency in Tracing kconfig. CONFIG_DEBUG_FS will now
be enabled in QGKI config. Also update the whitelist and abi snapshot.

Change-Id: I8c9e9fb6b97173d6e62f6090712642f18d842888
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-06-05 19:52:25 -07:00
Jack Pham
090d777fe3 usb: dwc3: debugfs: Add LPM check for ep_info_register
Prevent unclocked access if this debugfs parameter is
attempted to be read when USB controller is powered off.

Change-Id: I5a563ea75807d95f0d6d6c5b037db48681d89625
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-06-05 18:28:56 -07:00
Guru Das Srinagesh
1b68d5edc0 soc: qcom: qti_battery_debug: Add NULL check
Ensure that valid memory is allocated for the array of all votables
before an attempt is made to populate it.

Change-Id: I9a0c3e35e345a88560e39d47484348b6c476628d
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-06-05 15:19:43 -07:00
Isaac J. Manjarres
8340c9f96e soc: qcom: mem-buf: Align allocation sizes to MHP subsection size
The allocation code hot-adds the memory from another VM through
the memory hotplug code to create the S1 CPU MMU mappings. The memory
hotplug code can only add memory at a subsection granule, meaning
that all memory requests must be subsection size aligned. Thus,
enforce all allocation requests to be subsection size aligned.

Change-Id: Ia4d3294e36265f0bd956fa42670f2ac8d6974908
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-05 14:32:52 -07:00
Subbaraman Narayanamurthy
4c9179cd12 defconfig: lahaina: Enable AMOLED ECM driver
AMOLED ECM (Embedded Current Measurement) driver helps measure
the display current for OLED panels. Enable it.

Change-Id: I94d729dbfa8b46792afd424333a0bf9c106ffef1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-06-05 13:55:16 -07:00
Elliot Berman
f7c7a20027 haven: irq: Support lending from other domains
Client drivers may lend IRQs with knowledge of only their GPIO interrupt
number, which would not directly have an underlying GIC hwirq. Thus,
tweak RM's understanding of IRQs to be aware of IRQ domains. Now, the
irq backed by GPIO will be translated to GIC domain.

Change-Id: I191d9e072b14f4501f5bbeb5d5263f50e0eef8c1
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-06-05 13:48:40 -07:00
Srinivas Rao L
2c212faa23 cpuidle: lpm_levels: Wakeup biased cpu
If a biased cpu entered shallowest LPM state and
there are no wakeups for it, can stay in the shallowest
state for long.

Program wakeup for the biased CPU to wakeup after the
expected bias window is completed, so that the cpu can
enter a deeper state.

Change-Id: Ic92c779f0f8b1fa85aa8b3afa68d075f8d5d7dd6
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
2020-06-05 23:57:27 +05:30
qctecmdr
28cf0d0908 Merge "kernel: sound: update codec options with block size" 2020-06-05 08:56:45 -07:00
qctecmdr
ca65ecc5c8 Merge "config: Enable TOS and DSCP target support" 2020-06-05 08:56:44 -07:00
qctecmdr
51baf5ad2c Merge "clk: qcom: clk-rcg2: Add support to print rcg's CMD_DFSR register" 2020-06-05 05:06:33 -07:00
qctecmdr
86bb23c4e5 Merge "dwc3: gadget: Don't block doorbell before halting USB controller" 2020-06-05 05:06:32 -07:00
qctecmdr
a455d70f08 Merge "dwc3-msm: Move override usb speed functionality outside edev check" 2020-06-05 05:06:32 -07:00
qctecmdr
65fbcfac6f Merge "usb: dwc3: gsi: Disable GSI wrapper on clearing run_stop" 2020-06-05 05:06:28 -07:00
qctecmdr
5313030298 Merge "sched: Compile cpu_isolated_mask in SCHED_WALT only" 2020-06-05 05:06:27 -07:00
qctecmdr
9c7599702e Merge "defconfig: arm64: Enable Global clock controller for HOLI" 2020-06-05 05:06:27 -07:00
qctecmdr
25a07ed45c Merge "usb: phy: Reset and initialize HSPHY in host mode when EUD is enable" 2020-06-05 05:06:26 -07:00
qctecmdr
4b99be94b6 Merge "hwmon: Add QTI AMOLED ECM driver" 2020-06-05 05:06:26 -07:00
Sharath Chandra Vurukala
bec8ff53c4 config: Enable TOS and DSCP target support
Enable TOS and DSCP target support for Holi target

Change-Id: Ib7fbe8442007160f8158f41ba29613fdf1b7fcd1
Signed-off-by: Sharath Chandra Vurukala <sharathv@codeaurora.org>
2020-06-05 16:16:37 +05:30
qctecmdr
7b7d13e1a5 Merge "drivers: soc: qcom: handle system sleep activities" 2020-06-05 00:39:02 -07:00
qctecmdr
1fa725da96 Merge "clk: qcom: lahaina: Add pll test ctl regs" 2020-06-05 00:39:02 -07:00
qctecmdr
732adf0e7c Merge "clk: qcom: gcc-lahaina: Add USB force_mem_core_on clocks" 2020-06-05 00:39:01 -07:00
qctecmdr
31cb055051 Merge "arm64: configs: Disable DCC console for Lahaina" 2020-06-05 00:39:01 -07:00
qctecmdr
485cd69967 Merge "cpuidle: lpm-levels: Track and predict next rescheduling ipi" 2020-06-04 20:01:38 -07:00
qctecmdr
f071bb5252 Merge "defconfig: lahaina: Enable linux bridge" 2020-06-04 20:01:38 -07:00