Commit graph

892,914 commits

Author SHA1 Message Date
Peter Xu
6b895253cb mm/ksm: Remove reuse_ksm_page()
Remove the function as the last reference has gone away with the do_wp_page()
changes.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: 1a0cf26323c80e2f1c58fc04f15686de61bfab0c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Change-Id: Icd11ae747c4b0b9ddd81b8b3c5e463ed88abea9c
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2020-11-30 18:16:52 -08:00
Linus Torvalds
f63da7afd7 mm: do_wp_page() simplification
How about we just make sure we're the only possible valid user fo the
page before we bother to reuse it?

Simplify, simplify, simplify.

And get rid of the nasty serialization on the page lock at the same time.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[peterx: add subject prefix]
Signed-off-by: Peter Xu <peterx@redhat.com>
Git-commit: 09854ba94c6aad7886996bfbee2530b3d8a7f4f4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[zhenhuah@codeaurora.org: resolve trivial merge conflicts]
Change-Id: I73dc102cb02d751d497bdf3cc39179a4bfdc5a54
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2020-12-01 10:15:23 +08:00
Mihir Shete
5c2f214753 cfg80211: export regulatory_hint_user() API
This is to help the hardware configured in world
roaming mode to save power when not connected to
any AP.

CRs-Fixed: 542802
Change-Id: Ia643d0e9848dcd486832973bd6dd186edd7bd4ea
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
Signed-off-by: Will Huang <wilhuang@codeaurora.org>
2020-12-01 09:17:10 +08:00
Hemant Kumar
1048d7aacc pci: msm: Dump PCIe registers upon WAKE assertion
In case device asserts WAKE due to timeout in exiting L1,
dump PCIe registers if link is in enabled state and drv is
supported.

Change-Id: I3d2edf1a42ef3a00e57418b2744a87d2693c698b
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-11-30 12:02:15 -08:00
Blagovest Kolenichev
dcc60d5081 Merge android11-5.4.61+ (4271ad6) into msm-5.4
* refs/heads/tmp-4271ad6:
  BACKPORT: mac80211_hwsim: add frame transmission support over virtio This allows communication with external entities.
  ANDROID: ABI: add symbols of sprd_ion.ko and snd-soc-sprd-codec-sc2730.ko to unisoc
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: GKI: Update abi_gki_aarch64_exynos
  ANDROID: GKI: enable CONFIG_SUN4I_TIMER
  ANDROID: uid_sys_stats: report uid_cputime stats in microseconds
  ANDROID: ABI: Update allowed list for QCOM
  UPSTREAM: Documentation: arm64: document support for the AMU extension
  UPSTREAM: arm64/kvm: disable access to AMU registers from kvm guests
  UPSTREAM: arm64: trap to EL1 accesses to AMU counters from EL0
  BACKPORT: arm64: add support for the AMU extension v1
  UPSTREAM: block: fix get_max_io_size()

Change-Id: I5d4e624fc9e2c13e89c3c1c3a9b8e6ee3c7fabe8
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-11-30 11:53:30 -08:00
Narendra Muppalla
f4f92f0001 ANDROID: ABI: Update allowed list for QCOM
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function drm_crtc* drm_crtc_from_index(drm_device*, int)'

Bug: 174476670
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
Change-Id: Ice526ba5c386d91b2eccf8b48dadb553b816aaa8
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2020-11-30 10:59:54 -08:00
Veera Vegivada
29c930cf57 interconnect: qcom: Add OSM L3 support on SM8150
Add Operating State Manager (OSM) L3 interconnect provider support on
SM8150 SoCs.

Change-Id: I0e6c48fd04c16711dfc9a29ad27471e7f5464efc
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-11-30 19:19:27 +05:30
Veera Vegivada
81a716faf0 dt-bindings: interconnect: Add OSM L3 DT bindings
Add bindings for Operating State Manager (OSM) L3 interconnect provider
on SM8150 SoCs.

Change-Id: I8110fad97c65425f88afef9f661c60a514b8d36d
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-11-30 19:19:17 +05:30
Sibi Sankar
e6de432ee6 interconnect: qcom: Add OSM L3 interconnect provider support
On some QTI SoCs, Operating State Manager (OSM) controls the
resources of scaling L3 caches. Add a driver to handle bandwidth
requests to OSM L3 from CPU on SDM845 SoCs.

