Commit graph

884,342 commits

Author SHA1 Message Date
Lina Iyer
dcc122e322 drivers: cpuidle: lpm-levels: check for valid LPM stats
When DEBUG_FS is not defined, the cluster->stats may be initialized to
an error value. Check for valid stats pointer before updating the start
and end times.

Change-Id: I126766a017ebd9a84bd40f19ab3ff47877615429
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-05-12 08:17:35 -06:00
himta ram
871272f118 radio: RTC6226: add support to scan valid lower freq channel
Existing scan logic will start repetitive seek
from lower freq and stops when band limit reached,
with this logic valid lower band is always ignored.
Seek one more time one band limit reached to check
if lower freq channel is valid.

CRs-Fixed: 2683848
Change-Id: I0b2608b544e0402298d1dfdc1bef96ff8ca64123
Signed-off-by: himta ram <hram@codeaurora.org>
2020-05-12 17:19:06 +05:30
Amir Samuelov
a50479ab2e soc: qcom: spss_utils: protect from event signaled twice
avoid event signaled twice.
add ioctl to check if event was signaled.

Change-Id: Ie75b9db86f2badddc08d65eee30ecd6a15795256
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2020-05-12 12:43:25 +03:00
himta ram
73d6133aa4 radio: RTC6226: post original tune event after scan complete
If FM is tuned to invalid freq and scan performed then invalid
freq also included in scan list. Post the tune event with
original frequency after the scan complete event posted to
user space to avoid the invalid tuned freq in scan list.

CRs-Fixed: 2681008
Change-Id: I8ac3b43742a4f92272fc5b0283fabcad2e04de5b
Signed-off-by: himta ram <hram@codeaurora.org>
2020-05-11 21:57:11 -07:00
Jack Pham
54f034f48c usb: gadget: Allow f_rndis and f_gsi to coexist as modules
Currently the make targets for CONFIG_USB_F_RNDIS and
CONFIG_USB_F_GSI both include rndis.o. This would work if only
one is enabled, or both are enabled as =Y as rndis.o will get
linked into the vmlinux image once. Otherwise if both are
enabled with at least one as a module, it results in a module
load failure due to duplicate symbols.

A simple fix for this is to let the usb_f_gsi.o module only
include rndis.o if CONFIG_USB_F_RNDIS is disabled.

Change-Id: Id5b96aaa9a728aa26a65b2c66f2341d6e2fb786b
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-05-11 16:38:09 -07:00
Jack Pham
15d3aa2e2f Revert "usb: Add support for rndis uplink aggregation"
This reverts commit 8beabf5115.

Change-Id: Id274597c0977cf498e61cc89649f2b7973b57a66
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-05-11 16:38:09 -07:00
Jack Pham
3e336f66c5 Revert "usb: gadget: Add support for rndis flow control callback"
This reverts commit 56a743ea1e.

Instead of needing to add a callback to the rndis_params structure,
enable/disable flow control by intercepting the RNDIS_MSG_HALT and
RNDIS_MSG_SET messages directly from gsi_rndis_command_complete().

Change-Id: Id1ecf46d9b4da585be49df4447f073b772b30468
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-05-11 16:38:02 -07:00
Asutosh Das
722dccd8b5 scsi: ufshcd-qti: Keep the correct device and link state
If the device and link are marked as off, suspend routine wouldn't
turn-off the device and link.
But the regulators would be put to lpm mode.
However, the ufs device is still drawing active mode current.
Thus this leads to a OCP in PMIC.

Hence, don't mark the device and link as off in case of error,
if it doesn't reflect the correct state.

Change-Id: I8d5a738a92a1f339c0500a617f55cb77009356b2
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-05-11 15:05:13 -07:00
Pratham Pratap
4860f89018 usb: gadget: f_qdss: Add ipc logging for qdss driver
This change adds ipc logging support for qdss function
driver.

Change-Id: I53be137a161bd7a4b0c4be250938e8fa46b2254e
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-11 14:24:04 -07:00
Bojun Pan
95c177f166 msm: ipa: enable SYSPIPE_ERR_DETECTION bit for deaggr_err
We observe the IPA RX stall due to the DEAGGR_ERR_IRQ
of PACKET_SIZE > FRAME_SIZE on rndis.
 In IPA, some of de-aggregation error handling checks
are dependent on the syspipe_err_detection config bit.
Adding IGNORE_MIN_PKT_ERR bit for rndis as well based
on recommendations.

