Commit graph

898,475 commits

Author SHA1 Message Date
Anant Goel
5ad46bb7d4 clk: qcom: Add PCIe clocks to Direwolf VM
Add support for virtual clocks needed for PCIe RCs
2a, 2b, 3a, 3b, and 4, to the Direwolf VM.

Change-Id: I73002071c18f85d8cbcb15c06e030650d10dc5b9
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2021-04-28 09:32:02 -07:00
qctecmdr
37a1126894 Merge "ion: implement interface to export total_pools_kb" 2021-04-27 22:49:33 -07:00
qctecmdr
9a82131643 Merge "neighbour: Prevent Race condition in neighbour subsytem" 2021-04-27 22:49:33 -07:00
qctecmdr
708dde5b10 Merge "arm64: defconfig: Add support for GPUCC, DISPCC and DEBUGCC for BLAIR" 2021-04-27 22:49:32 -07:00
qctecmdr
36666de1db Merge "drivers: qcom: Add declaration of msm_timer_get_sclk_ticks" 2021-04-27 22:49:32 -07:00
qctecmdr
733e5740b2 Merge "usb: dwc3: gadget: Handle race between remove_request & ep_dequeue" 2021-04-27 22:49:31 -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
Madhuri Medasani
920b82005c arm64: defconfig: Add support for GPUCC, DISPCC and DEBUGCC for BLAIR
Enable GPUCC, DISPCC and DEBUGCC for BLAIR.

Change-Id: Ie9b87b5f62a4a5ea285c8771fca25024d6804fcb
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-04-26 22:25:46 -07:00
Madhuri Medasani
078daf61e2 clk: qcom: debugcc: Add support for Debugcc for BLAIR
Add support for clock measurement for Global clock and other clock
controllers.

Change-Id: Ieffb49f31b3ffd83b788fc9c9ac951979ed01463
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-04-26 22:25:37 -07:00
Madhuri Medasani
4285a22c77 clk: qcom: dispcc: Add support for dispcc driver for BLAIR
Display clock controller for clients to be able to vote/devote on the
clocks.

Change-Id: Ib0cd34646636ec8985f866c1d252a61807a75dbc
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-04-26 22:24:48 -07:00
Madhuri Medasani
c4e200686d clk: qcom: gpucc: Add Graphics Clock controller for BLAIR
Add support for Graphics clock controller clocks.

Change-Id: Iab8e82a5e50865ded8cbe0f2dcf4e579af23497b
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-04-27 10:51:31 +05:30
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