Commit graph

898,462 commits

Author SHA1 Message Date
Lei wang
f7886d93bf hwrng: refine hwrng delay for retry
Per internal test, about 5us-6us is enough for hwrng prepare
the random data. 440us udelay is much more then needed, So
reduce the udelay time for better performance.

Change-Id: I714b67ca6e4f97717db537c799936ea31c96e475
Signed-off-by: Lei wang <leiwan@codeaurora.org>
2021-04-27 22:54:17 -07:00
qctecmdr
5e999608a4 Merge "llcc: Overcome unused function warnings when CONFIG_QCOM_LLCC is not enable" 2021-04-27 20:12:57 -07:00
qctecmdr
511c300659 Merge "defconfig: gen3auto: Enable Lock and RCU debugging" 2021-04-27 20:12:57 -07:00
qctecmdr
8379acaf27 Merge "pinctrl: qcom: Don't lock around irq_set_irq_wake()" 2021-04-27 20:12:57 -07:00
qctecmdr
3a1709396b Merge "arm64: defconfig: Enable PCI Express AER driver" 2021-04-27 20:12:56 -07:00
qctecmdr
a237c2f85b Merge "msm: ep-pcie: Fix reset separation during warm boot" 2021-04-27 20:12:56 -07:00
Mayank Rana
f76776cece llcc: Overcome unused function warnings when CONFIG_QCOM_LLCC is not enable
When CONFIG_QCOM_LLCC is not enabled, there is unused function warnings
seen when llcc-tcm.h is added part of client driver.

warning: unused function 'llcc_tcm_get_phys_addr' [-Wunused-function]

Suppress those warnings by adding __maybe_unused attributes with those
APIs.

Change-Id: Ic933b67f95a0f7b2b5577d7d0f79c19cc1dbeb2a
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2021-04-27 10:04:04 -07:00
qctecmdr
cec1e76763 Merge "cnss2: add null pointer check" 2021-04-26 20:39:46 -07:00
Gauri Joshi
b30e6d2c9c msm: ep-pcie: Fix reset separation during warm boot
PCIE_DISCONNECT_REQ_REG is not being set in warm boot which is
blocking reset separation. Configure the register during D3 and
D0 transition to decouple the device reset with controller reset.

Change-Id: I5eb7baf68514f989b7bd3a371b569b467e56d43c
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-04-26 18:09:20 -07:00
qctecmdr
9d6eaf902e Merge "usb: dwc3: gadget: Prevent double free scenario for cancelled_list" 2021-04-26 18:03:54 -07:00
Hemant Kumar
e33506c106 arm64: defconfig: Enable PCI Express AER driver
Enable this driver to allow using standard APIs
to enable and disable AER support in endpoint
driver. In order to enable this driver
CONFIG_PCI_QTI needs to be enabled to prevent
GKI ABI breakage.

Change-Id: I58bdfe98176ea80e74a44c683878a573fd12fa62
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2021-04-26 16:58:09 -07:00
qctecmdr
6a0c16b5af Merge "msm: kgsl: Fix compilation failure for 32-bit platform" 2021-04-26 14:57:51 -07:00
qctecmdr
ea4a184bb8 Merge "SMCInvoke: Add ipc_logging to improve debuggability of use" 2021-04-26 14:57:50 -07:00
Manoj Vishwanathan
1b56f85f5c defconfig: gen3auto: Enable Lock and RCU debugging
Enable lock and RCU debugging in debug config

Change-Id: Ia67d3d4466ff99c11e66cc66278641a4c20a017c
Signed-off-by: Manoj Vishwanathan <mvishwan@codeaurora.org>
2021-04-26 12:33:51 -07:00
Stephen Boyd
98b2216218 pinctrl: qcom: Don't lock around irq_set_irq_wake()
We don't need to hold the local pinctrl lock here to set irq wake on the
summary irq line. Doing so only leads to lockdep warnings instead of
protecting us from anything. Remove the locking.

