Commit graph

889,574 commits

Author SHA1 Message Date
Bhaumik Bhatt
0a4c0b4557 cnss2: print message for abrupt device reset to PBL
At times, the device can abruptly reset due to power rail or
other related issues which can manifest as a linkdown on the
host. As linkdown recovery mechanism is put in place, it would
be helpful to understand why a set of ramdumps was not collected
in these abrupt reset cases. Hence, it is wise to add a print
message to check whether the device has reset to PBL and make
the users aware.

Change-Id: I545a5b87461b05ea436e383fddd2a8d037a8389d
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-08-19 12:36:35 -07:00
Yue Ma
08b5c57b4f cnss2: Try to recover PCIe link to collect dump after link down
Add the support to recover PCIe link after link down so that it can
try to collect firmware RAM dump to debug.

Change-Id: I227373b2285b3ea415a315ace7db907c477297e8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-08-19 12:36:28 -07:00
Yue Ma
0d77d5e665 cnss2: Save default config space without BME enabled
BME should be enabled after config space has been restored. Make
sure that the default config space saved which is restored during
PCIe link down recovery doesn't have BME enabled.

Change-Id: I227d09620128cbb3232f63a026bc6eb789a0b70c
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-08-19 12:36:21 -07:00
Hemant Kumar
0d97dfe55c pci: msm: Add support to handle ep driver requested link down
In case PCIe endpoint driver infers link down because of
completion timeout for config space access or if link fails
to enumerate, ep driver can request to handle the link down.
This allows to stream line the link down notification to ep
driver to initiate recovery operation.

Change-Id: I652e60e570c1e90c9f96d1c197e4b5501cd60a1e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-08-19 12:25:59 -07:00
Isaac J. Manjarres
84d7f52bcb mm: Allow pages that are swapped in to come from the movable zone
Pages that are swapped out are pages that can reside in the movable
zone. However, when they are swapped in, they are restricted to the
normal zone, when they can reside in the movable zone again. Set the
GFP flags accordingly for swapin allocations, so that they can be
satisfied from the movable zone.

Change-Id: I25919034a5197a1c4f830e498d32347aa460187f
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-08-19 10:36:06 -07:00
qctecmdr
65a3cf720f Merge "msm: synx: fix cleanup of fence during handle creation" 2020-08-19 09:35:25 -07:00
qctecmdr
ba3bad2943 Merge "msm: kgsl: Avoid race of fault handler and recovery" 2020-08-19 09:35:24 -07:00
Srinivas Rao L
841f4e8a74 cpuidle: lpm-levels: Fix RIMPS timer programming
For the hotplug case there is chance that RIMPS timer being
programmed even if the last core in the domain is going down.
Consider online state of cpu's to fix this.

Change-Id: Id2bdd99c0e93ea67d5c9a1ae77fa033f004809c9
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
2020-08-19 19:58:21 +05:30
Lingutla Chandrasekhar
6c32bd14fd defconfig: Enable scheduler Uclamp for Holi
Enable Uclamp for Holi, which is replacement of STUNE.

Change-Id: Ie89b57b244bc818759e63b320d9f015dba5255ec
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-08-19 19:36:33 +05:30
himta ram
a63da6461e arm64: defconfig: Enable CONFIG_MEDIA_RADIO_SUPPORT on Lahaina
Enable CONFIG_MEDIA_RADIO_SUPPORT on Lahaina.

Change-Id: If9111ba4ac18a27b551d78ac71278cff254e2ca6
Signed-off-by: himta ram <hram@codeaurora.org>
2020-08-19 05:27:02 -07:00
qctecmdr
8f5109a94b Merge "usb: XHCI: Implement xhci_handshake_check_state() API" 2020-08-19 01:50:26 -07:00
gkiranku
38eedef680 msm: kgsl: Avoid race of fault handler and recovery
There is a possibility of cx gdsc off timeout when stall on fault
is enabled. smmu fault handler is blocked on device mutex to keep
cx vote and dispatcher trying to turn it off for recovery. To avoid
this race condition, return from fault handler when there is contention
for device mutex.

