Commit graph

899,461 commits

Author SHA1 Message Date
qctecmdr
fffc7785e6 Merge "msm: ep_pcie: Correct clkreq override value" 2021-07-27 09:39:52 -07:00
qctecmdr
bf25f30620 Merge "msm: ep_pcie: Allow L1 states while switching back to D0 from D3hot" 2021-07-27 09:39:52 -07:00
Siva Kumar Akkireddi
821b9fac95 msm: ep_pcie: Correct clkreq override value
Use unshifted value to set the clock req override value
and enable fields as the register write function already
shifts the values to the correct position.

Change-Id: I0b5dea0f6f8462363471910ffe93f8f8975e7929
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2021-07-27 07:13:39 -07:00
Veerabhadrarao Badiganti
79f29bc3c1 msm: ep_pcie: Allow L1 states while switching back to D0 from D3hot
During D3hot, we are explicitly blocking L1 state by setting
REQ_EXIT_L1 bit of PM_CTRL register. If we transitioning back to D0
from D3 (without D3cold), REQ_EXIT_L1 bit won't get cleared. And
L1 would get blocked till next D3cold. Clear this explicitly during
D0 to avoid this scenario.

Change-Id: Ib168dee255f29832600ebca14eea1ac2ea393985
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2021-07-27 07:09:07 -07:00
qctecmdr
2be0043e65 Merge "clk: qcom: dispcc-blair: Allow config of cdivs for byte clk" 2021-07-27 05:37:20 -07:00
BIVASH KUMAR SINGH
8493c5affb clk: qcom: dispcc-blair: Allow config of cdivs for byte clk
Change the clk_regmap_div_ro ops to clk_regmap_div ops to
allow dynamic configuration of the cdivs. This is required
for cphy configuration where the byte intf clock need to be
the same frequency as its byte clock.

Change-Id: Iddf733697b7287577f690bd5535a60f406b7129a
Signed-off-by: BIVASH KUMAR SINGH <bkumarsi@codeaurora.org>
2021-07-27 02:04:14 -07:00
Tapas Dey
30e5a66dad NFC: Fix NULL pointer dereference issue
Modify code and add proper NULL check to avoid
NULL pointer dereference.

Change-Id: I09c6a74b653b12e60c48fc5f63cca9148e117ee9
Signed-off-by: Tapas Dey <tdey@codeaurora.org>
2021-07-26 21:55:53 -07:00
qctecmdr
9f842b7a49 Merge "msm: kgsl: Initialize cb_num for secure context" 2021-07-26 09:06:05 -07:00
qctecmdr
b24468ce1b Merge "drivers: rpmh: Always bug_on() upon timeout in rpmh_write_batch()" 2021-07-26 09:06:04 -07:00
Harshitha Sai Neelati
ded39f3537 msm: kgsl: Initialize cb_num for secure context
Currently we are not initializing cb_num for secure context.
This is causing problems in the kgsl fault handler path when
there is a pagefault for secure context. Hence initialize cb_num
for secure context.

Change-Id: I35a37193f512f315f443e9f0d92fdae11411bbd2
Signed-off-by: Harshitha Sai Neelati <hsaineel@codeaurora.org>
2021-07-26 14:40:47 +05:30
Maulik Shah
af4be8e107 drivers: rpmh: Always bug_on() upon timeout in rpmh_write_batch()
rpmh_rsc_debug() can race with tcs_tx_done() interrupt handler and
may not see any tcs busy and hence won't do bug_on(). Later it may
go ahead and free() the request which interrupt handler is processing.

Lets always bug_on() upon timeout.

Change-Id: I238a6a3639077850df158cb1f0190656e014bb57
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2021-07-26 01:19:33 -07:00
qctecmdr
4028cd304e Merge "mmc: core: Fix mmc sleep/awake functionality" 2021-07-25 22:10:10 -07:00
Naman Padhiar
d915a46562 icnss2: Add check for max thermal state
Add check for maximum thermal state while setting
current state.

