Commit graph

891,633 commits

Author SHA1 Message Date
qctecmdr
2dccc73dc0 Merge "dt-bindings: ipcc: Rename WDSP client to WPSS" 2020-10-13 23:15:11 -07:00
qctecmdr
03db2e3c1a Merge "cnss2: Increase mhi timeout to 60 seconds for firmware download" 2020-10-13 23:15:11 -07:00
qctecmdr
bac14d76ca Merge "drivers: thermal: cpu_voltage: initialize pointer variables before using it" 2020-10-13 20:34:00 -07:00
qctecmdr
2fb888326d Merge "defconfig: sdxlemur: Enable MHI Host driver" 2020-10-13 20:34:00 -07:00
qctecmdr
48d7c9d79e Merge "clk: qcom: Fix race condition when unvoting regulators in sync_state" 2020-10-13 20:33:59 -07:00
qctecmdr
89c95aa166 Merge "icnss2: Avoid calibration during SSR of WCN6750" 2020-10-13 20:33:58 -07:00
Naman Padhiar
024b204099 icnss2: Avoid calibration during SSR of WCN6750
Send Calibration mode to FW only at the time of cold
boot. At the time of SSR Calibration mode will not be
sent.

Change-Id: Idf7016384937433480f62d0912e5e3dcf76f4e44
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-13 18:26:16 -07:00
Mike Tipton
0cf6edfae0 clk: qcom: Fix race condition when unvoting regulators in sync_state
Normally clk_vote_vdd_level() and clk_unvote_vdd_level() are called
while holding the clock framework's prepare_lock since they are called
in the prepare paths. However, we're also calling clk_unvote_vdd_level()
from qcom_cc_sync_state() when removing proxy votes. This happens
outside of the clock framework, so the prepare_lock isn't protecting
this case. If the sync_state callback fires while another thread is
voting/unvoting voltage from a normal clock call, then there's a race
condition that can result in regulators being set to the incorrect
voltage or being pre-maturely disabled.

Add a mutex to protect this case.

Change-Id: Ib979e2edaaa5824dc80f7d4f065d72ca0b1a4444
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-10-13 17:58:02 -07:00
Hemant Kumar
175a539082 defconfig: sdxlemur: Enable MHI Host driver
Enable MHI core, debug and uci drivers.

