Commit graph

892,914 commits

Author SHA1 Message Date
Veera Vegivada
53e67930f0 arm64: defconfig: Enable SM8150 interconnect driver
Enable the SM8150 interconnect driver so that consumers are
able to obtain their path handles properly.

Change-Id: Ie099accf2dbfa587f23dd9f434bf04c7eca6b348
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-08 11:27:39 +05:30
Anirudh Ghayal
c7f8cad07f power: smb1355: Extend minoff-time and dead-time for SMB1355
To improve OVP handling increase the min-offtime and dead-time
as per hardware recommendation.

Change-Id: I28040808d6c114b718aad0e0ab63554683e7746f
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-12-08 09:24:08 +05:30
Subbaraman Narayanamurthy
1ed4517548 iio: adc: qcom-spmi-adc5: add an unique irq name
Currently, interrupts of qcom-spmi-adc5 driver are registered
with name "pm-adc5". However on platforms with multiple PMICs
that can have different ADC types (adc5 or adc7), this naming
is not user friendly when looking at interrupt data. Add a name
that looks unique for different adc types so that they can be
interpreted easily.

Change-Id: Iac1080dc8e02d278b30cff0d61eca40e081bc306
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-12-07 19:09:23 -08:00
Mayank Rana
06d5ffb0f1 sound: usb: Unmap secondary event ring before freeing
USB secondary event ring is being freed before it is being unmap.
Fix this by calling xhci_sec_event_ring_cleanup() after unmapping.
Also move secondary event ring cleanup and unmap related duplicate
code into one API.

Change-Id: I420f53d9e3ad6aa7b310dc354c7d35ce139afbe9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-12-07 14:03:05 -08:00
rbandi
e84d2834a2 HID: qvr: Remove device pointer on disconnect
Make local device pointer NULL when .remove is
invoked.

Change-Id: I5bf91367b633abf79cbc60ef5bdf93cca955902c
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-12-07 09:07:45 -08:00
Vijayavardhan Vennapusa
5455109dc4 USB: phy-msm-qusb: Set ref_clk_src to NULL if clk_get fails
Set ref_clk_src to NULL if clk_get() API fails to get handle
in probe(), else it results in invalid pointer derefernce.

Change-Id: I1ba5f64bc2a691923cbac1c7b4e9288b6071ff57
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2020-12-07 16:12:48 +05:30
Santosh Mardi
a2bf9edd8b drivers: soc: qcom: rimps_memlat: free attribute pointer
Attribute pointer used while creating the common
and monitor pmu events, needs to be freed while returning
from function.

Change-Id: I7862e8ec81754102d2700cac03bb739c9bcdf32b
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-12-07 02:37:43 -08:00
Santosh Mardi
e68fe94391 drivers: soc: qcom: rimps_memlat: update available frequencies format
Update available freuqency output format, previously entries in the
output is separated with new line, update this format to have space
after each entry instead of new line.

Also update the available frequency node from available_freq to
available_frequencies.

Change-Id: I2b2409168713477cbc801c8837a11c5c4613e996
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-12-07 02:37:37 -08:00
Kavya Nunna
93af365ff2 defconfig: Enable SPMI PMIC configuration for sdxnightjar
Enable SPMI PMIC defconfigs for sdxnightjar for the SPMI
devices.

Change-Id: I36f12e942f8dc980f53024b5ae3585a428ec3589
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2020-12-07 12:32:17 +05:30
Hareesh Gundu
d9b978c086 msm: kgsl: Don't access addr_mode_cntl registers for holi through host
Sometimes probably crashdump timeout scenarios accessing addr_mode_cntl
registers through the host path resulting to slave timeout issue.
Hence revert this commit 'fca32c53c237("msm: kgsl: Add addr_mode_cntl
registers for legacy snapshot for holi gpu")'.

Change-Id: I771d9aecad69dd03d7e2ab771aee164c1cdfeabd
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-12-06 21:44:26 -08:00
Monika Singh
3ba06afa44 firmware: qcom: tzbsp_diag info not required for qsee_log
In case of Qsee_log we are not using the tzbsp_diag_buf
so there is no need to copy that.

