Commit graph

889,375 commits

Author SHA1 Message Date
Isaac J. Manjarres
84d7f52bcb mm: Allow pages that are swapped in to come from the movable zone
Pages that are swapped out are pages that can reside in the movable
zone. However, when they are swapped in, they are restricted to the
normal zone, when they can reside in the movable zone again. Set the
GFP flags accordingly for swapin allocations, so that they can be
satisfied from the movable zone.

Change-Id: I25919034a5197a1c4f830e498d32347aa460187f
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-08-19 10:36:06 -07:00
qctecmdr
8f5109a94b Merge "usb: XHCI: Implement xhci_handshake_check_state() API" 2020-08-19 01:50:26 -07:00
qctecmdr
a8241c9e7e Merge "sched/walt: Improve the scheduler" 2020-08-18 21:37:56 -07:00
qctecmdr
47b5189297 Merge "msm: adsprpc: prevent use-after-free from fastrpc ctx" 2020-08-18 19:16:21 -07:00
Edgar Flores
0739405b7b msm: adsprpc: prevent use-after-free from fastrpc ctx
Avoid using fastrpc ctx after sending rpmsg since it may get
free during async session. During async fastrpc session there
is race condition where after sending rpmsg the ctx could be
free from async query thread.

Change-Id: I5738163096e429f19bd9b495699a1897083737b3
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2020-08-18 16:01:12 -07:00
qctecmdr
85082b1d7a Merge "pinctrl: qcom: spmi-gpio: Add support for PMX65" 2020-08-18 14:18:23 -07:00
qctecmdr
ba763c41c2 Merge "msm: kgsl: Fix HFI start failed on SA8155" 2020-08-18 14:18:22 -07:00
qctecmdr
a290f5efa9 Merge "msm: kgsl: Add suspend_context to gmu based targets" 2020-08-18 14:18:22 -07:00
qctecmdr
580c2daadd Merge "mhi: core: Add checks for bhi and bhie offsets" 2020-08-18 14:18:21 -07:00
qctecmdr
bce0c19d8f Merge "aarch64: ABI: add kernel_restart to GKI KMI symbol list" 2020-08-18 14:18:21 -07:00
qctecmdr
adbbbc5659 Merge "msm: kgsl: Add A660 specific registers to snapshot" 2020-08-18 11:52:27 -07:00
Konstantin Dorfman
36b3a8c418 aarch64: ABI: add kernel_restart to GKI KMI symbol list
Change adds kernel_restart to qcom KMI symbol list and updates
the ABI snapshot, as it is used by spss_utils driver.

Change-Id: Iedb73f0aeb092989461078cc403695e24fbe8146
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2020-08-18 21:29:05 +03:00
Manu Gautam
d279640225 mhi: core: Add checks for bhi and bhie offsets
Bail out if device returns invalid bhi/bhie offsets.

Change-Id: Ifc92c53a4c1f7c951721cbec0b1d7285cf19cd72
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-08-18 10:26:26 -07:00
Manu Gautam
775e234a67 cnss2: Update device MMIO region length for MHI core
It can be used by MHI core to have a sanity check for
bhi and bhie offsets reported by device.

Change-Id: Ibcdef53a4c1f7c951721cbec0b1d7285cf19cd72
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-08-18 10:26:04 -07:00
Hemant Kumar
c61705f68b mhi: core: Skip RDDM download if execution env is unknown
If mhi_get_exec_env API returns MHI_EE_MAX skip RDDM download.
API returns this value if BHI offset read failed or BHI_EXECENV
register read fails. This indicates the underlying transport is
unresponsive so there is no need to trigger RDDM using SYSERR
or request SOC reset.

Change-Id: I0cc85af84f19b425c94fe8aea987ab03af6de032
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-08-18 10:23:27 -07:00
Hemant Kumar
6e8d77cd33 mhi: core: Add NULL check in mhi_get_exec_env
In case power up failed due to incorrect bhi offset
bhi pointer in mhi controller remains NULL. Later if
MHI controller forces RDDM it checks the execution
environment by accessing the BHI offset. This results
into NULL pointer dereference. Fix this by adding NULL
check for both mhi controller and bhi pointer before
reading the BHI offset.