Change-Id: Iad1c816bf3371696bf665a8702fcf27490e230d0
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-05-11 12:27:13 -07:00
qctecmdr
00cda3c5e7 Merge "regulator: qcom_pm8008-regulator: avoid transactions after suspend" 2020-05-11 12:03:33 -07:00
Bao D. Nguyen
d4b4a26a45 mmc: Define config flag to add qcom code to upstream module
Create a config flag to add Qualcomm specific code to upstream
MMC drivers.

Change-Id: I551dd96d0fde14f08f3270a0fee5842e7309d28d
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-05-11 12:01:49 -07:00
Bao D. Nguyen
13cb7ecffb mmc: Add MMC clock scaling support for sdhci-msm layer
Add the clock scaling support for SD card in the
sdhci-msm layger.

Change-Id: I17a279bea4ee589121785006e1887a6f39e3ce6a
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-05-11 12:01:37 -07:00
Bao D. Nguyen
c494419327 mmc: Add MMC clock scaling support to core layer
Add the clock scaling support for SD card to the core layer.

Change-Id: I9bfc8b581aed7013ecd2f8af65643a4e242d4b72
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-05-11 11:58:57 -07:00
Bao D. Nguyen
6351378cf9 mmc: Add MMC clock scaling support in the block layer
Add the clock scaling support for SD card in the block layer.

Change-Id: Iac02d68ce01dd2f2437b1b09dba1070c63aa0317
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-05-11 11:58:48 -07:00
Shaleen Agrawal
ced6b885d7 sched: Completely remove CFS_BANDWIDTH support in WALT
Commit I4f3c66a1b567976aadb4a4f91a3dd66230386981 removed support for
CFS_BANDWIDTH, but few stubs are left out. Remove remaining stubs.

Change-Id: I670102fa2efb585106e9c7b60277ff142d64465b
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
2020-05-11 11:54:34 -07:00
qctecmdr
30a50dfa74 Merge "msm: cvp: Allows concurrent DSP commands handling" 2020-05-11 11:32:56 -07:00
qctecmdr
f23a42d281 Merge "lpm-levels: Read next hrtimer event after tick_nohz_idle_stop_tick()" 2020-05-11 11:32:55 -07:00
qctecmdr
32bac06dde Merge "msm: cvp: Fix a cvp BW over-voting problem" 2020-05-11 11:32:55 -07:00
qctecmdr
b4a9a8f32a Merge "msm: cvp: Remove deprecated old synx usage" 2020-05-11 11:32:55 -07:00
George Shen
1d2edff2b3 msm: cvp: Rename cvpss to evass
CVP firmware renamed to "evass" (Engine for Visual
Analytic Subsystem).

Change-Id: I4d1ab032f8aa6a40581cffedbb3828525b0060b2
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-11 11:00:12 -07:00
Venkata Narendra Kumar Gutta
7b7edbd114 pinctrl: qcom: Add affinity callbacks to msmgpio IRQ chip
Wakeup capable GPIO IRQs routed via PDC are not being migrated when a
CPU is hotplugged. Add affinity callbacks to msmgpio IRQ chip to update the
affinity of wakeup capable IRQs.

Change-Id: Ic0892d583b567c7d6a2c7ab7fa9d75502c3f3a7a
Signed-off-by: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-05-11 09:34:35 -07:00
Barani Muthukumaran
4fae88ce06 Send actual keylen to TZ
Send the actual keylen instead of the shm
bridge allocation length.

Change-Id: I662078b10bf47cb1747fdec8c147faaa64b3e95d
Signed-off-by: Barani Muthukumaran <bmuthuku@codeaurora.org>
2020-05-11 09:03:49 -07:00
Gaurav Kashyap
ea1f6226ae soc: qcom: hwkm: fix minor issues
1. Fix key invalidate for double keys so that actual
   FBE keys can be removed when user is removed.
2. Don't use ICE slot for GP slot.
3. Handle KDF failures gracefully.

Change-Id: I161b96d36206378735ba564430e1f413065ba255
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2020-05-11 09:03:40 -07:00
Amir Samuelov
09c2045118 soc: qcom: spss_utils: add spss events support
Add IOCTL for wait/signal spss events.

Change-Id: Ia8ad37a1632de21e6ae4e70013ca72b4b35c68ba
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2020-05-11 03:00:06 -07:00
Veera Vegivada
7be79aedfc thermal: qcom-spmi-temp-alarm: Don't suppress negative temp
Currently driver is suppressing the negative temperature
readings from the vadc. Consumers of the thermal zones need
to read the negative temperature too. Don't suppress the
readings.

Change-Id: I147c270176d2cfce63fee71bceb64e784cfb1efa
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-05-11 15:00:47 +05:30
Mao Jinlong
7f20d186d0 Add ports and port child node check in legacy function
in get_ports_legacy function, if there is no ports and port child nodes
of device node, just return to avoid unnecessary actions.