Change-Id: Iabffd1708507e16ef8d75102637fd45bb7182549
Signed-off-by: Monika Singh <monising@codeaurora.org>
2020-12-07 09:19:13 +05:30
Anirudh Ghayal
ed3ba9ec79 power: smb1398-charger: Toggle UVLO-config on USB removal and shutdown
To prevent leakage in ship-mode toggle OVP_IGNORE_UVLO after
USB-removal and during shutdown.

Change-Id: Idb482dd63d4939be5b19594385c642a61531e662
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-12-06 17:33:13 +05:30
qctecmdr
33569a19db Merge "iio: adc: Add support to read ADC5 current channels" 2020-12-05 23:42:41 -08:00
qctecmdr
506ffbdc3e Merge "dt-bindings: iio: Add support to read ADC5 current channels" 2020-12-05 23:42:40 -08:00
qctecmdr
cd70e1f455 Merge "input: touchscreen: nt36xxx: Fix Propagation" 2020-12-05 23:42:40 -08:00
qctecmdr
0249e58009 Merge "sched/walt: Improve the scheduler" 2020-12-05 23:42:40 -08:00
qctecmdr
ca8993b29a Merge "block: disable multi-page bvec" 2020-12-04 22:41:50 -08:00
Bao D. Nguyen
6809250dff scsi: ufs: Correct H8_ENTER_COND_MASK
Correct the parameters passed to GENMASK macro
for H8_ENTER_COND_MASK.

Change-Id: If9997c7fb18d28aacce58697666c1c36a56b9a68
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-12-04 11:31:44 -08:00
qctecmdr
2376e2a4b4 Merge "defconfig: Enable EUD on sdxlemur" 2020-12-04 11:18:01 -08:00
qctecmdr
b5aa72cc8f Merge "msm: adsprpc: Change perf module design" 2020-12-04 11:18:01 -08:00
Blagovest Kolenichev
2ae07b4ea0 Merge android11-5.4.61+ (559c23e) into msm-5.4
* refs/heads/tmp-559c23e:
  ANDROID: vmlinux.lds.h: merge compound literal sections
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: ABI: update allowed list for QCOM
  ANDROID: GKI: add allowed list for Exynosauto SoC
  ANDROID: GKI: update allowed list for Exynosauto SoC

Change-Id: Ie14c0cd26fa28df04f104ce5249e4cebc7e43083
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-12-04 11:10:37 -08:00
qctecmdr
5fd6cfbf0f Merge "msm: kgsl: Including drawobj flag for msm-perf api" 2020-12-04 05:45:45 -08:00
qctecmdr
8b2cfb34e8 Merge "usb: gadget: Don't giveback request if ep command times out" 2020-12-04 05:45:44 -08:00
qctecmdr
7b64f46b79 Merge "iommu: arm-smmu: defer tlbi invalidation" 2020-12-04 05:45:44 -08:00
qctecmdr
f1971555ee Merge "proc/meminfo: update offline region in Memtotal" 2020-12-04 05:45:44 -08:00
qctecmdr
93fe7227e1 Merge "drivers: soc: ddr_stats: Initialize the uninitialized variable" 2020-12-04 05:45:44 -08:00
qctecmdr
5116273a38 Merge "drivers: staging: ion: mark secure page private" 2020-12-04 05:45:43 -08:00
qctecmdr
a3ecd679dc Merge "msm: ADSPRPC: Handle Null pointer De-reference" 2020-12-04 05:45:43 -08:00
qctecmdr
75e68a7d23 Merge "soc: qcom: glink_probe: use lock while sending ssr notification" 2020-12-04 05:45:43 -08:00
Prudhvi Yarlagadda
8d08ca8e48 serial: msm_geni_serial: Correct start rx sequence
Correct start_rx sequence to keep the dma buffers available
before starting rx engine.
This is needed to handle rx data which might come between
starting of rx engine and having dma buffer available.