Change-Id: I4ade853d0cda1d8754486dc6dd8f53596fae7a9a
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-07-23 03:44:32 -07:00
qctecmdr
879de41f37 Merge "serial: msm_geni_serial: Bailout from wait_for_transfers_inflight" 2021-07-22 09:36:34 -07:00
qctecmdr
5091ce2063 Merge "tz_log: update TZ version for enlarged buf" 2021-07-22 09:36:33 -07:00
qctecmdr
bb1eae380d Merge "ANDROID: gki_config: disable per-cgroup pressure tracking" 2021-07-22 03:24:20 -07:00
qctecmdr
c67017ec6f Merge "mmc: sdhci-msm: Adding delay of 200us after deassert" 2021-07-22 03:24:19 -07:00
Chandana Kishori Chiluveru
c4314b02d9 serial: msm_geni_serial: Bailout from wait_for_transfers_inflight
This change is to avoid potential race btw stop rx and incoming
SOC RX data in parallel. During suspend path wait_for_transfers_inflight()
logic will check for TX/RX data pending for completion. Check for RX_LEN_IN
status in wait_for_transfers_inflight() and return -EBUSY to avoid race
between stop_rx and SOC RX data.

Change-Id: I28702d3dc11ee4b6d3fe5b4bad9a19099d8cf725
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2021-07-21 22:37:32 -07:00
Gauri Joshi
8d7347a6c3 msm: ep-pcie: Clear L23 READY after enumeration
L23_READY bit in the PARF_PM_CTRL register is set coming
out of PBL. Clear it once PCIe enumerates. This will avoid
the corner case where L23_READY is sent to the host causing
the link to be disable before the EP PCIe driver has had a
chance to disable the endpoint cleanly.

Change-Id: I2159cf88c4ec5f2b38b7134e42c6a069a9738d6c
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-07-21 16:13:10 -07:00
Gaurav Kashyap
0ed0ca2840 tz_log: update TZ version for enlarged buf
Update the TZ version to include the latest diag version
when choosing to use enlarged buffers.

Change-Id: Icd285c171957d0ddf6d4e9980bae33fa7b5eb9ec
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2021-07-20 21:05:39 +05:30
qctecmdr
f627bf94a3 Merge "drivers: pinctrl: sdxlemur: Update GPIO PDC map" 2021-07-20 07:13:31 -07:00
Maramaina Naresh
943d21abf7 mmc: sdhci-msm: Adding delay of 200us after deassert
After BCR reset while reconfiguring the SDHC registers
Interrupt Signal Enable Register does not reflect the value
and so it fails initialization of eMMC. As per design constraint
it requires 200us delay after BCR reset.

Change-Id: I99eca34e02a1b2557dca3b3da5a0cbeb32b7aff5
Signed-off-by: Maramaina Naresh <mnaresh@codeaurora.org>
2021-07-20 04:21:39 -07:00
Tushar Nimkar
8058227d71 drivers: pinctrl: sdxlemur: Update GPIO PDC map
This change updates gpio to pdc mapping for sdxlemur.

Change-Id: I0149b3cc798815693a7999335444419b1d896444
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2021-07-20 03:02:36 -07:00
Sayali Lokhande
94096bd1d9 mmc: core: Fix mmc sleep/awake functionality
Currently as part of mmc suspend and resume, we are using
different api's to check support for cmd5 (sleep/awake),
which results in suspend sending cmd5 for sleep, while
in resume it's always going for full init instead of sending
cmd5 for awake. Fix this by using same api in both suspend
and resume paths so that partial init functionality is
actually utilized.

Change-Id: Ia84b7790fe00f1f24a63d6dc509646ebcbd4d3ef
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2021-07-20 00:29:38 -07:00
Naman Padhiar
7c5235d350 cnss2: Avoid ASSERT in panic handler
Avoid calling ASSERT from select_window API when it called
from panic handler. As device is already crashed, calling
ASSERT will just add unwanted prints and dump stacks.

Change-Id: If38be6d8e452c49cabfa059b4bf12b2f8a3c60a2
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-07-19 21:10:29 -07:00
qctecmdr
c7f857a07a Merge "iio: qcom-spmi-adc5: Add support for SW calibrated ADC" 2021-07-19 07:43:28 -07:00
qctecmdr
0d493e403d Merge "usb: dwc3: Perform pm_runtime async op for suspend in ep_disable" 2021-07-19 03:51:11 -07:00
qctecmdr
bcc74eacc3 Merge "serial: msm_geni_serial: Reset UART error code to default during shutdown" 2021-07-19 03:51:10 -07:00
Suren Baghdasaryan
824379ca02 ANDROID: gki_config: disable per-cgroup pressure tracking
Disable per-cgroup psi tracking to prevent unnecessary overhead since
Android does not use per-cgroup psi information.