Change-Id: I89a9bca1ed4c8aab8b9ecd2000a116c74e33b186
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Git-commit: 1d44616e7549d0154c1224a3eee3c407029294dc
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Manoj Vishwanathan <mvishwan@codeaurora.org>
2021-04-26 12:27:05 -07:00
qctecmdr
6908a58fe7 Merge "soc: qcom: hgsl: Add signaled cb to isync sync" 2021-04-26 12:18:03 -07:00
qctecmdr
5ad91ebb04 Merge "serial: msm_geni_serial: Add boot KPI markers" 2021-04-26 12:18:02 -07:00
qctecmdr
435bbba168 Merge "defconfig: Disable debug option in SDX12 perf build" 2021-04-26 12:18:02 -07:00
qctecmdr
93cacc3c6e Merge "soc: qcom: smp2p: Fix possible smp2p entry double free" 2021-04-26 12:18:01 -07:00
qctecmdr
d91ec1ae46 Merge "net: fix to handle warning message" 2021-04-26 12:18:00 -07:00
qctecmdr
f88c8dcbb2 Merge "defconfig: Enable STM_PROTO_BASIC for sdxnightjar" 2021-04-26 12:18:00 -07:00
qctecmdr
ff61af4fc7 Merge "arm64: kconfig: Add initial platform for Scuba" 2021-04-26 12:17:59 -07:00
qctecmdr
3fccda5729 Merge "Revert "msm: kgsl: Add GPUCC register dumps to A6xx GPU snapshot"" 2021-04-26 12:17:59 -07:00
qctecmdr
f000bfd31b Merge "defconfig:sdmsteppeauto:enable btpower" 2021-04-26 12:17:59 -07:00
qctecmdr
83b4b5dede Merge "spmi: spmi-pmic-arb: Add support to set interrupt ownership" 2021-04-26 12:17:58 -07:00
Manoj Vishwanathan
c5e6208da8 cpuidle: lpm-levels: removing trace calls in idle
LOCKDEP complains about a potential "suspicious RCU usage" in calling
trace calls in cpu-idle.

Change-Id: I59711a4a9bded246cac8b433bd1756269a17e153
Signed-off-by: Manoj Vishwanathan <mvishwan@codeaurora.org>
2021-04-26 12:16:39 -07:00
Udipto Goswami
ef72d443ad usb: dwc3: gadget: Prevent double free scenario for cancelled_list
Suppose for a function driver the usb controller received EPCMDCMPLT
for end transfer from previous case, so as part of this the resources
for the endpoint will be released. In this process we will be clearing
the cancelled_request as part of which controller executes
gadget_giveback where the spinlock is released. Within that time if
ep_queue from the function driver is called, then the endpoint command
will fail due to no resources being present in for the endpoint, the
ep command will return -EINVAL due to no resources. This will lead
the controller to move the request to cancelled list and if the
DWC3_EP_END_TRANSFER_PENDING flag is set then it will go ahead and try
to cleanup the already cleared cancelled request.
Resulting the controller to double free the request.

This problem is only with Gen1 controllers as there the
DWC3_EP_END_TRANSFER_PENDING flag will not be set.

Fix this issue by introducing a check in ep_interrupt on EPCMDCMPLT.
If the DWC3_EP_END_TRANSFER_PENDING bit is set, then cleanup the
cancelled request. This will ensure that if it is a GEN1 controller,
cleanup cancelled request will be called from kick_transfer and if
GEN2 controller, then cleanup from ep_interrupt.

However, preventing cleaning up of cancelled list from EPCMDCMPLT has
one side effect as if from function driver ep_dequeue is called and
it does not giveback the request from there and rely on EPCMDCMPLT
to cleanup the cancelled list. Therefore the request will be moved
to cancelled list but won't be given back to function driver.

To fix this additionally have introduced the DWC3_EP_END_TRANSFER_PENDING
check in ep_dequeue as well so if it is not set then cleanup the cancelled
list from there.

Commit eec9afd56c ("usb: gadget: Give back request from ep_dequeue")
added the ep_dequeue check but missed the EPCMDCMPLT one, adding
that check to avoid any other corner case.