Change-Id: Ie392f1fe8265cb3dba38ac687a0a1612e772a943
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-05-11 02:11:35 -07:00
Prerna Kalla
98cfd4573f qseecom: Set max size for dma segment
Set max size of dma segment to support requests of larger sizes.

Change-Id: I131a36bfc828d80c26bd5f463133edec6707c7fd
Signed-off-by: Prerna Kalla <prernak@codeaurora.org>
2020-05-11 01:51:40 -07:00
Deepak Kumar Singh
d684a21d1a defconfig: Enable Glink over RPM defconfig for Holi
APPS and RPM peripherals are communicated using Glink protocol.
Enable Glink over RPM to support this communication.

Change-Id: Iae0e51fb813054fd08435fd8183602347a93cdae
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-05-11 14:20:51 +05:30
Lingutla Chandrasekhar
cb8206ddb0 Revert "sched: reduce sleep duration in wait_task_inactive()"
Upstream commit '26c7295be0c5e("kthread: Do not preempt current
task if it is going to call schedule()")' makes parent thread to not
call wait_task_inactive(child) on kthread create completion, which
intern avoids calling schedule_hrtimeout() and reduce bootup latencies.

The commit 'a9e87164b8984(sched: reduce sleep duration in
wait_task_inactive())' reduces wait time to 1msec to avoid bootup
latencies. Which can be reverted now.

Change-Id: I4b2fd0abe5a264f4d662bdeab4160d1977ef6c22
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-05-11 13:51:11 +05:30
Liang Chen
99c311bb7a kthread: Do not preempt current task if it is going to call schedule()
when we create a kthread with ktrhead_create_on_cpu(),the child thread
entry is ktread.c:ktrhead() which will be preempted by the parent after
call complete(done) while schedule() is not called yet,then the parent
will call wait_task_inactive(child) but the child is still on the runqueue,
so the parent will schedule_hrtimeout() for 1 jiffy,it will waste a lot of
time,especially on startup.

  parent                             child
ktrhead_create_on_cpu()
  wait_fo_completion(&done) -----> ktread.c:ktrhead()
                             |----- complete(done);--wakeup and preempted by parent
 kthread_bind() <------------|  |-> schedule();--dequeue here
  wait_task_inactive(child)     |
   schedule_hrtimeout(1 jiffy) -|

So we hope the child just wakeup parent but not preempted by parent, and the
child is going to call schedule() soon,then the parent will not call
schedule_hrtimeout(1 jiffy) as the child is already dequeue.

The same issue for ktrhead_park()&&kthread_parkme().
This patch can save 120ms on rk312x startup with CONFIG_HZ=300.

Change-Id: Ia457e8ef58444acf7eb65c4a27ceca1d6bb6ab6f
Signed-off-by: Liang Chen <cl@rock-chips.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/20200306070133.18335-2-cl@rock-chips.com
Git-commit: 26c7295be0c5e6da3fa45970e9748be983175b1b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-05-11 13:48:31 +05:30
Laxminath Kasam
409f3e56bb Revert "ASoC: soc-pcm: BE dai needs prepare when pause release after resume"
This reverts commit 3c3dd68c48e83aca55dc72a33260a71608510160.
In QC platforms, backend is not teardown during pause state.
Backend prepare is not needed when resume from pause state.

Change-Id: Ia9f8ab36f5061f9909d9026271bac4a2f6d3e79b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-05-10 23:39:01 -07:00
George Shen
228794d04f msm: cvp: Remove deprecated old synx usage
Remove redundant un-used code.

Change-Id: I3e2d37c464833371f0fd62c8c1c31f58317fbee7
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-10 21:57:38 -07:00
qctecmdr
6690485f6b Merge "soc/qcom/hyp_core_ctl: update reserved CPUs only after VM is booted" 2020-05-10 21:13:31 -07:00
qctecmdr
0070b55b6b Merge "msm:ADSPRPC: memory map updates to remote process" 2020-05-09 23:44:37 -07:00
qctecmdr
bfc032ea12 Merge "usb: f_qdss: Fix watchdog bark issue on wait_for_completion" 2020-05-09 23:44:37 -07:00
George Shen
7b61e61f08 msm: cvp: Enhance CVP release persist buf process
Do not release CVP persist buffer until all outstanding frames
are handled by firmware.

