Commit graph

889,396 commits

Author SHA1 Message Date
qctecmdr
cdc7a0e02c Merge "soc: qcom: eud: Fix inconsistent nature of the cmdline" 2020-08-19 20:17:49 -07:00
qctecmdr
05a56a8195 Merge "input: qcom-hv-haptics: toggle CAL_EN mode if HBST is in open loop" 2020-08-19 20:17:48 -07:00
qctecmdr
9b0287edec Merge "byte-cntr: Don't start usb transfer when rwp offset is invalid" 2020-08-19 20:17:48 -07:00
qctecmdr
50b6104974 Merge "defconfig: Enable scheduler Uclamp for Holi" 2020-08-19 20:17:47 -07:00
Mao Jinlong
1c03177d1a byte-cntr: Don't start usb transfer when rwp offset is invalid
Don't start usb transfer when rwp offset is invalid to avoid exception
happening when transfer usb data.

Change-Id: I7182ebb2e66131a21d65f7df0ad239c6346c0e9d
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-08-20 09:10:34 +08:00
Raghavendra Rao Ananta
bd9bea635c soc: qcom: eud: Fix inconsistent nature of the cmdline
The EUD driver's 'enable' command line argument is set to
EUD_ENABLE_CMD even if the bootloader hasn't enabled it,
which is not correct. Hence, update the 'enable' variable
based on the state of the hardware.

Change-Id: I1159436c0e9a803462f2154ccc05649d3f7b40da
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-19 17:11:37 -07:00
qctecmdr
2b77ca772b Merge "soc: qcom: mem-buf: Relinquish unclaimed donated memory" 2020-08-19 15:08:38 -07:00
qctecmdr
26773d2817 Merge "pci: pci-msm-msi: Re-name irq chip name for the driver" 2020-08-19 15:08:37 -07:00
qctecmdr
5e72daf3f2 Merge "pci: msm: Add support to handle ep driver requested link down" 2020-08-19 15:08:37 -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
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
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
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
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
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
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
Pavankumar Kondeti
dbb563984a sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I5e27121c3625d21d0a5abedcda9bcbfc947f5359
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-08-18 12:22:45 +05:30
Hemant Kumar
3e0d1c8b21 mhi: core: Set bhi and bhie to NULL upon power down
Set the bhi and bhie pointers to NULL as part of clean
up. This makes sure that stale pointers are not accessed
in case the bhi or bhie is failed to initialize during
power up.

Change-Id: Iddbd3a8234ff4d384ab03081479d55faf10d9443
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-08-17 23:18:36 -07:00
Shawn Shin
3eadb769c6 soc: qcom: add microdump collector
Collects data from SMEM region when modem crashes
and stores it under /dev to expose to user space.

Change-Id: I6b79a2ea7f7d9d7507e8c44dd1d385a185759ac1
Signed-off-by: Shawn Shin <shshin@codeaurora.org>
2020-08-17 21:52:12 -07:00
qctecmdr
4c39afb36f Merge "drivers: thermal: don't reset ops pointer in of-thermal sensor unregister" 2020-08-17 21:17:59 -07:00
qctecmdr
5277fb38c4 Merge "sched/walt: Improve the scheduler" 2020-08-17 21:17:58 -07:00
Fenglin Wu
880117aa48 input: qcom-hv-haptics: toggle CAL_EN mode if HBST is in open loop
When RC_CLK_CAL_EN is set in auto mode while haptics boost is working
in open loop, the first cycle of the vibration would be played
incorrectly because the haptics module couldn't get enough clock count
before the play gets triggered. Fix this by toggling the RC clock
calibration mode from disabled to auto mode.

Change-Id: I80b3c48b9bb508b12841a679eafa2c618771edf2
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-08-18 11:00:58 +08:00
Fenglin Wu
7d3ecfd796 input: qcom-hv-haptics: read CAL_TLRA_CL_STS from SDAM after boot up
During LRA frequency calibration, reading CAL_TLRA_CL_STS has to be
done before de-asserting play. In the boot up LRA frequency calibration
sequence, CAL_TLRA_CL_STS was read out and stored in SDAM module
registers by the bootloader. Later, HLOS haptics driver can read it from
there and use it for calculating LRA frequency. This boot up LRA
frequency calibration sequence is only available for PM8350B 2.0 chip.
Update the driver to support this.

Change-Id: I0b81e79bad57160f9c79e01151e2d4060b4bbd41
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-08-18 08:11:17 +08:00
Fenglin Wu
cf23f6122f input: qcom-hv-haptics: update RC_CLK_CAL_COUNT calculation
RC_CLK_CAL_COUNT is the calibration count used in manual RC_CLK_CAL
mode when playing FIFO patterns. For haptics module in PM8350B 2.0,
there are new equations recommended to calculate RC_CLK_CAL_COUNT
based on CAL_TLRA_CL_STS and LAST_GOOD_TLRA_CL_STS status to achieve
better accuracy. Update the driver to support this.

Change-Id: I983c1b1f284006847549d2b3d23a0c1039f8b4c1
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-08-18 08:09:40 +08:00
qctecmdr
18046fc5a8 Merge "msm: kgsl: Add clocks to access KGSL SMMU register space" 2020-08-17 17:03:51 -07:00
qctecmdr
627cf1be0c Merge "clk: qcom: rpmh: Add support for RPMH clocks for sdxlemur" 2020-08-17 17:03:50 -07:00
qctecmdr
7fcf64dcc2 Merge "defconfig: Add support for ARM_APPENDED_DTB for sdxlemur" 2020-08-17 17:03:50 -07:00
qctecmdr
214b829cea Merge "cnss2: Check for FW / IMS status for WFC QMI messages" 2020-08-17 17:03:50 -07:00