Change-Id: Ia895152f8cf1ce9bdcfecf256558ba291dabc978
Signed-off-by: gkiranku <gkiranku@codeaurora.org>
2020-08-19 13:24:09 +05:30
Ashish Kori
937ea26ef6 spi: spi-msm-geni: Add support to disable dma mode for SPI transfers
QUPv3 controller supports different modes of data transfers for SPI.
Add support to choose only fifo mode for data transfers. Currently
SSC DMA path is broken as agnoc is not enabled. This clk is owned by
SLPI, once SLPI change is mainlined we can use DMA mode for SSC QUP
also.

Change-Id: Ie4c67be29adba9d6c5a5bb1b9eb2161a2b384100
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-08-19 10:12:13 +05:30
qctecmdr
a8241c9e7e Merge "sched/walt: Improve the scheduler" 2020-08-18 21:37:56 -07:00
qctecmdr
47b5189297 Merge "msm: adsprpc: prevent use-after-free from fastrpc ctx" 2020-08-18 19:16:21 -07:00
Edgar Flores
0739405b7b msm: adsprpc: prevent use-after-free from fastrpc ctx
Avoid using fastrpc ctx after sending rpmsg since it may get
free during async session. During async fastrpc session there
is race condition where after sending rpmsg the ctx could be
free from async query thread.

Change-Id: I5738163096e429f19bd9b495699a1897083737b3
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2020-08-18 16:01:12 -07:00
Keerthi Gowda Balehalli Satyanarayana
e882b7e804 arm64: defconfig: Trim genericarmv8 defconfig
Remove unwanted configs for VM.

MemTotal increased by approx. 4MB and MemFree
increased by approx. 6MB.

Change-Id: I27781fe9f2d7edf2e0464d6e9d1d5259e07cf525
Signed-off-by: Keerthi Gowda Balehalli Satyanarayana <kbalehal@codeaurora.org>
2020-08-18 14:42:00 -07:00
qctecmdr
85082b1d7a Merge "pinctrl: qcom: spmi-gpio: Add support for PMX65" 2020-08-18 14:18:23 -07:00
qctecmdr
ba763c41c2 Merge "msm: kgsl: Fix HFI start failed on SA8155" 2020-08-18 14:18:22 -07:00
qctecmdr
a290f5efa9 Merge "msm: kgsl: Add suspend_context to gmu based targets" 2020-08-18 14:18:22 -07:00
qctecmdr
580c2daadd Merge "mhi: core: Add checks for bhi and bhie offsets" 2020-08-18 14:18:21 -07:00
qctecmdr
bce0c19d8f Merge "aarch64: ABI: add kernel_restart to GKI KMI symbol list" 2020-08-18 14:18:21 -07:00
Branden Bonaby
f2f127dcdf arm64: defconfig: Set panic timeout and panic oops config
To allow the Secure VM to function similarly to the
primary VM during a panic, the panic timeout and panic
on oops configs need to be set the same way they are set
in the generic GKI configs. Currently this is not set so
the default is 0, meaning that during a panic the watchdog
becomes disabled and the system does not reboot.

Change-Id: Ib92df399da28cd8a39ad7d972fcc56fa2ad0f46a
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:18:58 -07:00
Branden Bonaby
3c963c7592 arm64: defconfig: Enabled SOC and Haven watchdog drivers
Add SOC and Haven watchdog  drivers for Lahaina.

Change-Id: Ia9283c9e7ee8cb99377bc3460f58c3433d28092a
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:18:41 -07:00
Branden Bonaby
86d73e7f8c haven: watchdog: Add virtual watchdog support
This driver takes advantage of the watchdog api in
the hypervisor through the use of ARM SMCCC calls.
It allows for communication between the watchdog
code in the kernel, and the watchdog api in the
hypervisor.