Change-Id: Iae442621c2000c29dca7c72d25b6de21db8870ac
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-10-13 17:26:01 -07:00
Hemant Kumar
b140707f18 mhi: core: Fix undefined reference to `__bad_udelay'
According to the comment in arch/arm/include/asm/delay.h,
__bad_udelay is specifically designed on ARM to produce a
build failure when udelay is called with a value > 2000.
Fix the issue by using mdelay for value > 2000.

Change-Id: Ia5ee988eeef68ce60b637232e0dd3989b8cbfe64
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-10-13 16:59:41 -07:00
Hemant Kumar
7762013938 mhi: core: Perform 32 bit register reads on time sync reg
Driver is directly performing a 64 bit read on time sync
register. In order to avoid compilation error on a 32 bit
platform perform two 32 bit reads instead of 64 bit read.

Change-Id: I477647c88a0bb2b4302ce2564bdc58fc4d68e806
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-10-13 16:59:41 -07:00
Hemant Kumar
9bf568586c mhi: core: Fix missing return value check
sysfs_create_group() and mhi_read_reg_field() APIs
expect to check the return value. Add return check
to fix compilation error.

Change-Id: I0a8249cd6b87eba51c130add97098de6cafbc908
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-10-13 16:59:32 -07:00
qctecmdr
d2e2c00823 Merge "Revert "usb: typec: Fix setting of invalid value of opmode"" 2020-10-13 16:49:31 -07:00
qctecmdr
ae7ebc3fed Merge "hwmon: qti_amoled_ecm: Suppress printing error logs for probe deferral" 2020-10-13 12:29:48 -07:00
qctecmdr
e844181923 Merge "drivers: rpmsg: fix to avoid dump stack in rpm-smd driver" 2020-10-13 12:29:48 -07:00
Manaf Meethalavalappu Pallikunhi
5f1d941c51 drivers: thermal: cpu_voltage: initialize pointer variables before using it
Initialize cpu freq table pointer to NULL while defining the same.
It avoids a possible use of uninitialized value of this stack pointer
in error path.

Change-Id: If9fb6bfeb836d1f3c81ecd5d9910cf0c76b4a0c5
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2020-10-13 23:22:35 +05:30
Jeevan Shriram
56cbb0d71f Revert "usb: typec: Fix setting of invalid value of opmode"
This reverts commit 410f0c2b19.

Additional enum value in include header is causing CRC differences
with GKI kernel.

Change-Id: Ia27f4d217a6bb2e234f49cb93c4163f372f4bcd7
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-10-13 09:58:02 -07:00
qctecmdr
29371146ed Merge "msm: kgsl: Don't wait for room in context queue when context is invalidated" 2020-10-13 09:54:30 -07:00
qctecmdr
f9790cb371 Merge "icnss2: Add open loop CPR support" 2020-10-13 09:54:30 -07:00
qctecmdr
9a4517909d Merge "dt-bindings: thermal: Add support for QMI beamer ADC and RF sensors" 2020-10-13 09:54:29 -07:00
Hemant Kumar
7e01cae53b mhi: core: Add missing header file to fix compilation error
Include arch_timer.h to define arch_timer_get_cntfrq().

Change-Id: Ia2d3384bfc84df68561fcbe05cd88cd7c50ccb1e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-10-13 09:29:58 -07:00
qctecmdr
4f3b9ec973 Merge "icnss2: Send enter power save after driver suspend" 2020-10-13 07:26:53 -07:00
Naman Padhiar
3e55e8fb89 icnss2: Send enter power save after driver suspend
In PM suspend of WCN6750, host send WOW Enable to FW
and FW allows target to go to low power mode along
with PCIe link. In Host DP, even after sending WOW
enable it tries to access target for flushing pending
transactions. This will cause NOC error as link is
down.
Send enter power save mode to FW after driver suspend
returns successfully to platform driver and all pending
transactions are flushed. FW will go to low power mode
only after receiveing enter power save mode QMI.

Change-Id: I5dfb257fe3db4dc453bae456c40d19f841e3c5c8
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-13 18:09:28 +05:30
qctecmdr
836dd39290 Merge "defconfig: sdxlemur: Enable additional defconfigs" 2020-10-13 03:43:22 -07:00
qctecmdr
dbc71214fb Merge "net: qrtr: Return -ENODEV error code if port not found" 2020-10-13 03:43:21 -07:00
qctecmdr
f769cce450 Merge "cpuidle: lpm-levels: Check for valid pointer during hotplug notifications" 2020-10-13 03:43:21 -07:00
qctecmdr
c53f4ac122 Merge "soc: qcom: smp2p: Log unchanged entries" 2020-10-13 03:43:21 -07:00
qctecmdr
c93650c118 Merge "msm: kgsl: Fix the invalid cmdobj message" 2020-10-13 03:43:21 -07:00
Gopala Krishna Nuthaki
bac9091ab9 dt-bindings: thermal: Add support for QMI beamer ADC and RF sensors
Add support for QMI beamer ADC and RF sensors to apps.
It enables these sensors as thermal zone sensors so
that we can read and set trip thresholds via
thermal zone.

Change-Id: I0f56e59a319d0d6ea5b18cadc5eb675a62c485e1
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
2020-10-13 14:39:23 +05:30
qctecmdr
553154d0b1 Merge "msm: adsprpc: Donate 5MB of DMA memory for Unsigned process" 2020-10-13 01:05:43 -07:00
qctecmdr
844bc64f6a Merge "clk: qcom: smd-rpm: Change the clock voting sequence for holi" 2020-10-13 01:05:43 -07:00
qctecmdr
a27c45236a Merge "serial: msm_geni_serial: Don't use WARN_ON for console uart" 2020-10-13 01:05:42 -07:00
qctecmdr
f725e41fd7 Merge "power: qcom: Fix return value for iio get function for smb" 2020-10-13 01:05:42 -07:00
qctecmdr
17c532e42b Merge "power: smb1351-charger: Add snapshot of smb1351-charger driver" 2020-10-13 01:05:42 -07:00
qctecmdr
70e4cdc780 Merge "dt-bindings: msm: Add bindings isp and pxl path feature ids" 2020-10-13 01:05:42 -07:00
qctecmdr
578cacb8ac Merge "msm: kgsl: make per process stats atomic" 2020-10-13 01:05:41 -07:00
Gopala Krishna Nuthaki
6032b6b559 drivers: qmi_sensor: Add QMI beamer and RF sensors support
Add QMI beamer ADC sensors and RF sensors to qmi sensor
driver. It enables thermal framework can configure thermal zone
and monitor these sensors from apps side.

Change-Id: I217707a3ec90971cb7085a67a34fd92812c3c75c
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
2020-10-13 13:05:59 +05:30
Harshitha Sai Neelati
d8d0a5138d msm: kgsl: Don't wait for room in context queue when context is invalidated
In a condition where there is no room in the drawcontext queue and the
context is invalidated while sleeping in wait_event_interruptible_timeout,
we are now polling for room after wake up. This would lead to infinite
looping.

Hence, do not wait for room in context queue if context is invalidated.

Change-Id: I12c80e71630da2f3316838bee37f13cfa3b8e7d9
Signed-off-by: Harshitha Sai Neelati <hsaine@codeaurora.org>
2020-10-13 12:42:54 +05:30
Ashish Chavan
bcc613a498 power: qcom: Fix return value for iio get function for smb
Fix return values in iio read functions for smb1398 and smb1355

Change-Id: I258582c937735f6a6c70b368268ad161b35b7746
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-10-13 09:20:35 +05:30
Subbaraman Narayanamurthy
236c04e18a hwmon: qti_amoled_ecm: Suppress printing error logs for probe deferral
When active_panel is not available because of drm driver's probe
deferral, suppress printing error logs.

Change-Id: I210ff1ef79e468fef12b296c552e9611c2e888a8
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-10-12 19:11:55 -07:00
Himateja Reddy
1be85e552d msm: adsprpc: Donate 5MB of DMA memory for Unsigned process
Current code has 4MB of memory being donated to the User process
in DSP for both Signed and Unsigned process. Unsigned process has
extra static heap which requires more memory. Donate 5MB of DMA
memory for creating Unsigned process.

Change-Id: Ib1f75580d9ec61d416a0c268880395e1f3ab10fb
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-10-12 18:55:07 -07:00
qctecmdr
c08fb99fe9 Merge "msm-perf: Fixed kzalloc for perf_event" 2020-10-12 12:03:37 -07:00
qctecmdr
cf2f4e74bf Merge "usb: xhci: Reduce command reset handshake timeout" 2020-10-12 12:03:36 -07:00
qctecmdr
8d9a2999e9 Merge "netfilter: nf_conntrack_sip: Register SIP ALG sysctl table into procfs" 2020-10-12 12:03:36 -07:00
qctecmdr
2b55aa2184 Merge "defconfig: sdxlemur: Enable Aquantia forwarding driver" 2020-10-12 12:03:36 -07:00
qctecmdr
0ccebd3b3e Merge "msm: kgsl: Fix kvcalloc() calls" 2020-10-12 12:03:35 -07:00
Mohammed Siddiq
0434d02e75 cnss2: Increase mhi timeout to 60 seconds for firmware download
Increase mhi timeout to 60sec from 10sec for firmware download
as there is a case in which the ueventd in user-space is not
scheduled due to RT threads running. Once MHI power On is done
then the timeout is reverted to default 10sec.

Change-Id: I3fbb2745a789a446ca0f371f8452887372fb9482
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-10-12 23:07:45 +05:30
Maulik Shah
61d682ebe7 cpuidle: lpm-levels: Check for valid pointer during hotplug notifications
get_cpu_device() can return NULL. Add valid pointer check during hotplug
notifications.

Change-Id: I28234ed609fa45a770bb01203f7b5523532088e7
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-10-12 21:50:33 +05:30
qctecmdr
917e0c522c Merge "mm: sync rss in speculative page fault path" 2020-10-12 09:03:59 -07:00
qctecmdr
96ec95525b Merge "iommu: arm-smmu: update SID info print" 2020-10-12 09:03:59 -07:00