Change-Id: I194890ba8f51d6a917d6b1682f6b21ca443ca38b
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2020-12-04 05:17:02 -08:00
Aman Mehta
b712bdb81b msm: kgsl: Including drawobj flag for msm-perf api
The inclusion of draw object flag for msm_perf_events_update.
Since user-space thread is triggered based on kgsl events
this will be vital to distinguish the events based on frame
states and prevent undesirable user-space thread wake-ups.

Change-Id: I28040808d6c114b718aad0e0ab63554683e77460
Signed-off-by: Aman Mehta <amanmeht@codeaurora.org>
2020-12-04 01:24:32 -08:00
qctecmdr
3402a7974e Merge "mailbox: apcs-ipc: Add compatible string for sdxnightjar" 2020-12-04 01:05:25 -08:00
qctecmdr
68d460cb7d Merge "haven: remove config to disable hyp uart" 2020-12-04 01:05:24 -08:00
qctecmdr
6efa9b3e62 Merge "defconfig: enable MDF core for WCD support for sdxnightjar" 2020-12-04 01:05:24 -08:00
qctecmdr
e73c8ff3a8 Merge "input: touchscreen: nt36xxx: add new touch driver" 2020-12-04 01:05:23 -08:00
Asish Bhattacharya
3cbf423423 defconfig: enable MDF core for WCD support for sdxnightjar
Enable the Kconfig to expose mfd APIs.

Change-Id: Id401ba94222df508a901c330443b705b35265883
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2020-12-04 07:13:14 +05:30
Asish Bhattacharya
9fc7c22ea4 msm: mfd: Enable MFD for WCD support
Add support to enable MFD core.

Change-Id: I512c2024498ff426fb45127d64b7035d63c65694
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2020-12-04 07:12:57 +05:30
Murali Nalajala
feb7397985 haven: remove config to disable hyp uart
Hyp uart is default disabled from ABL now. There is no need of
CONFIG_HH_DISABLE_UART option anymore. Hyp uart now can be controlled
using DEBUG_FS interface.

Change-Id: Ie1a0986399d30b89bf62468a23633994c8d6b11b
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-03 17:19:56 -08:00
Raghavendra Rao Ananta
ddcb1352e3 pinctrl: qcom: Add flexibility to disable the wakeup capability
By default, the system firmware enables the mpm wakeup functionality
of all the supported GPIOs. However, certain usecases demand that
this capability be disabled on certain gpios. Hence, provide a
generic interface to disable the GPIOs as needed.

Change-Id: I3b051bf676a157410880a3c596b784212a927a36
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-12-03 16:44:28 -08:00
Murali Nalajala
704f8b0a03 haven: ctrl: add debugfs interface to control hyp uart
Hyp uart is disabled default today in ABL. Provide debugfs
interface to users when they want to enable hyp uart to
debug hypervisor and VM issues.

Change-Id: I5e2c0501ed309a65c9dff1304b2e88e0d58917ae
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-03 16:38:09 -08:00
Siddartha Mohanadoss
4a4ec3c5af mhi_dev: add MHI device driver snapshot
Snapshot of PCIe MHI device driver as of msm-4.14.
'commit <adeff59> (""drivers: clk: msm:
fix compilation for non DEBUG_FS build"")'.

Fix several warnings as part of propagation to 5.4.

Change-Id: I48b88d8e8900cb6e166c24ad2322a6fa2ec6fb8a
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-12-03 13:23:57 -08:00
Jeya R
7041312492 ADSPRPC: Enable ram dumps collection
Enabled ram dump collection for CMA memory
that is used for remote heap and dynamic loading memory.

