Commit graph

898,803 commits

Author SHA1 Message Date
Kamal Agrawal
dc16f70deb
msm: kgsl: Correctly free up resources on error during probe
Correctly free up resources on error during probe.

Change-Id: Ia094bfd5694d580735000d2807a30f597f06f4e5
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2021-05-15 13:45:40 +05:30
qctecmdr
bc352de957 Merge "clk: qcom: gcc-blair: Add support for USB BCRs" 2021-05-14 10:11:01 -07:00
qctecmdr
67ca943684 Merge "usb: dt-bindings: Add USB QMP PHY registers definition" 2021-05-14 10:11:01 -07:00
qctecmdr
24c4201353 Merge "msm: kgsl: Fix spinlock recursion issues" 2021-05-14 10:11:00 -07:00
qctecmdr
53bb20e6d9 Merge "msm: kgsl: Fix overflow issue by checking user supplied count" 2021-05-14 10:11:00 -07:00
qctecmdr
c9f02a2e78 Merge "msm: kgsl: set regulator mode before disable it on a640/a680" 2021-05-14 10:10:59 -07:00
qctecmdr
1608d19644 Merge "serial: msm_geni_serial: Check for dev_port->is_console flag for cosole" 2021-05-14 10:10:59 -07:00
qctecmdr
6513b8e391 Merge "msm: kgsl: Fix black screen when enabled protected context on A680" 2021-05-14 10:10:59 -07:00
qctecmdr
daa038186f Merge "usb: xhci: Avoid calling wakeup_enable without set_wakeup_capable" 2021-05-14 10:10:58 -07:00
qctecmdr
7cab85a033 Merge "defconfig: sdmsteppeauto: Add flags to see wakeup inturrupt during LPM" 2021-05-14 09:39:22 -07:00
qctecmdr
97f97fed5e Merge "cnss2: Add pci link recovery check after the register dumps" 2021-05-14 09:39:21 -07:00
qctecmdr
3de00e0bc4 Merge "usb: dwc3-msm: Add markers for peripheral bus resume" 2021-05-14 09:39:21 -07:00
qctecmdr
d0ce056b72 Merge "drivers: uart: initialize spin_lock before use" 2021-05-14 09:39:21 -07:00
qctecmdr
a67908f7ac Merge "defconfig: Add CONFIG_DEBUG_INFO for sdx12" 2021-05-14 09:39:20 -07:00
qctecmdr
3a9c7c52e7 Merge "soc: qcom: ddr_stats: API to read ddr residency" 2021-05-14 09:39:20 -07:00
qctecmdr
44fc2c8005 Merge "soc: qcom: hab: Add HAB fixes, and workarounds, for GHS" 2021-05-14 09:39:20 -07:00
qctecmdr
ea045f5208 Merge "dt-bindings: clock: Add support for clock ids for SCUBA" 2021-05-14 09:39:19 -07:00
qctecmdr
5af89e546a Merge "cnss2: Add code to print return value of BDF download failure" 2021-05-14 09:39:19 -07:00
qctecmdr
720bd5fe2a Merge "arm64: Kconfig: Add config option ARCH_SA2150P" 2021-05-14 09:39:19 -07:00
qctecmdr
c274e5f062 Merge "STMMAC: msm: Add io macro setting for 10Mpbs" 2021-05-14 09:39:18 -07:00
qctecmdr
df52b0feef Merge "defconfig: Compile icnss2 as part of vmlinux in monaco" 2021-05-14 09:39:18 -07:00
qctecmdr
f716cd752c Merge "msm: ep-pcie: Correct two CAP reg offsets" 2021-05-12 23:55:16 -07:00
qctecmdr
ff3d25b276 Merge "clk: qcom: gdsc: Update the BLK_ARES assert/deassert delay" 2021-05-12 23:55:16 -07:00
qctecmdr
5b628b2f9a Merge "usb: phy: Drive a pulse on DP on CDP detection" 2021-05-12 23:55:15 -07:00
qctecmdr
dbb99d92c2 Merge "cnss2: Fix invalid assignment due to type mismatch" 2021-05-12 23:55:15 -07:00
Udipto Goswami
d6aab69a01 usb: xhci: Avoid calling wakeup_enable without set_wakeup_capable
Commit 6076cdc395 ("usb: host: Disable system wakeup if remote
wakeup is not required")has introduced a check in xhci_plat_probe
where if device_may_wakeup is set for the parent device, then
device_wakeup_enable is called on xhci-plat, but calling
device_wakeup_enable without device_set_wakeup_capable is useless.

Now when xhci_plat_suspend is called the xhci_suspend will check
for device_may_wakeup and here the result will be FALSE.
In xhci suspend the do_wakeup is checked, if FALSE then it will
try to call xhci_disable_port_wake_on_bits where it will try
to do a readl operation. This will lead the core to hang since
xhci is already suspended and we tried to do a readl.

Fix this by replacing device_wakeup_enable with device_init_wakeup.
This will set the do_wakeup to be true and therefore avoid calling
xhci_disable_port_wake_on_bits and bail out when checked for
HCD_HW_ACCESSIBLE.

Change-Id: Id3fad841ebe07b777dc229ced36364ad31e6d81d
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
2021-05-13 11:40:05 +05:30
Hui Li
7972d3a6ac msm: kgsl: Fix black screen when enabled protected context on A680
This bit should only be set when CM3_CGC clock gating is enabled,
Otherwise always live CM3 clock will make dead loop in CM3 clock
control FSM, No Effect If this bit is set to 0, this is the default
behavior.

Change-Id: I9052182bd05e38433e11bbfdfa1f1c48c980fc9b
Signed-off-by: Hui Li <hul@codeaurora.org>
2021-05-13 11:30:40 +08:00
qctecmdr
3ecdedce1b Merge "defconfig: monaco: add stm proto basic" 2021-05-12 19:00:45 -07:00
qctecmdr
4beeba5338 Merge "arm: defconfig: enable thermal drivers for monaco" 2021-05-12 16:18:45 -07:00
qctecmdr
ed787f8498 Merge "soc: qcom: ddr_stats: update driver to get reg in probe" 2021-05-12 13:36:29 -07:00
qctecmdr
552a812707 Merge "msm: kgsl: Fix snapshot collection for ib1" 2021-05-12 08:42:25 -07:00
qctecmdr
146fa24541 Merge "soc: qcom: smem: Fix compilation warning" 2021-05-12 08:42:25 -07:00
Dundi Raviteja
e555369a25 defconfig: Compile icnss2 as part of vmlinux in monaco
Currently icnss2 for monaco is compiling as serperate
kernel module, change it to compile as part of vmlinux.

Change-Id: Ifb175f9f3b418edbe5df5836b8f02e41a11898bc
CRs-Fixed: 2944263
Signed-off-by: Dundi Raviteja <dundi@codeaurora.org>
2021-05-12 05:57:48 -07:00
qctecmdr
7909de7b54 Merge "sched: walt: Fix stale walt CPU reservation flag" 2021-05-12 05:57:27 -07:00
Mohammed Siddiq
a5aea06283 cnss2: Add code to print return value of BDF download failure
Add code to print return value of BDF download failure.

Change-Id: Ifca293d00eeae98fb8a6a0f81bba853c8d382cd3
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-05-12 05:09:26 -07:00
Shreyas K K
52e382719a arm64: Kconfig: Add config option ARCH_SA2150P
Add config option to support SA2150P architecture
platform.

Change-Id: Ic1acd38fdafa2d3011506ed5240b3f30c4a1d44d
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-05-12 17:08:06 +05:30
qctecmdr
787f7bf33d Merge "char: virtio_fastrpc: read domain number from device tree" 2021-05-12 03:01:03 -07:00
qctecmdr
060901c8f1 Merge "arm64: defconfig: Enable IOMMU related configs on direwolf" 2021-05-12 03:01:03 -07:00
qctecmdr
34a80d7261 Merge "pinctrl: qcom: spmi-pmic: Add "pm5100-gpio" compatible string" 2021-05-12 03:01:03 -07:00
Venkata Rao Kakani
cb9e2e0064 drivers: uart: initialize spin_lock before use
In linux guest restart case, during probe, stop_rx_sequencer is
getting called because of residual state set before restart.

spin_lock which is used in stop_rx_sequencer is not initialized.
To, resolve spin_lock debug mentioned below, initialize spin_lock
early.

		spin_dump+0x84/0x88
		do_raw_spin_lock+0xd4/0x12c
		raw_spin_lock+0x20/0x2c
		handle_rx_dma_xfer+0x44/0x330
		stop_rx_sequencer+0x118/0x420
		start_rx_sequencer+0xc0/0x1a0
		msm_geni_serial_runtime_resume+0x54/0xb8
		pm_generic_runtime_resume+0x44/0x80
		__rpm_callback+0x98/0x208
		rpm_resume+0x458/0x6a4
		__pm_runtime_resume+0x60/0xa0
		__device_attach.llvm.18035772682363603059+0xa0/0x174
		bus_probe_device+0x3c/0xdc
		device_add+0x95c/0xb84
		serdev_controller_add_platform+0x2c/0x1d0
		serdev_tty_port_register+0xf8/0x188
		tty_port_register_device_attr_serdev+0x50/0x90
		uart_add_one_port+0x268/0x60c
		msm_geni_serial_probe+0x630/0x780
		platform_drv_probe+0xac/0xf0
		really_probe+0x210/0x7d8.

Change-Id: I9e139897681ece174a9ead63f57bb999585ff0bf
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2021-05-12 15:18:20 +05:30
Wu Gao
ed263a8db1 defconfig: Add CONFIG_DEBUG_INFO for sdx12
Kernel symbol size is very small after removed CONFIG_DEBUG_INFO, so
add it back. This change adds below kernel configs for SDX12 debug
build:
  CONFIG_SLUB_DEBUG
  CONFIG_DEBUG_PREEMPT
  CONFIG_SCHED_DEBUG
  CONFIG_HAVE_DEBUG_KMEMLEAK
  CONFIG_DEBUG_BUGVERBOSE
  CONFIG_CC_HAS_KASAN_GENERIC

Change-Id: I502dd3800252077838063a0a4c25fe92bdac4c48
Signed-off-by: Wu Gao <wugao@codeaurora.org>
2021-05-12 17:37:27 +08:00
Jagadeesh Kona
f1b10a61e0 clk: qcom: gcc-blair: Add support for USB BCRs
Add support for USB BCRs for USB clients to be
able to apply reset.

Change-Id: If98d96ec6b30b0d9d4d3360ce412840cac166915
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2021-05-12 12:59:07 +05:30
Jagadeesh Kona
12b3821860 dt-bindings: clock: Add support for BLAIR USB BCRs
Add support for USB BCRs on BLAIR.

Change-Id: I8e71f05b2d75d9148ac00456bb48bf671c0c2377
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2021-05-12 12:54:19 +05:30
qctecmdr
dc53396363 Merge "cnss2: Dump MHI/PBL/SBL debug data during MHI power on" 2021-05-12 00:07:02 -07:00
Mohammed Siddiq
fb2d33f982 cnss2: Add pci link recovery check after the register dumps
In some scenarios, during force firmware assert handler, the
pci link is going bad once the registers dumps are started.
Add code to do pci link recovery check after register dumps\
collection.

Change-Id: I7388e9bea1ffc789d6c4df4870233bf594e2d488
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-05-11 23:24:54 -07:00
Hongwei Ren
b51c567ce3 dt-bindings: clock: Add support for clock ids for SCUBA
Add clock IDs for GCC/GPUCC/DISPCC for clients to be able
to request for clocks from these clock controllers.

Change-Id: Ibd69e800ff6ebd0d59d34605deb8dc092c25b907
Signed-off-by: Hongwei Ren <hongren@codeaurora.org>
2021-05-12 11:48:38 +05:30
Zhiqiang Tu
4f02b73d10 soc: qcom: hab: Add HAB fixes, and workarounds, for GHS
Fix kernel shutdown callback crash in HAB by removing
commdev freeing in pchan free.
Add stub functions for dump_hab_wq and hab_pipe_read_dump.

Change-Id: I176085600e3ec3a40eb2f181491405c6bf4ac7bb
Signed-off-by: Anant Goel <anantg@codeaurora.org>
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2021-05-11 21:55:51 -07:00
Vinay Sudra
ca8534289c defconfig: sdmsteppeauto: Add flags to see wakeup inturrupt during LPM
Add flags to see interrupts during suspend process.

Change-Id: Id6e42f1bb7287ab8a62db6d6a248f8c6d418df3f
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-05-11 21:10:17 -07:00
qctecmdr
e38c09a5b8 Merge "pci: msm: msm_pcie_iatu_config API clean" 2021-05-11 18:40:45 -07:00
Can Guo
c150d993f3 msm: ep-pcie: Correct two CAP reg offsets
Correct the offsets of L1SUB_CAPABILITY_REG and L1SUB_CONTROL1_REG.

Change-Id: I6130a7eab50d85e34d87c28bde3a48c058ee9eee
Signed-off-by: Can Guo <cang@codeaurora.org>
2021-05-12 07:59:40 +08:00