Change-Id: If210b7d996428b66996092851b5987f870a650db
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Link: https://lore.kernel.org/r/20200227105632.15041-4-sibis@codeaurora.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Git-commit: 5bc9900addafb99163232dbb970eb07661ae4178
Git-repo: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next
[vvegivad@codeaurora.org: Added aggreate function and minor modifcations as per the framework]
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-11-30 19:19:09 +05:30
Sibi Sankar
401b09489b dt-bindings: interconnect: Add OSM L3 DT bindings
Add bindings for Operating State Manager (OSM) L3 interconnect provider
on SDM845 SoCs.

Change-Id: I9626f7824d8a84825994cc76e1856a5653ba1719
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200227105632.15041-3-sibis@codeaurora.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Git-commit: 7a077f7fdaa4fa641c43a554db2811c62048d7f4
Git-repo: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next
[vvegivad@codeaurora.org: Separated documentation.]
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-11-30 19:19:00 +05:30
Veera Vegivada
51be9de76c clk: qcom: Add support for NPU QDSS clocks
QDSS clocks are required for npu use cases
hence enable them.

Change-Id: I741d65677b46d2b3ca4d46ab14f4ee03ae262555
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-11-30 19:18:52 +05:30
Vipin Deep Kaur
aad84d1d48 spi: spi-msm-geni: Bypass hw_version read for SVM
QUP common registers should not be accessed from SVM as that
memory is assigned to PVM. So, bypass the reading of hw version
registers and rely on PVM for the specific HW initialization done
based on different hw versions.

Change-Id: I1f18c80aaf143daf4da1402aa617d3b8f52f9b95
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-11-30 04:09:31 -08:00
Aasir Rasheed
5c518e884c icnss: Update FW_INIT_DONE QMI indication with hang event params
Update FW_INIT_DONE QMI indication with hang event address offset
and length.

Change-Id: I4a9c9f796329c01feefd4188f0894a3fe4462584
Signed-off-by: Aasir Rasheed <arasheed@codeaurora.org>
2020-11-30 03:52:19 -08:00
Maya Erez
87592d6fab mmc: core: Add partial initialization support
This change adds the ability to partially initialize
the MMC card by using card Sleep/Awake sequence (CMD5).
Card will be sent to Sleep state during runtime/system suspend
and will be woken up during runtime/system resume.
By using this sequence the card doesn't need full initialization
which gives time reduction in system/runtime resume path.

Change-Id: I0ece06feb8a5c0f4837126f44934d665c55294a2
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
2020-11-30 16:38:25 +05:30
Lijuan Gao
05ceedd7e6 defconfig: Add support for compiling sdxnightjar target
Add generic defconfig and config option to support
SDXNIGHTJAR target.

Change-Id: I0251f530f15b583c5a5e1d30341fd548f8878512
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
2020-11-30 18:58:30 +08:00
Jagadeesh Kona
ffe51b3e00 arm64: defconfig: Add support for GPUCC for YUPIK
Enable Graphics clock controller for YUPIK.