Change-Id: I07fe071ee90b39204822aee368b52b7e63b5600d
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
Signed-off-by: Vamsi krishna Gattupalli <vgattupa@codeaurora.org>
2020-12-03 23:24:10 +05:30
qctecmdr
b0d1963b89 Merge "arm64: defconfig: Add support for GPUCC for YUPIK" 2020-12-03 06:20:07 -08:00
qctecmdr
11b5bc34f4 Merge "usb: dwc3-msm: Avoid access of gsi_reg for non-GSI targets" 2020-12-03 06:20:07 -08:00
qctecmdr
5161b65167 Merge "cnss_utils: Compile wlan service file as part of GPL module" 2020-12-03 06:20:06 -08:00
qctecmdr
d3cbb54d34 Merge "msm: ipa: Support hardware accelerated DIAG over qdss with ipa_fmwk" 2020-12-03 06:20:06 -08:00
qctecmdr
f79ed0dbae Merge "selinux: move ibpkeys code under CONFIG_SECURITY_INFINIBAND" 2020-12-03 06:20:06 -08:00
qctecmdr
bdd0d3a7cc Merge "drivers: soc: qcom: Check if readq_relaxed macro is defined" 2020-12-03 06:20:05 -08:00
Linus Torvalds
16a3a08dc9 mm: fix misplaced unlock_page in do_wp_page()
Commit 09854ba94c6a ("mm: do_wp_page() simplification") reorganized all
the code around the page re-use vs copy, but in the process also moved
the final unlock_page() around to after the wp_page_reuse() call.

That normally doesn't matter - but it means that the unlock_page() is
now done after releasing the page table lock.  Again, not a big deal,
you'd think.

But it turns out that it's very wrong indeed, because once we've
released the page table lock, we've basically lost our only reference to
the page - the page tables - and it could now be free'd at any time.  We
do hold the mmap_sem, so no actual unmap() can happen, but madvise can
come in and a MADV_DONTNEED will zap the page range - and free the page.

So now the page may be free'd just as we're unlocking it, which in turn
will usually trigger a "Bad page state" error in the freeing path.  To
make matters more confusing, by the time the debug code prints out the
page state, the unlock has typically completed and everything looks fine
again.

This all doesn't happen in any normal situations, but it does trigger
with the dirtyc0w_child LTP test.  And it seems to trigger much more
easily (but not expclusively) on s390 than elsewhere, probably because
s390 doesn't do the "batch pages up for freeing after the TLB flush"
that gives the unlock_page() more time to complete and makes the race
harder to hit.

Fixes: 09854ba94c6a ("mm: do_wp_page() simplification")
Link: https://lore.kernel.org/lkml/a46e9bbef2ed4e17778f5615e818526ef848d791.camel@redhat.com/
Link: https://lore.kernel.org/linux-mm/c41149a8-211e-390b-af1d-d5eee690fecb@linux.alibaba.com/
Reported-by: Qian Cai <cai@redhat.com>
Reported-by: Alex Shi <alex.shi@linux.alibaba.com>
Bisected-and-analyzed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Tested-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: be068f29034fb00530a053d18b8cf140c32b12b3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[zhenhuah@codeaurora.org: resolved conflict]
Change-Id: I775e3706aa5d6be6b8352e8f59cb10e8d9326c5c
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2020-12-03 21:35:12 +08:00
Peter Xu
305560476f mm/gup: Remove enfornced COW mechanism
With the more strict (but greatly simplified) page reuse logic in
do_wp_page(), we can safely go back to the world where cow is not
enforced with writes.

This essentially reverts commit 17839856fd58 ("gup: document and work
around 'COW can break either way' issue").  There are some context
differences due to some changes later on around it:

  2170ecfa7688 ("drm/i915: convert get_user_pages() --> pin_user_pages()", 2020-06-03)
  376a34efa4ee ("mm/gup: refactor and de-duplicate gup_fast() code", 2020-06-03)

Some lines moved back and forth with those, but this revert patch should
have striped out and covered all the enforced cow bits anyways.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: a308c71bf1e6e19cc2e4ced31853ee0fc7cb439a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[zhenhuah@codeaurora.org: resolve trivial merge conflict]
Change-Id: I1e72c780c74b324efe6dbeed17ab131657254f16
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2020-12-03 21:23:22 +08:00