Commit graph

892,914 commits

Author SHA1 Message Date
Hemant Kumar
0211a911fe msm: pcie: Add additional logging in msm_pcie_drv_resume
Add pcie logs to identify any possible latency in enabling
regulators, clks and icc as part of DRV resume.

Change-Id: I3cb72ce22773f0b6b52c9e704c9ec9a3a1de3d8c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-09-22 16:25:36 -07:00
Raghavendra Rao Ananta
5702e2b044 soc: qcom: eud: Fix enable status for secure mode
Currently, the EUD driver performs the check if bootloaders
have already enabled the EUD hardware by doing a logical OR
of EUD_CSR_EUD_EN (non-secure) and EUD_EUD_EN2 (secure), even
if the driver is configured to work in secure mode, which is
incorrect. Hence, check the status of the EUD hardware by only
looking at the respective register for that particular mode.

Change-Id: I9f005557ddb10e304fa5da723b13c1f1108d1a6f
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-09-22 15:46:27 -07:00
Manikandan Mohan
baa52351d2 cnss2: change for fixed link speed
Change for fixed link speed.

Change-Id: If2584bd534b868171d53b0b880d65cc2eeb74410
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-09-22 15:35:39 -07:00
Jack Pham
eaf38dc2bb ANDROID: kallsyms: ignore ThinLTO+CFI hash suffix in kallsyms_lookup_name()
Similar to commit f683c8dc7f ("ANDROID: kallsyms: strip hashes from
static functions with ThinLTO and CFI"), since LLVM adds a hash to
static function names when CONFIG_THINLTO and CFI are enabled, callers
of kallsyms_lookup_name() which aren't aware of the additional suffix
will fail to find the symbol. One example is kprobes (both compiled
and the dynamic events) which rely on this to resolve the function
name to attach a kprobe/kretprobe to.

Address this by also calling the cleanup_symbol_name() helper from
kallsyms_lookup_name() when failing to match a symbol by name.
This will strip off the hash suffix, if any, and attempt the
strcmp() again.

Bug: 167595670
Change-Id: I4c79c818c29b4b82a94a5a7e86ae9783a41e853d
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-09-22 20:17:26 +00:00
qctecmdr
b3e8514aef Merge "cnss2: Correct platform driver state for cnss2" 2020-09-22 11:24:20 -07:00
qctecmdr
603419fc7b Merge "defconfig: Enable smb1355 in defconfig" 2020-09-22 11:24:20 -07:00
qctecmdr
5a3cf79c1a Merge "clk: qcom: Add enable/disable to clk_regmap_mux_div_ops" 2020-09-22 11:24:20 -07:00
qctecmdr
d95a0da22f Merge "defconfig: sdxlemur: Enable EXTCON_QCOM_SPMI_MISC" 2020-09-22 11:24:19 -07:00
Pratham Pratap
caa6c4b6bd usb: f_fs: Fix memory leak if copy_from_iter_full fails
Consider a case where copy_from_iter_full fails and it
leads the driver to free the buffer which is allocated
for io_data but in ffs_free_buffer function, driver checks
for io_data->buf, which is NULL in this case, and it returns
without freeing the buffer causing memory leak. Fix this by
assigning data to io_data->buf right after memory allocation
for io_data is successful.

Change-Id: I20719fdeed603b74fe05215ec057d4cc22379ab2
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-09-22 23:27:55 +05:30
Anirudh Ghayal
679e0a56d3 power: qpnp-smb5: Modify the usage of INPUT_CURRENT_LIMIT in batt_psy
Use the property INPUT_CURRENT_LIMIT to suspend and un-suspend
USB and DC paths.

Change-Id: Id0636e7c792c63156597d5db4e9087bd5fdc262f
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-09-22 23:07:09 +05:30
Sandeep Singh
4813317b90 cnss2: Setup DMS QMI client for WLAN MAC address
WLAN MAC address can be provisioned using NV memory based setup.
DMS QMI server connection is required to retrieve this MAC address.
Thus setup DMS QMI client in cnss platform driver and send this
MAC address for WLAN FW before mission mode enable.

Change-Id: I4dac4c589910a34952b0f63fd4394f5dd02315b8
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-09-22 09:59:53 -07:00
Guru Das Srinagesh
a1f3e11e0d defconfig: sdxlemur: Enable EXTCON_QCOM_SPMI_MISC
This enables the detection of VBUS going high or low on sdxlemur
platforms where USB peripheral uses VBUS_DET peripheral from PMX65.

Change-Id: I0a30944de02403ed7b777380c3e75708f033a5bc
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-09-22 09:58:13 -07:00
Matthias Maennich
1bb4dcbb7a ANDROID: Refresh ABI.xmls with libabigail 1.8.0-1dca710a
This upgrades some types from declaration-only tracking to full type
tracking, but creates this one-time churn.

Bug: 158736583
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I39f778d7660fb4065eec2ecb6dd1ed47816e25b6
2020-09-22 17:44:09 +01:00
Ram Chandrasekar
0209bc8baa defconfig: arm64: Enable hotplug cooling device for lahaina
Enable hotplug cooling device for lahaina.

Change-Id: I4837a9c3587db764ea8dd90d48421d9409b0e158
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-09-22 09:28:12 -07:00
Ram Chandrasekar
3e4b12bdc3 drivers: thermal: Add hotplug cooling device
Add hotplug cooling device. This cooling device can be used in thermal
condition after core isolation is triggered. This will help any process
from triggering a isolated core.

Change-Id: I4e77a85d12951c839b513eb9a05462fcdf1ce6e2
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-09-22 09:28:08 -07:00
Mayank Grover
1944a78d12 ANDROID: ABI: update allowed list for QCOM
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function void devm_of_clk_del_provider(device*)'

Bug: 169127322
Change-Id: I7a05b43ba95bcde895cff221727fcc36ea7b5468
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-09-22 18:18:09 +05:30
qctecmdr
75a9b99eb8 Merge "block: Fix use-after-free issue while accessing ioscheduler lock" 2020-09-22 05:18:15 -07:00
qctecmdr
19776fc1aa Merge "mmc: core: Fix issue of no clk scaling upon previous scaling failure" 2020-09-22 05:18:15 -07:00
Naveen Yadav
3094b13953 clk: qcom: cpu: Add CPU clock driver for SDXLEMUR
Add support for sdxlemur CPU clock driver for
controlling cpu clocks.

Change-Id: I02325424dabfe96f7357844cb69a368fc04afba9
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-09-22 15:46:59 +05:30
Naveen Yadav
c7546e1c9d clk: qcom: Add enable/disable to clk_regmap_mux_div_ops
Add support for and enable and disable ops for regmap_mux_div clk, also
support for safe source for regmap_mux_div clock to park the clk to safe
source while disabling and restore to active rate when clk is enabled.

Change-Id: Ida765ec1853c2bdd17b6fce3e8012e294f4324fe
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-09-22 15:46:05 +05:30
Ashish Chavan
6126aff064 defconfig: Enable smb1355 in defconfig
Enable SMB1355 driver which controls the smb1355 parellel
charger.

Change-Id: I4b627c4fbed545d185a1b3de69738337d23dbdb0
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-09-22 02:45:31 -07:00
Shyam Kumar Thella
69966162ef power: supply: smb1355: Add support to make SMB1355 driver GKI compliant
Add support for "parallel" power supply which is not present in 5.4
kernel through IIO device and properties under it through IIO channels
under the IIO device.

Change-Id: I2f7fe8d96080ea927f1349a6742cd4e0a6ffc290
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-09-22 15:11:08 +05:30
Shyam Kumar Thella
8bfdbcbc36 dt-bindings: iio: add IIO channels for smb1355 parallel charger
Add IIO channels required by smb1355 parallel charger device.

Change-Id: If13e445dd2d1ed8f90e17a43432858348b3c1c00
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-09-22 15:11:07 +05:30
Ashish Chavan
6166aaf062 power: battery: Fix parallel charger iio-channel names
Get IIO failure may occur due to parallel charger's iio-channel
names conflicting with main-charger/qg channels. Fix this by adding
"pl_" prefix for all parallel charger's iio-channels name.

Change-Id: I20cb8f984b38d7053890380ea024a2ef15cf5789
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-09-22 15:10:58 +05:30
Ziqi Chen
ca56714204 mmc: core: Fix issue of no clk scaling upon previous scaling failure
If the current partition type is RPMB, clock switching may not
work properly. In this case, clk scaling up would be skipped but
clk_scaling->target_freq has been changed and then discard sub-
sequent clk scaling up requests till meet scaling down. Changing
judgement condition clk_scaling->target_freq == *freq to clk_scaling
->curr_freq == *freq in mmc_devfreq_set_target to avoid this issue.

Change-Id: Id0636e7c792c63156597d5db4e9087bd5fdc2621
Signed-off-by: Ziqi Chen <ziqichen@codeaurora.org>
2020-09-22 16:40:44 +08:00
Jagadeesh Kona
8e20d733b5 clk: qcom: gcc-shima: Enable clocks for pm8008 by default
The pm8008 regulator is connected over I2C and the I2C device configures
its clocks in runtime_resume and runtime_suspend. These callbacks are
triggered from the pm8008 driver's regmap calls. This means regulator
framework requests for pm8008 call into the clock framework with the
regulator framework locks held. The qcom clock providers also call into
the regulator framework with the clock framework locks held. If thread A
makes a pm8008 request at the same time thread B makes a clock request,
then it can result in deadlocks. Thread A will be stuck waiting on the
clock locks while thread B is stuck waiting on the regulator locks.

To prevent these deadlocks, enable the I2C clocks required for pm8008 by
default during probe and stop registering them with the framework. This
NOPs any client requests, since of_clk_get() returns NULL when passed an
unregistered clock and all other clock APIs return success before
grabbing any locks when passed NULL.

Change-Id: I3180f022b8ea913b4cd99b85260e72a7fa1b0693
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-09-22 12:50:17 +05:30
qctecmdr
0e13e74f0c Merge "trace: Fix race in trace_open and buffer resize call" 2020-09-21 23:57:21 -07:00
qctecmdr
74fea8b624 Merge "clk: qcom: gpucc-shima: Keep POR enabled gpu_cc_cb_clk always ON" 2020-09-21 23:57:20 -07:00
qctecmdr
175ef591a8 Merge "msm: synx: handle callback deregistration failure" 2020-09-21 23:57:20 -07:00
qctecmdr
590a7b16ba Merge "fsa4480 : support Ananlog Audio over Type-c USB on holi" 2020-09-21 23:57:19 -07:00
Sandeep Singh
f1a76b8578 cnss2: Correct platform driver state for cnss2
Correct platform driver state for cnss2.

Change-Id: I5dda8b2737533cd3927a3178029b465ebe89fc64
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-09-22 11:57:27 +05:30
qctecmdr
804a2d5b22 Merge "cnss2: Notify MHI to use already allocated images" 2020-09-21 21:02:51 -07:00
qctecmdr
88dd3569e6 Merge "clk: qcom: Update parent map to use parent_map struct" 2020-09-21 21:02:50 -07:00
Linyu Yuan
c8b92197b3 defconfig: lahaina-qgki: enable CONFIG_USB_LAN78XX
Lan7800 USB ethernet used on lahaina HDK.

Change-Id: Iba2c8b5f9827c37afeb9fe1830d9be85d7382c2a
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
2020-09-22 09:15:32 +08:00
qctecmdr
38df3556eb Merge "extcon: qcom-spmi: Add support for VBUS detection" 2020-09-21 18:12:27 -07:00
qctecmdr
2cb49d5ea4 Merge "hwmon: amoled-ecm: add support to re-enable ECM dynamically" 2020-09-21 18:12:26 -07:00
qctecmdr
838c5fc505 Merge "haven: irq_lend: add support for IRQ notifications" 2020-09-21 18:12:26 -07:00
Isaac J. Manjarres
51e5c3a11e haven: Remove unused constants
No one is using HH_RM_MEM_NOTIFY_[OWNER/RECIPIENT]. Remove them.

Change-Id: I2ee4db2e9340fc291148f885a5098dea52b4ec0b
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-09-21 17:40:41 -07:00
Murali Nalajala
e98e9702f5 haven: irq_lend: add support for IRQ notifications
Currently IRQ APIs are combined with notifications to VMs for sharing the
handles. This limit the clients for managing the error handling from the
drivers. Hence separate the notifications from the actual APIs so that
clients manage the error handling better. Add support for notifications
like IRQ_LEND/ACCEPT/RELEASE from SVM to PVM when SVM accept the irq
handle shared by PVM.

Change-Id: I49999c2d9494c68b1542680e521c012a25e3f6a8
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-09-21 15:14:37 -07:00
Yue Ma
fbef9467c3 cnss2: Notify MHI to use already allocated images
For firmware and RDDM images, notify MHI driver not to free them after
successful allocation. This can help avoid future memory allocation
failure.

Change-Id: Ic19d42c6d56707200099969e36da91f4afed0163
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-09-21 15:08:57 -07:00
qctecmdr
ac50d9af8d Merge "dt-bindings: clock: Add support for clock ids for YUPIK" 2020-09-21 15:06:35 -07:00
qctecmdr
96d58914d1 Merge "msm: kgsl: Update the mailbox message and length for ACD QMP message" 2020-09-21 15:06:35 -07:00
qctecmdr
f0421cce01 Merge "msm: kgsl: Re-define maximum number of cmds for hwscheduling" 2020-09-21 15:06:34 -07:00
qctecmdr
1f6a7259ef Merge "ANDROID: cpufreq/schedutil: add up/down frequency transition rate limits" 2020-09-21 15:06:34 -07:00
qctecmdr
7a4254dd0a Merge "msm: cvp: Make CVP SMMU fault non-fatal error" 2020-09-21 15:06:33 -07:00
qctecmdr
17f803bda2 Merge "dt-bindings: iio: Add PMX65 PMIC7 ADC support" 2020-09-21 15:06:33 -07:00
qctecmdr
b9d5927b35 Merge "power: supply: qti_battery_charger: add support for wireless FW CRC check" 2020-09-21 15:06:32 -07:00
Prakash Gupta
3f127ee7e1 iommu/arm-smmu: add qsmmuv2 sync timeout handler
Add qsmmu2 sync timeout handler.

Change-Id: Iad36efddc2189e4fae644f24946ca592b34ca2d3
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-09-22 02:18:17 +05:30
Nitin Rawat
3933ba3d84 scsi: ufs: Don't skip UFS probe in emmc based bootdevice
As a part of sync-state callback feature introduced in 5.4, clocks
which are enabled by default with the hold-state mechanism during
bootloader will be automatically disabled when the clock provider’s
i.e gcc sync-state callback triggers. So clocks enabled from boot
will be cleaned up in sync-state call back.

The sync-state callback is triggered when all consumers of a given
supplier(gcc here) have successfully probed. In current implementation,
in emmc based bootdevice, we return UFS platform driver probe failure
with reason as ENODEV which will cause the GCC sync-state callback not
getting fired and hence leaving the ufs clocks in enabled state.

So for the gcc sync state to be successful so as to remove proxy vote
for all gcc consumer ,we must not bail out and let UFS platform
driver probes successfully. Later as a part of async scan, when
UFS device detection and initialisation fails, we can turn off
power/clocks as a part of hba exit.

Change-Id: Icfcc8ceb76399f6e37454d356a5f9767f30dd4b3
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-09-22 01:49:00 +05:30
Hemant Kumar
407257c305 mhi: core: Add support to pre allocate image buffers
This allows controller to keep the memory allocated for bhi
vector table for rddm and fbc images. Memory remains allocated
after controller powers down. Add a controller flag to make the
decision for memory allocation.

Change-Id: Ic8aee54ae57f5f9351158b18cd96faf7eeb81429
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-09-21 12:36:13 -07:00