Change-Id: I665620678ac7c3b761ce8bd0cf28bba5f5bd7d1f
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-11-29 08:44:45 -08:00
qctecmdr
cfcc5550df Merge "mmc: allow setting slot index via device tree alias" 2020-11-28 17:41:45 -08:00
qctecmdr
4d6092f03d Merge "ion: Restore secure system heap buffers' heap pointer after being freed" 2020-11-28 13:48:04 -08:00
qctecmdr
2247d97c76 Merge "clk: qcom: rpmh: Add support for PMIC clocks for YUPIK" 2020-11-28 00:00:47 -08:00
qctecmdr
457deee787 Merge "msm: kgsl: Poll GDCSR for holi target to ensure CX collapse" 2020-11-27 19:19:18 -08:00
qctecmdr
0d15c45237 Merge "NFC: Fix possible NULL pointer dereference issue" 2020-11-27 19:19:18 -08:00
qctecmdr
702f23085e Merge "HID: qvr: Fix for potential heap buffer overflow" 2020-11-27 19:19:17 -08:00
qctecmdr
6ceff19f16 Merge "msm: ADSPRPC: Register CMA region for minidump" 2020-11-27 15:17:16 -08:00
qctecmdr
93e8db43d7 Merge "mem-offline: increment the NR_ISOLATED_ANON stat properly" 2020-11-27 15:17:16 -08:00
qctecmdr
3c3949bc73 Merge "spi: spi-geni-msm: Return from resume without Touching Resources" 2020-11-27 15:17:16 -08:00
qctecmdr
caf87fb20b Merge "coresight-tmc-etr: Reuse the sysfs buf" 2020-11-27 15:17:15 -08:00
qctecmdr
22fe037afd Merge "power: smb1351: Remove parallel support for smb1351" 2020-11-27 15:17:15 -08:00
qctecmdr
192e6256eb Merge "input: qpnp-power-on: Add KPDPWR software debounce for PON_HLOS" 2020-11-27 15:17:15 -08:00
qctecmdr
4f677ecb1b Merge "msm: kgsl: Simplify GBIF halt sequence for stall-on-fault case" 2020-11-27 15:17:14 -08:00
qctecmdr
5cd90ec00f Merge "f2fs: prepare a waiter before entering io_schedule" 2020-11-27 11:18:50 -08:00
qctecmdr
c55f30b9e1 Merge "Bluetooth: Fix bluetooth enable failure for sdxlemur" 2020-11-27 11:18:49 -08:00
qctecmdr
7cd71280fa Merge "clk: qcom: gpucc: Add Support for GPUCC clock driver for YUPIK" 2020-11-27 11:18:49 -08:00
qctecmdr
7a220acaac Merge "mmc: sdhci-msm: Add dbg_state sysfs" 2020-11-27 11:18:49 -08:00
qctecmdr
7347dcaedb Merge "rpmsg: qcom_smd: allow smd create device if remote state is closing" 2020-11-27 11:18:48 -08:00
Taniya Das
d99d8106a2 clk: qcom: rpmh: Add support for PMIC clocks for YUPIK
Add the PMIC clocks required to be requested from clients via RPMH clock
driver.

Change-Id: I75b02fd3283ea0c459c6e28f06cfb45f04ece214
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-11-27 22:52:23 +05:30
Udipto Goswami
61a365b701 usb: gadget: Don't giveback request if ep command times out
Currently driver is giving back requests to gadget even if
the active transfers are not stopped. This might lead the
controller to access the requests which are already unmapped.
This change adds a judgement for giving back the requests to
gadget based on ep command status. Also if ep command times out
and the controller doesn't stop correctly  then mark it as an
error event and restart the USB session.

Change-Id: If32cddddf0544140d5bdf68df9144702e00dc758
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
2020-11-27 20:01:14 +05:30
Matthias Schiffer
8dceb5dc57 mmc: allow setting slot index via device tree alias
With GPIO, UART and others, allow specifying the device index via the
aliases node in the device tree.

On embedded devices, there is often a combination of removable (e.g.
SD card) and non-removable MMC devices (e.g. eMMC).
Therefore the index might change depending on

* host of removable device
* removable card present or not

This makes it difficult to hardcode the root device, if it is on the
non-removable device. E.g. if SD card is present eMMC will be mmcblk1,
if SD card is not present at boot, eMMC will be mmcblk0.

Alternative solutions like PARTUUIDs do not cover the case where multiple
mmcblk devices contain the same image. This is a common issue on devices
that can boot both from eMMC (for regular boot) and SD cards (as a
temporary boot medium for development). When a firmware image is
installed to eMMC after a test boot via SD card, there will be no
reliable way to refer to a specific device using (PART)UUIDs oder
LABELs.

The demand for this feature has led to multiple attempts to implement
it, dating back at least to 2012 (see
https://www.spinics.net/lists/linux-mmc/msg26586.html for a previous
discussion from 2014).

All indices defined in the aliases node will be reserved for use by the
respective MMC device, moving the indices of devices that don't have an
alias up into the non-reserved range. If the aliases node is not found,
the driver will act as before.

This is a rebased and cleaned up version of
https://www.spinics.net/lists/linux-mmc/msg26588.html .

Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
Git-commit: fa2d0aa96941e8dc347e49a04c75468e3002ee20_
Change-Id: I88c11705c8b66022e67b38a64bbc91625357a4bc
Based-on-patch-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lkml.org/lkml/2020/8/5/194
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Ram Prakash Gupta <rampraka@codeaurora.org>
2020-11-27 19:03:58 +05:30
Odelu Kukatla
18619895c6 interconnect: qcom: Add interconnect provider driver for Yupik
Introduce Qualcomm Yupik specific provider driver using the
interconnect framework.

