Commit graph

892,609 commits

Author SHA1 Message Date
Ashok Vuyyuru
cceceac1d8 firmware: qcom_scm: Check for NULL before dereferencing __scm
The function qcom_scm_mem_protect_region_id dereferences __scm without
checking for NULL and could potentially lead to a NULL pointer exception.
This scenario can happen if the clinet calls qcom_scm_mem_protect_region_id
before qcom_scm driver is even probed. Hence, check for NULL before
dereferencing it.

Change-Id: I1a9eba6d45ba8ebf73da80bca984b4dfad05042e
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-01-04 20:56:54 +05:30
Ashok Vuyyuru
1483d01dc1 msm: Add dataipa to SDXNIGHTJAR compilation
Add IPA to sdx nightjar defconfig file.

Change-Id: Iab97b4384bed2c4e56643ab520179a67ed85ca98
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-12-04 00:48:11 +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
qctecmdr
e14ef833ac Merge "guestvm_loader: isolate cpus when VM is starting" 2020-12-02 16:21:18 -08:00
qctecmdr
1ddf016918 Merge "icnss: Update FW_INIT_DONE QMI indication with hang event params" 2020-12-02 16:21:17 -08:00
qctecmdr
3068283a7a Merge "clk: qcom: Add support for NPU QDSS clocks" 2020-12-02 16:21:17 -08:00
qctecmdr
16577402f7 Merge "coresight: Doesn't save and restore ETMs state while CPU hot-plug" 2020-12-02 16:21:17 -08:00
qctecmdr
858cd7768a Merge "msm: kgsl: Poll a6x crashdumper register memory for status" 2020-12-02 12:33:05 -08:00
qctecmdr
716324595c Merge "icnss2: Add support for host triggered recovery" 2020-12-02 12:33:04 -08:00
qctecmdr
03ee1e4f8a Merge "icnss2: Avoid race between soc wake release threads" 2020-12-02 12:33:04 -08:00
qctecmdr
a9178e5c9b Merge "spi: spi-msm-geni: Bypass hw_version read for SVM" 2020-12-02 12:33:04 -08:00
qctecmdr
9c36b67360 Merge "soc: qcom: Initialize the irq count work item" 2020-12-02 12:33:03 -08:00
qctecmdr
e72d8c95da Merge "defconfig: sdxlemur: add dependence defconfig" 2020-12-02 08:44:35 -08:00
qctecmdr
4420d6ffed Merge "cnss2: pci: Trigger link down recovery if link fails to enter L0" 2020-12-02 08:44:35 -08:00
qctecmdr
ac8cdc9962 Merge "msm: pcie: support configurable number of PARF testbus selectors" 2020-12-02 08:44:34 -08:00
qctecmdr
1db02978e4 Merge "msm: dp: fix no audio over DP on device bootup" 2020-12-02 08:44:34 -08:00
qctecmdr
e10adfe482 Merge "regulator: qpnp-amoled: add support to disable pulse skipping" 2020-12-02 03:04:39 -08:00
qctecmdr
27be1572fd Merge "defconfig: Add support for compiling sdxnightjar target" 2020-12-02 03:04:39 -08:00
qctecmdr
9936d8bd66 Merge "cfg80211: export regulatory_hint_user() API" 2020-12-02 03:04:39 -08:00
qctecmdr
7f38220137 Merge "input: qcom-hv-haptics: add mutex lock for FIFO play" 2020-12-02 03:04:38 -08:00
qctecmdr
a9bfd29936 Merge "arm64: defconfig: Enable power drivers for gen3auto" 2020-12-02 03:04:38 -08:00
qctecmdr
a9ad07647e Merge "HID: qvr: wake up after acknowledgment from viewer" 2020-12-02 03:04:38 -08:00
Murali Nalajala
56a1e8a1fe guestvm_loader: isolate cpus when VM is starting
Do initial CPU reservation before starting VM, to
avoid any resource contention, while booting guest
VM. Remove the reservation after a configured timeout,
which defaults to 8 seconds.

Change-Id: Id49b07edd3e558dee074eafb729423ad8f8ff98d
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-02 09:52:41 +05:30
Ajay Agarwal
3737f15cc7 usb: dwc3-msm: Avoid access of gsi_reg for non-GSI targets
Some targets do not have GSI feature. For such targets, gsi_reg
array does not get allocated. DWC3_CONTROLLER_NOTIFY_CLEAR_DB
event from gadget driver will access this unallocated memory.
Fix this by putting a check for gsi_reg.

Change-Id: I9903c0c6533abf3d6e689a40ea84ecbc066e10d8
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2020-12-01 20:22:26 -08:00
Michael Adisumarta
33962cd2e1 msm: ipa: Support hardware accelerated DIAG over qdss with ipa_fmwk
Add support to accelarate QDSS diag traffic over IPA to the PCIe
host with ipa fmwk support.

Change-Id: I64a8c493e8b6ef3fc525a3edcfd57e1cd11ccb6c
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-01 17:13:20 -08:00
Pratham Pratap
026280fcfa usb: phy: snps: Return error if driver fails to enable power
Currently driver is not returning any error from the error
handling path if driver fails to enable power for PHY.
This patch adds a check and returns error if the driver
actually fails to set_voltage or fails to enable a particular
regulator.

Change-Id: I5427690602b6152151adee71c6388ce836ab90c6
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-12-01 11:32:20 -08:00
Hareesh Gundu
1817bbf51b msm: kgsl: Poll a6x crashdumper register memory for status
Use a6x crashdumper register memory end location to know
the crashdumper status completion. This will avoid AHB
traffic while crashdumper was active in snapshot dumping
and fixes the slave timeout issue.

Change-Id: Ic24e75557297c6a1a3f2ad7893f4d8d308f9943c
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-12-01 08:58:50 -08:00
qctecmdr
d1d92738ec Merge "Merge android11-5.4.61+ (3720133) into msm-5.4" 2020-12-01 02:17:29 -08:00
Hemant Kumar
d948568a1f usb: phy: snps: Ensure VDDA regulator is put in HPM
To properly ensure that the vdd regulator is put in the correct
operating mode, it needs to have a call to regulator_set_load()
prior to being enabled. This is crucial for platforms where the
HS PHY is the only consumer of the regulator as it could be
inadvertently left in LPM mode and cause the PHY to not function
properly.

Change-Id: I87815c60f044d854ecc75ac6039fd80c2d3197aa
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-11-30 23:51:08 -08:00
Maulik Shah
ef6d5a474e arm64: defconfig: Enable power drivers for gen3auto
Enable LPM and SoC sleep stats drivers for gen3auto.

Change-Id: I7dd08d1044054d5b330d149aa1f26f13d9d7b9bf
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-12-01 10:53:50 +05:30
Fenglin Wu
b8790b3e44 input: qcom-hv-haptics: add mutex lock for FIFO play
When stop command comes during FIFO refill, it would free custom_effect
FIFO sample memory and set the pointer to NULL, and this would cause
the NULL pointer dereference during FIFO refill. To fix this, add a
mutex lock between FIFO stop and FIFO refill sequence to avoid a race.

Change-Id: I8792c2183f06e84fca3a7c4dddfed667b25f2528
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-12-01 11:53:51 +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
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
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