Change-Id: I9406f066fb9fd1b808a4b52a328b0c6c8185238e
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:18:12 -07:00
Branden Bonaby
04085c1d11 soc: qcom: Add qcom watchdog framework support
Refactor the soc watchdog driver to use the
qcom watchdog framework.

Change-Id: I12a6afff4299bb39cacca27bcf483e08a503add0
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:17:55 -07:00
Branden Bonaby
065a08cb14 soc: qcom: Create framework for qcom watchdogs
Separate core watchdog functionality from the qcom watchdog
driver to create a framework for other qcom watchdogs. This
will reduce the duplication of code for future watchdog
drivers and allow them to take advantage of this framework.

Change-Id: I1234af9d92de6841bd09157042a4fbba1745f11b
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:17:42 -07:00
Branden Bonaby
d71acda6dc soc: qcom: Remove watchdog percpu interrupts
Refactor watchdog core to remove the bark percpu
interrupt as it is deprecated and no longer used
by the watchdog.

Change-Id: Idbd959a7b42895d72f4f812057304687f7aca948
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:17:25 -07:00
Branden Bonaby
2492da5ed7 soc: qcom: Remove unused member variables
Refactor watchdog core to remove unused member
variables in the watchdog data structure.

Change-Id: I3a83fdb291064f25721549a3fe70f97629c148b4
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:17:10 -07:00
Branden Bonaby
6bf6e305d3 soc: qcom: Remove unused macros
Refactor watchdog core to remove unused macro constants.

Change-Id: If8517c2c5be519393b8c0394034554533952abd1
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:17:01 -07:00
Branden Bonaby
70ca2d9b82 soc: qcom: Remove watchdog slack accounting
Refactor watchdog core to remove dead code. Specifically,
the slack variables from the watchdog data structure and
the pet function that uses them. Currently these variables
are not used and can be refactored to simply reset the
watchdog counter directly.

Change-Id: Ie184e2826ed790288a94dfebf578ec99b53831e8
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:16:38 -07:00
Branden Bonaby
caf6b22e22 arm64: defconfig: Add watchdog core config
Add the config for the  core watchdog framework.

Change-Id: Idfde28614cb5d7ac239c193ff6374ad5b753e366
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:16:08 -07:00
Branden Bonaby
54100ecff9 soc: qcom: Rename msm watchdog to wdt core
In preparation to change the qcom watchdog to a new core
framework that future watchdog drivers will utilize, the name
of the file needs to be changed. Due to the number of changes
needed in the file we need to rename it to reflect its new purpose.

Change-Id: Iac6ad57fbc02866f6716a44d7bb4a62d97e4a810
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:16:00 -07:00
Branden Bonaby
cce9844ff5 soc: qcom: Remove msm watchdog config
Remove qcom watchdog config in preparation for the
creation of the watchdog core.

Change-Id: I964285a5ad06dc5753756d821bd0f4fc1d664739
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:15:36 -07:00
qctecmdr
adbbbc5659 Merge "msm: kgsl: Add A660 specific registers to snapshot" 2020-08-18 11:52:27 -07:00
Konstantin Dorfman
36b3a8c418 aarch64: ABI: add kernel_restart to GKI KMI symbol list
Change adds kernel_restart to qcom KMI symbol list and updates
the ABI snapshot, as it is used by spss_utils driver.

Change-Id: Iedb73f0aeb092989461078cc403695e24fbe8146
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2020-08-18 21:29:05 +03:00
Manu Gautam
d279640225 mhi: core: Add checks for bhi and bhie offsets
Bail out if device returns invalid bhi/bhie offsets.

Change-Id: Ifc92c53a4c1f7c951721cbec0b1d7285cf19cd72
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-08-18 10:26:26 -07:00
Manu Gautam
775e234a67 cnss2: Update device MMIO region length for MHI core
It can be used by MHI core to have a sanity check for
bhi and bhie offsets reported by device.