Change-Id: I7de1d01415fab59ca8fd52a019ed15a49ae92491
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-11-27 17:12:41 +05:30
Kiran Gunda
9a93cf3280 input: qpnp-power-on: Add KPDPWR software debounce for PON_HLOS
The PON_HLOS module does not have the PON_DEBOUNCE_CTL register
to read the debounce delay configured for KPDPWR debounce.
This register is present in PON_PBS peripheral. Due to this the
software debounce control logic does not work as expected. To fix
this add support to read the PON_PBS peripheral from PON_HLOS
module by adding PON_PBS register as a second SPMI register base
in device tree node.

Change-Id: I15737a3dc6e8c99cd21531685c41ec1b2752b2ef
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2020-11-26 20:21:19 -08:00
Jishnu Prakash
0e663db261 dt-bindings: iio: Add support to read ADC5 current channels
Add scaling function required to read PMIC5 current ADC channels.

Change-Id: I686296a53093e58c6ce61bdfa55ba1940fdde873
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-11-27 09:23:42 +05:30
Yuanfang Zhang
ecda1097e2 defconfig: sdxlemur: add dependence defconfig
QDSS components depend on "CONFIG_CORESIGHT", so enable it.
Enable "STM_PROTO_BASIC“ to support to write log to /dev/coresight-stm.

Change-Id: Ib8770c9a5c72abe718c814766a0e2d9f4e091524
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-11-26 18:51:39 -08:00
Sahitya Tummala
1bbb4bd9c3 block: disable multi-page bvec
The multi-page bvec is resulting in the performance regression on
UFS devices in sequential read test for upto ~9%. Hence, disable
it as a workaround.

Change-Id: I1dc3f5e710fd1c9a76f32e3144a0081df755ea26
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2020-11-27 07:34:50 +05:30
Deepak Kumar Singh
694313785a rpmsg: qcom_smd: allow smd create device if remote state is closing
Some remote edge initial rx channel state is set to CLOSING, in this
scenario, allow creation of smd device for this edge.

Change-Id: I5937b8f2451630c9ecbe8627ab8817a4ce00e673
Signed-off-by: Suresh Kumar Allam <allamsuresh@codeaurora.org>
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-11-26 22:23:59 +05:30
Isaac J. Manjarres
8980e14194 iommu/arm-smmu: Update the implementation defined page number macros
The macros used for the page numbers do not accurately reflect the
offsets into the implementation defined register space, so update
them accordingly, and use page 7, or implementation defined page 5
for the ARM_SMMU_STATS_SYNC_INV_TBU_ACK register.

Change-Id: I14d2ce69d971f5ff93c2b2ca1f28ec5882169106
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-11-26 07:16:32 -08:00
Archana Sriram
edd53a943b ANDROID: ABI: update allowed list for QCOM
Update the android/abi_gki_aarch64_qcom with recent symbol additions.

Simple change and no need to update the .xml file, as no new symbol
addition.

Bug: 174275677
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Change-Id: Ic96fc5d11ab8d21fadbf85658e374e06dde14d0f
2020-11-26 13:58:16 +00:00
Charan Teja Reddy
3efde2bdaa mem-offline: increment the NR_ISOLATED_ANON stat properly
Increment NR_ISOLATED_ANON when isolate a page so that the same is
decremented when the page migration is successful or when adding pages
back to the lru.

Change-Id: I6879c0029342560496b79d649a77283c767ab08e
Fixes: aa3fa08df4 ("mem-offline: improve the effective utilization of movable zone")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2020-11-26 05:53:11 -08:00
Jishnu Prakash
2749076bc9 regulator: qpnp-amoled: add support to disable pulse skipping
On some customer display panels, touch ghosting can happen due to
a voltage ripple from amoled. Add support to fix this issue, following
HW recommendation, by disabling smart pulse skipping in module
probe and disabling forced PSM when AMOLED is enabled.

Change-Id: Id5886d4cdaf2aa58bc53a874041bfae90374fafb
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-11-26 19:15:33 +05:30
qctecmdr
efc64e396a Merge "interconnect: qcom: Add SM8150 interconnect provider driver" 2020-11-26 05:30:42 -08:00
qctecmdr
2c92659f9e Merge "scsi: ufs: Don't disable core_clk_unipro if the link is active" 2020-11-26 05:30:42 -08:00
qctecmdr
7952df3579 Merge "usb: dwc3: Revert Add support for nominal elastic buffer" 2020-11-26 05:30:42 -08:00