Bug: 178872719
Bug: 191734423
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ic6f84630cd478139fb8cce00410163e4e767c86a
Git-commit: 11914c382bf591ad7abe921dc6163d7d76580eca
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-07-19 11:41:23 +05:30
Suren Baghdasaryan
d7c408834c FROMGIT: cgroup: make per-cgroup pressure stall tracking configurable
PSI accounts stalls for each cgroup separately and aggregates it at each
level of the hierarchy. This causes additional overhead with psi_avgs_work
being called for each cgroup in the hierarchy. psi_avgs_work has been
highly optimized, however on systems with large number of cgroups the
overhead becomes noticeable.
Systems which use PSI only at the system level could avoid this overhead
if PSI can be configured to skip per-cgroup stall accounting.
Add "cgroup_disable=pressure" kernel command-line option to allow
requesting system-wide only pressure stall accounting. When set, it
keeps system-wide accounting under /proc/pressure/ but skips accounting
for individual cgroups and does not expose PSI nodes in cgroup hierarchy.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Link:  https://lore.kernel.org/patchwork/patch/1435705
(cherry picked from commit 3958e2d0c34e18c41b60dc01832bd670a59ef70f
 https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git tj).

Bug: 178872719
Bug: 191734423
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ifc8fbc52f9a1131d7c2668edbb44c525c76c3360
Git-commit: 51d71fb0b369ebb739658bf6555e8a01c6073e98
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-07-19 11:35:36 +05:30
Udipto Goswami
336d33b938 usb: dwc3: Perform pm_runtime async op for suspend in ep_disable
The ep_disable functions uses pm_runtime_get_sync &
pm_runtime_put_sync_autosuspend to manage the dev & sysdev,
however doing auto suspend in sync context might lead to
errors on runtime framework due to the ASYNC flag not set.
When this happens, the runtime framework triggers
__might_sleep which in turn leads to a kernel panic.

Fix this by performing pm_runtime_put_autosuspend instead
of doing sync. This will set the ASYNC flag and will not go
for might_sleep check.

Change-Id: I9cff7738def5fac94d11e7648efc3602b9fe3ea6
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-07-18 22:29:40 -07:00
qctecmdr
20a7522917 Merge "sched: walt: resurrect walt_high_irqload tunable" 2021-07-18 20:01:52 -07:00
Jishnu Prakash
b8fb16ef6c iio: qcom-spmi-adc5: Add support for SW calibrated ADC
Add support for reading ADC channels on a PMIC7 ADC directly from
the ADC_PBS peripheral on that PMIC instead of through PMK8350
ADC peripheral using PBS, for targets where PMK8350 does not run in
master mode.

The conversion request sequence for using ADC_PBS is similar to
the existing one for ADC7, with some differences in register
writes. In addition, SW now performs calibration in place of PBS,
for every conversion, by reading the three calibration channels,
calculating the reference values and entering them in the
calibration registers.

Change-Id: I9e47ed69e75ee2580a37195ea9063f24ffb8aac5
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2021-07-18 11:39:17 +05:30
qctecmdr
c9a0e4a185 Merge "defconfig: sdxlemur: Disable IOSS v1 driver" 2021-07-16 18:07:03 -07:00
qctecmdr
8e0dd5e495 Merge "usb: dwc3: Drive a pulse on DP for iio based cdp charger detection also" 2021-07-16 12:14:01 -07:00
Rohith Kollalsi
fcabf41404 usb: dwc3: Drive a pulse on DP for iio based cdp charger detection also
Charger detection can be iio based or psy based or ADSP based. In case
of psy based charger detection POWER_SUPPLY_USB_TYPE_CDP enum is
returned, while in case of iio based charger detection
POWER_SUPPLY_TYPE_USB_CDP enum is returned for cdp detection. Current
case is handling only psy based charger detection i.e driving a pulse
on DP for cdp detection is happening only for psy based charger
detection ensuring proper CDP detection, while failure is seen in
case of iio based cdp charger detection. Hence add support to check
appropriate enum for iio based charger detection as well. To add more
info for ADSP based charger detection driving of dp pulse will be
taken care by adsp.