Change-Id: Ibcdef53a4c1f7c951721cbec0b1d7285cf19cd72
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-08-18 10:26:04 -07:00
Hemant Kumar
c61705f68b mhi: core: Skip RDDM download if execution env is unknown
If mhi_get_exec_env API returns MHI_EE_MAX skip RDDM download.
API returns this value if BHI offset read failed or BHI_EXECENV
register read fails. This indicates the underlying transport is
unresponsive so there is no need to trigger RDDM using SYSERR
or request SOC reset.

Change-Id: I0cc85af84f19b425c94fe8aea987ab03af6de032
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-08-18 10:23:27 -07:00
Hemant Kumar
6e8d77cd33 mhi: core: Add NULL check in mhi_get_exec_env
In case power up failed due to incorrect bhi offset
bhi pointer in mhi controller remains NULL. Later if
MHI controller forces RDDM it checks the execution
environment by accessing the BHI offset. This results
into NULL pointer dereference. Fix this by adding NULL
check for both mhi controller and bhi pointer before
reading the BHI offset.

Change-Id: I93f8918d7d595a77a5c8bcb6fd610f1a2b484fc4
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-08-18 10:23:06 -07:00
qctecmdr
fcbd6f2815 Merge "scsi: ufs: Fix some racing problems in ufshcd_shutdown()" 2020-08-18 09:26:21 -07:00
Isaac J. Manjarres
5e3ebb30e2 soc: qcom: mem-buf: Relinquish unclaimed donated memory
A memory request may not be satisfied in time because of delays
in allocation times. When the allocation response is given to the
consumer, but the consumer's request has already timed out, the
memory will be leaked, as it won't be claimed by the consumer, and
it won't be relinquished to the supplier. Thus, to prevent the memory
from being leaked, relinquish unclaimed memory back to the supplier.

Change-Id: I91f52113c26f4536789fe6807175c845cc9c9e26
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-08-18 08:41:28 -07:00
Isaac J. Manjarres
7fd846f325 soc: qcom: mem-buf: Use an unbound high priority workqueue for mem-buf
Use an unbound high priority workqueue to ensure that mem-buf
transactions can be handled on any CPU, as well as with high
priority. Also, increase the timeout for allocation responses
from 2 seconds to 3.5 seconds.

Change-Id: I2ec4d85bf7307d64d2f8a7dae6dfb2b29cfc45bb
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-08-18 08:41:18 -07:00
qctecmdr
cef19e9ec9 Merge "msm: kgsl: skip if requested address doesn't fall in the svm range" 2020-08-18 07:04:31 -07:00
Shyam Kumar Thella
8d77be5b92 power: qpnp-smb5: Fix Initialize mutex for PD typec designs
Dump stack is observed when mutex (typec_lock) is locked without
initializing it in case of PD supported typec designs. Fix it by
initializing the mutex for PD supported typec designs also.

Change-Id: I7ee29715651dc001a450d80c49c6cce10f10e837
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-08-18 06:16:18 -07:00
qctecmdr
5927fac03f Merge "soc: qcom: add microdump collector" 2020-08-18 04:33:28 -07:00
qctecmdr
216a9df69f Merge "usb: xhci: Reduce command abort handshake timeout" 2020-08-18 04:33:28 -07:00
qctecmdr
4cf691d25d Merge "mhi: core: Set bhi and bhie to NULL upon power down" 2020-08-18 04:33:28 -07:00
qctecmdr
53582a2632 Merge "msm: kgsl: Mark the scratch buffer as privileged" 2020-08-18 04:33:27 -07:00
Yuanfang Zhang
8bbbd5c5f2 coresight: tmc: Modified trigger number for reset CTI
Modified trigger number for reset CTI to 5.

Change-Id: Ia5c5edf9b71176bdaead06b265d4203b81342c88
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-08-18 19:27:58 +08:00