Change-Id: I4cbff7898f57db82bd3ab2ee8a9a15873e458f2d
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-09 23:06:16 -07:00
Raghavendra Kakarla
8000490ae5 lpm-levels: Read next hrtimer event after tick_nohz_idle_stop_tick()
idle_tick is a periodic timer which sends the interrupt to cpu
for every jiffy. If next event is read before stopping the cpu
idle_tick it gives the next tick expiry time as the next event.
Current logic reading the cpu next event time before stopping
the idle tick gives shallower sleep length recorded. This prevents
cluster low power mode to get selected since next wakeup is seen
either very near to current time or as already expired.

Fix this to read next event after idle_tick has been stopped.

Change-Id: I8016c7911dc48450668a8a6bc7a6d01d4423da32
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-05-09 11:33:37 -07:00
Jagadeesh Kona
2f7b65eb5c arm64: defconfig: Add support for Global clock controller for SHIMA
Enable Global clock controller for SHIMA.

Change-Id: I1b72276c176084b473906e570f3feb7e7f587b6c
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-05-09 20:02:16 +05:30
Jagadeesh Kona
3a28d0464f clk: qcom: gcc: Update voltage voting Support for GCC CPUSS AHB clock
Add voltage voting support for GCC CPUSS AHB clock upto 100MHz.

Change-Id: I87c06750355c51c3211dc42cb93a87c933870f6b
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-05-09 19:58:48 +05:30
Taniya Das
9ccf82c8d2 cpufreq: qcom: Update logic to register for GT Limits Management interrupt
EPSS hardware generates the GT interrupt when LMH throttle occurs.
Read back the state register to get the throttled frequency and update
the scheduler accordingly. When the throttle is removed the state
register frequency would move back to the SW voted frequency.

Change-Id: I75fbbab63e88b539bc3314e7c0085b9f6249699c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-05-09 02:47:12 -07:00
qctecmdr
a92558f282 Merge "haven: ctrl: Enable setting trace class" 2020-05-08 19:54:31 -07:00
qctecmdr
d7ef1fc193 Merge "arm64: defconfig: Enable HH_IRQ_LEND for Lahaina GKI" 2020-05-08 19:54:31 -07:00
Himateja Reddy
98fa1b3fe6 msm:ADSPRPC: memory map updates to remote process
New version of interface for mapping and unmapping buffer
to remote process on DSP with additional mapping control flags.
All mappings of user allocated memory are tagged with file descriptor.

Change-Id: I2fb20df3f39476f92dbe0a6ec10e0b6065f90749
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-05-08 19:46:30 -07:00
Raghu Ananya Arabolu
e1b313d97c msm: kgsl: Handle page allocation failure
kgsl_pool_alloc_pages should return -ENOMEM if we cannot allocate
the required pages.

Change-Id: I481f81ab7ef03828290caebd8dd12cb396f98cd3
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-05-08 18:34:45 -07:00
Jeykumar Sankaran
08945b6b08 defconfig: enable display configs for trusted VM
Enable display configs for trusted VM.

Change-Id: I5edc168b7a7ae6f0c99303bc7c081c8419aff285
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2020-05-08 17:37:52 -07:00
Zhen Kong
674704aa21 firmware: qcom: add enlarged qsee log support
make changes to support enlarged qsee logs support.

Change-Id: I15908f7d2bee2dce0b35db751340a71f340ffeea
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2020-05-08 16:17:38 -07:00
David Collins
679a2d63cc regulator: qcom_pm8008-regulator: avoid transactions after suspend
The I2C bus becomes unusable for transactions after it enters
suspend.  Ensure that such transactions are not attempted after
the qcom_pm8008-regulator devices have entered suspend.

Change-Id: Ib13bc2a4a12a79bfe9c8de51ba2dc1ea23fb39c5
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-05-08 15:33:03 -07:00
Tony Truong
31abb40d39 msm: pcie: add new DRV commands for APPS to control PCIe L1ss sleep
Add support to synchronize PCIe L1ss sleep state between APPS
and DRV subsystem. This will remove any ambiguity of PCIe link
state for APPS when trying to enable/disable DRV.

Change-Id: Idb27a631a6eca3aa32a372e2e30235ef0ca10bf4
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-05-08 13:16:11 -07:00
Elliot Berman
95052fd64d hvc: haven: Prevent tty layer from closing SELF console
If HVC_HAVEN_CONSOLE is set, then kernel may be using the RM console for
printk. Thus, when userspace accesses the "self" console, we should not
be re-opening or closing this console along with userspace. In open
case, it is incorrect to open console when it is already open and may
result in an error from RM. In close case, this could cause printk
messages to be lost.

Change-Id: Ie73cc0d401c9feb45f952a3dcaaf7ec8cbfccbc9
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-05-08 13:11:26 -07:00