Change-Id: I991a44efb77542b21fbfce14ab98ffad3f102edb
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-07-16 03:52:17 -07:00
qctecmdr
1b96e874d1 Merge "uapi: Add UAPI headers for QBG" 2021-07-16 02:30:12 -07:00
qctecmdr
a4010d6c6a Merge "serial: msm-geni-serial: Update is_clock_off to atomic variable" 2021-07-16 02:30:12 -07:00
qctecmdr
7657cd1d27 Merge "clk: qcom: common: Check for rclks before access" 2021-07-15 22:43:03 -07:00
qctecmdr
32fa4672a0 Merge "pci: msm: Update NTN3 de-emphasis values via I2C" 2021-07-15 22:42:49 -07:00
Chandana Kishori Chiluveru
f5945564e7 serial: msm_geni_serial: Reset UART error code to default during shutdown
Currently driver is seting UART error code to default only when
BT host calling TIOCFAULT crash ioctl.

This change is to reset UART error code to default during shutdown
so that it will helps in passing correct UART error code from UART driver
from next session.

Change-Id: I2a073634699d54e905ca3970392563f7d8130640
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2021-07-15 22:39:36 -07:00
Chandana Kishori Chiluveru
1502b7f36e serial: msm-geni-serial: Update is_clock_off to atomic variable
Update is_clock_off and wakeup_enabled variable to atomic
to avoid race conditions while accessing it.

Change-Id: I7e792b5938befeeede60f15353be328d20c25758
Signed-off-by: Anvesh Salveru <asalveru@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2021-07-15 22:36:17 -07:00
Taniya Das
5078963db4 clk: qcom: common: Check for rclks before access
The critical devices or critical clocks where the clocks of the device
node requires to be kept enabled should be checked for valid rclk before
update. Thus check for NULL before accessing the rclk.

Change-Id: Ie0cf1486f8cc422de8fce0241bd6e81fd9d7ca2b
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2021-07-15 02:32:00 -07:00
Subramanian Ananthanarayanan
71cb759242 pci: msm: Update NTN3 de-emphasis values via I2C
Change is to update the de-emphasis value of NTN3
via i2c register writes to resolve link failure
issues seen on MBB platforms.

Change-Id: If90e5efc19691a14c3d5f12af78df9ff5c2b2a25
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
2021-07-15 02:16:06 -07:00
Shyam Kumar Thella
fbda728fef uapi: Add UAPI headers for QBG
Add entries for QBG UAPI headers in gen_headers.

Change-Id: I514a2cf99f8fb3654e8d9fbb2528623c9cd4aced
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2021-07-15 00:18:28 -07:00
Paolo Abeni
a864e70eef udp: fix race between close() and udp_abort()
Kaustubh reported and diagnosed a panic in udp_lib_lookup().
The root cause is udp_abort() racing with close(). Both
racing functions acquire the socket lock, but udp{v6}_destroy_sock()
release it before performing destructive actions.

We can't easily extend the socket lock scope to avoid the race,
instead use the SOCK_DEAD flag to prevent udp_abort from doing
any action when the critical race happens.

Change-Id: I8ec3f73ed5f8324722b29450c37b4ae23a81c0f3
Diagnosed-and-tested-by: Kaustubh Pandey <kapandey@codeaurora.org>
Fixes: 5d77dca828 ("net: diag: support SOCK_DESTROY for UDP sockets")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-Commit: a8b897c7bcd47f4147d066e22cc01d1026d7640e
Git-repo: https://kernel.googlesource.com/pub/scm/linux/kernel/git/netdev/net.git
Signed-off-by: Kaustubh Pandey <kapandey@codeaurora.org>
2021-07-14 05:28:07 -07:00
qctecmdr
3ea3b05116 Merge "smcinvoke: Add retry mechanism for scm calls" 2021-07-13 19:54:04 -07:00
qctecmdr
75f42fe3ce Merge "msm: ipa3: add v2x ethernet support" 2021-07-13 19:54:03 -07:00
qctecmdr
fe311b837c Merge "net: usb: ax88179: Change to check if the packets are coming from gsb" 2021-07-13 19:54:03 -07:00
qctecmdr
706d4a2ae6 Merge "mhi: core: Fix find_last_bit() usage" 2021-07-13 19:54:02 -07:00