Change-Id: I93f8918d7d595a77a5c8bcb6fd610f1a2b484fc4
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-08-18 10:23:06 -07:00
qctecmdr
fcbd6f2815 Merge "scsi: ufs: Fix some racing problems in ufshcd_shutdown()" 2020-08-18 09:26:21 -07:00
qctecmdr
cef19e9ec9 Merge "msm: kgsl: skip if requested address doesn't fall in the svm range" 2020-08-18 07:04:31 -07:00
qctecmdr
5927fac03f Merge "soc: qcom: add microdump collector" 2020-08-18 04:33:28 -07:00
qctecmdr
216a9df69f Merge "usb: xhci: Reduce command abort handshake timeout" 2020-08-18 04:33:28 -07:00
qctecmdr
4cf691d25d Merge "mhi: core: Set bhi and bhie to NULL upon power down" 2020-08-18 04:33:28 -07:00
qctecmdr
53582a2632 Merge "msm: kgsl: Mark the scratch buffer as privileged" 2020-08-18 04:33:27 -07:00
Pavankumar Kondeti
dbb563984a sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I5e27121c3625d21d0a5abedcda9bcbfc947f5359
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-08-18 12:22:45 +05:30
Hemant Kumar
3e0d1c8b21 mhi: core: Set bhi and bhie to NULL upon power down
Set the bhi and bhie pointers to NULL as part of clean
up. This makes sure that stale pointers are not accessed
in case the bhi or bhie is failed to initialize during
power up.

Change-Id: Iddbd3a8234ff4d384ab03081479d55faf10d9443
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-08-17 23:18:36 -07:00
Shawn Shin
3eadb769c6 soc: qcom: add microdump collector
Collects data from SMEM region when modem crashes
and stores it under /dev to expose to user space.

Change-Id: I6b79a2ea7f7d9d7507e8c44dd1d385a185759ac1
Signed-off-by: Shawn Shin <shshin@codeaurora.org>
2020-08-17 21:52:12 -07:00
qctecmdr
4c39afb36f Merge "drivers: thermal: don't reset ops pointer in of-thermal sensor unregister" 2020-08-17 21:17:59 -07:00
qctecmdr
5277fb38c4 Merge "sched/walt: Improve the scheduler" 2020-08-17 21:17:58 -07:00
qctecmdr
18046fc5a8 Merge "msm: kgsl: Add clocks to access KGSL SMMU register space" 2020-08-17 17:03:51 -07:00
qctecmdr
627cf1be0c Merge "clk: qcom: rpmh: Add support for RPMH clocks for sdxlemur" 2020-08-17 17:03:50 -07:00
qctecmdr
7fcf64dcc2 Merge "defconfig: Add support for ARM_APPENDED_DTB for sdxlemur" 2020-08-17 17:03:50 -07:00
qctecmdr
214b829cea Merge "cnss2: Check for FW / IMS status for WFC QMI messages" 2020-08-17 17:03:50 -07:00
qctecmdr
5395c50952 Merge "abi: Update qcom whitelist for netdev_update_features" 2020-08-17 17:03:49 -07:00
qctecmdr
52576b3bfe Merge "scsi: ufs: Add UFS_DEVICE_QUIRK_PA_HIBER8TIME quirk" 2020-08-17 17:03:49 -07:00
qctecmdr
296c1494f0 Merge "arch: arm64: Add RCU related configs for lahaina" 2020-08-17 17:03:48 -07:00
Raghavendra Rao Ananta
7c6e5b50c6 arch: arm64: Add RCU related configs for lahaina
Enable RCU NOCB_CPU and FAST_NO_HZ options for the lahaina. These configs
are needed to avoid frequent cpu wake up for processing rcu callbacks.

Whenever LPM governor driver has requested for sleep length
tick_nohz_get_sleep_length tries to find the next event from
tick_nohz_next_event function.