Change-Id: I575a38ba9dc9b3a6684d0973a49109f97e22f1b2
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
2021-04-26 21:54:52 +05:30
qctecmdr
03d2764796 Merge "msm: mobileap: Enable GRE configuration" 2021-04-26 08:46:49 -07:00
qctecmdr
3152893c4f Merge "msm: ADSPRPC: Add non-NULL check to avoid NULL pointer dereference" 2021-04-26 08:46:48 -07:00
qctecmdr
8a43d518be Merge "arm64: defconfig: Add stmmac for sa6155" 2021-04-26 08:46:48 -07:00
qctecmdr
52600d3249 Merge "msm: kgsl: Validate page offset before vmf_insert_page" 2021-04-26 08:46:47 -07:00
qctecmdr
8e25b91508 Merge "msm: adsprpc: Allocate buffer taking NULL byte into consideration" 2021-04-26 08:46:47 -07:00
qctecmdr
f25e687106 Merge "defconfig: Enable UAC2 protocol on sdxlemur" 2021-04-26 08:46:46 -07:00
qctecmdr
b6617bab90 Merge "arm64: defconfig: Add support for DEBUGCC/DISPCC in MONACO" 2021-04-26 08:46:46 -07:00
qctecmdr
213e186847 Merge "dt-bindings: Add new port types for SWR Rx port" 2021-04-26 08:46:45 -07:00
qctecmdr
e11e35ec91 Merge "msm: kgsl: Fix possible NULL pointer dereference" 2021-04-26 08:46:45 -07:00
qctecmdr
3e6ed023e0 Merge "drivers: llcc: Amend SCT table for sdxlemur" 2021-04-26 08:14:47 -07:00
qctecmdr
c59dc60872 Merge "drivers: qcom: Add boot stat entries for kernel load start and end" 2021-04-26 08:14:46 -07:00
qctecmdr
f9e4067566 Merge "Merge android11-5.4.86+ (5d7dfa3) into msm-5.4" 2021-04-26 08:14:44 -07:00
qctecmdr
be73b6b4dc Merge "msm: kgsl: Return a valid entry in case of secure GPU address" 2021-04-26 08:14:44 -07:00
qctecmdr
6465d7bf16 Merge "i2c: i2c-msm-geni: Add boot KPI markers" 2021-04-26 08:14:43 -07:00
qctecmdr
131c2f14e9 Merge "defconfig: direwolf_auto: Enable SPMI PMIC drivers" 2021-04-26 08:14:43 -07:00
Ya
79b35d069f soc: qcom: hgsl: Add signaled cb to isync sync
In ts signal mode, usermode maybe create a fences with old timestamp
after timestamp of the timeline goes forward. These fences should be
treated as signaled.
The signaled cb could compare fence ts and timeline ts and return status
to caller.

Change-Id: I727a093188b50f693a26c16361e2a295d550fcb0
Signed-off-by: Ya <yatang@codeaurora.org>
Signed-off-by: Kasin Li <donglil@codeaurora.org>
2021-04-26 17:38:42 +08:00
Kiran Gunda
5beb4e66b9 spmi: spmi-pmic-arb: Add support to set interrupt ownership
The MID_SEL register routes the interrupt to the configured MID.
On a multi-SOC system a PMIC interrupt may be assigned to
secondary SOC (on another MID). Make sure the interrupt gets
assigned to the right MID while registering for it.

Change-Id: I87cc890af051dbe8e1c81662800f1c39b50290da
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2021-04-26 01:55:53 -07:00
Ke Huang
215bb42517 cnss2: add null pointer check
The return value of the function cnss_bus_dev_to_plat_priv() has a
chance to NULL, So we have to check "plat_priv" if it is a null
pointer before it is dereferenced.

Change-Id: I8a5bbe5037d1f15113e58bb16b90f243ea8ef807
Signed-off-by: Ke Huang <keh@codeaurora.org>
Signed-off-by: Kuichu Ni <kuichun@codeaurora.org>
2021-04-26 16:51:02 +08:00
Amit Kushwaha
0dfdda9c51 Revert "msm: kgsl: Add GPUCC register dumps to A6xx GPU snapshot"
This reverts commit 26852d7d34dcb87a7d2fd5f3e1343db14e73c186.
The GPUCC registers are not ioremapped on some targets which can
cause continuous 'Out of bounds' warnings.

Change-Id: Iebe9b27b74966d937b2e62e9a937be1af5463303
Signed-off-by: Amit Kushwaha <kushwaha@codeaurora.org>
2021-04-26 01:12:44 -07:00
Puranam V G Tejaswi
9522ccf87c msm: kgsl: set bit 24 of CP_CHICKEN_DBG for A702
Fix bootanimation distortion for A702.

Change-Id: I1ca75e1725670ef65baccf3a4e6c731550b93dd7
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
Signed-off-by: Amit Kushwaha <kushwaha@codeaurora.org>
2021-04-26 01:09:48 -07:00
Amit Kushwaha
f8a617fa1f msm: kgsl: Fix compilation failure for 32-bit platform
Changes to fix compilation failures for implicit
declaration of readq and writeq_relaxed for 32 bit
platform, warning for unused result and undefined
symbol for __aeabi_uldivmod.

Change-Id: I1382d3faae6e67945d37509046e60e9061bac871
Signed-off-by: Amit Kushwaha <kushwaha@codeaurora.org>
2021-04-26 10:26:47 +05:30
Yuanfang Zhang
581b3e68c0 defconfig: Enable STM_PROTO_BASIC for sdxnightjar
Enable STM_PROTO_BASIC to support to write log to /dev/coresight-stm.

Change-Id: Ibdc10fa0bfd399bec47a59ba7f05258e5918796f
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2021-04-25 20:00:21 -07:00
Hongwei Ren
ec3372b5fe arm64: kconfig: Add initial platform for Scuba
Adding initial platform config for Scuba.

Change-Id: If4c22be3ad2bfbaadea9cd363ab70f346a561074
Signed-off-by: Hongwei Ren <hongren@codeaurora.org>
2021-04-25 14:14:31 +05:30