static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu)
{
...
        if (rcu_needs_cpu(basemono, &next_rcu) || arch_needs_cpu() ||
            irq_work_needs_cpu() || local_timer_softirq_pending()) {
                next_tick = basemono + TICK_NSEC;
        } else {

tick_nohz_next_event calls rcu_needs_cpu to find whether future
non-offloaded RCU-related work need to be done by the current CPU
or not. If any non-offloaded future callbacks are present rcu
framework requests the cpu to wake up for every tick period to
process the callbacks.

When CONFIG_FAST_NO_HZ is defined rcu_needs_cpu function checks whether
any callbacks are ready to process or not. If there are no ready
call backs and no non-offloaded callbacks pending for this CPU, RCU
doesn't need the CPU and returns KTIME_MAX for sleep length. Another
important thing is that, if CPU has lazy callbacks or future non-offload
RCU callbacks, rcu framework try to advance those callbacks and allows
the CPU to enter dyntick-idle mode.

RCU_NOCB_CPU config option helps to offload callback invocation from
the set of CPUs to kthread ("rcuox/N") and reduce OS jitter for
aggressive high performance computing workloads.

Change-Id: I47cdd2a3528e3a447a6909bf3f840ee8a3dd4b1e
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-17 14:28:36 -07:00
qctecmdr
67629947f6 Merge "arm: defconfig: Remove I3C driver support" 2020-08-17 14:28:17 -07:00
qctecmdr
653c55aeb1 Merge "msm: kgsl: Correctly clean up dma buffer attachment in case of error" 2020-08-17 14:28:17 -07:00
qctecmdr
a05f38a3be Merge "clk: qcom: gcc-lahaina: Enable clocks for pm8008 by default" 2020-08-17 14:28:17 -07:00
qctecmdr
e0a3bc6a40 Merge "msm: kgsl: Kick dcvs in idle thread for gmu targets" 2020-08-17 14:28:16 -07:00
qctecmdr
07ccc41cfc Merge "msm: adsprpc: Race conditions when handling the ADSP SSR" 2020-08-17 14:28:16 -07:00
qctecmdr
9f148ff2fe Merge "input: touchscreen: synaptics_tcm: defer probe if panel not found" 2020-08-17 14:28:16 -07:00
Urvashi Agrawal
087af65bee msm: kgsl: Add A660 specific registers to snapshot
Some registers only exist on A660, add logic to capture
these into the snapshot.

Change-Id: I21bef72768cdb9597906ae9996c8988de1a00f7f
Signed-off-by: Urvashi Agrawal <urvaagra@codeaurora.org>
2020-08-17 13:14:44 -07:00
Asutosh Das
8941234ea1 scsi: ufs: Add UFS_DEVICE_QUIRK_PA_HIBER8TIME quirk
This adds the quirk to increase the hibern8 timeout
on the host.

Change-Id: I716124224d67942e257e17e7482ce9f32b8a5744
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-08-17 10:54:45 -07:00
Manaf Meethalavalappu Pallikunhi
9b7dfe02f6 drivers: thermal: don't reset ops pointer in of-thermal sensor unregister
The thermal zone ops pointer is allocated and initialized during
building thermal zone at early boot. The framework expects this
variable is valid as long as that thermal zone exist. Later if
a sensor is registered to thermal zone and then unregistered the
same due to some reason, it resets this thermal zone ops variable.
It leads to unexpected behaviour whenever thermal framework tries
to use it.

Don't reset thermal zone ops variable during of-thermal sensor
unregister context.

Change-Id: I468cdfe08f4cde3fb1258ca335fe2ee8b457e014
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2020-08-17 20:00:33 +05:30
qctecmdr
49eed0fdf5 Merge "msm: kgsl: Fix GBIF Halt ack timeout for a619_holi" 2020-08-17 03:53:41 -07:00
qctecmdr
d3a8cb033c Merge "msm: kgsl: Fix GMEM base for A615 family GPUs" 2020-08-17 03:53:41 -07:00
qctecmdr
9fa4e103d2 Merge "leds: qti-flash: Handle error return path properly" 2020-08-17 03:53:40 -07:00
qctecmdr
a553896366 Merge "USB: gadget: composite: Allow bMaxPower=0 if self-powered" 2020-08-17 03:53:40 -07:00
qctecmdr
3f31685c9d Merge "arm64: defconfig: Enable eMMC/SD card on holi" 2020-08-17 03:53:39 -07:00
qctecmdr
bc92334730 Merge "msm: adsprpc: Clean buffers on remote invocation failure" 2020-08-17 03:53:38 -07:00