Commit graph

883,801 commits

Author SHA1 Message Date
qctecmdr
aa259d599a Merge "trace: msm_low_power: update text description" 2020-05-22 16:30:13 -07:00
qctecmdr
07b4fed769 Merge "nvmem: core: Export nvmem cell info to userspace" 2020-05-22 16:30:12 -07:00
qctecmdr
32b9fcd606 Merge "usb: dwc3: gadget: Give back staled requests" 2020-05-22 16:30:12 -07:00
qctecmdr
fe64ebf9ac Merge "msm: adsprpc: Print and return appropriate error codes" 2020-05-22 16:30:11 -07:00
qctecmdr
3116e4c12a Merge "msm: kgsl: Add support for A619 GPU variant" 2020-05-22 16:30:10 -07:00
qctecmdr
c6886a4d66 Merge "Makefile: Add a check of CONFIG_TRIM_UNUSED_KSYMS before remaking vmlinux" 2020-05-22 12:06:22 -07:00
Hareesh Gundu
d195b2ce1a msm: kgsl: Add support for A619 GPU variant
Add A619 GPU variant support to deal with different
feature set of A619 GPU.

Change-Id: I4df945af138d03868fc0b26d915145e564d056ad
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-05-21 23:07:02 -07:00
qctecmdr
4def047588 Merge "cnss2: Assert for recovery if there is already a recovery going on" 2020-05-21 20:58:09 -07:00
qctecmdr
cd64d72587 Merge "cnss2: Add build type info to wlfw_cap_req_msg" 2020-05-21 20:58:08 -07:00
qctecmdr
291fbc8b8f Merge "thermal: core: Add appropriate error checks" 2020-05-21 20:58:08 -07:00
qctecmdr
bf3bfdb120 Merge "msm: cvp: Treat DME stream corrupt as warning" 2020-05-21 20:58:08 -07:00
qctecmdr
9f8ad4f985 Merge "dwc3: core: Add ssp u3 u0 link state related quirk" 2020-05-21 20:58:07 -07:00
qctecmdr
c98a527df5 Merge "dwc3: gadget: Add handling of bus resume and L1 resume functionality" 2020-05-21 20:58:06 -07:00
qctecmdr
626e105a1d Merge "scsi: ufshcd-qti: Invoke sysfs node creation" 2020-05-21 20:58:05 -07:00
Thinh Nguyen
b5d521a3df usb: dwc3: gadget: Give back staled requests
If a request is dequeued, the transfer is cancelled. Give back all
the started requests.

In most scenarios, the function driver dequeues all requests of a
transfer when there's a failure. If the function driver follows this,
then it's fine. If not, then we'd be skipping TRBs at different points
within the dequeue and enqueue pointers, making dequeue/enqueue pointers
useless. To enforce and make sure that we're properly skipping TRBs,
cancel all the started requests and give back all the cancelled requests
to the function drivers.

Change-Id: Ia344a480048383f3fd7c16afbc9f7b0062492879
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Patch-mainline: linux-usb @ 05/03/20, 13:24
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-21 20:12:36 -07:00
Lina Iyer
bf921e5e8a trace: msm_low_power: update text description
The value printed on cpu idle exit is a return value from the PSCI call.
To avoid confusion, let's change the text to match the return value.

Change-Id: I8938287fb4d2887aa190af835618d1d0e9f18a99
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-05-21 18:35:19 -07:00
qctecmdr
66aef21f38 Merge "drivers: rpm-smd: Add support to make rpm-smd as module" 2020-05-21 18:18:22 -07:00
qctecmdr
09fd506f88 Merge "msm: kgsl: Add kobject sysfs ops for the /sys/kernel/gpu directory" 2020-05-21 18:18:22 -07:00
qctecmdr
484e534439 Merge "build.config.common: Revert the compiler back to clang-r370808" 2020-05-21 18:18:21 -07:00
qctecmdr
23d0cc5e97 Merge "soc: qcom: pil: allow subsystem to allocate extra memory" 2020-05-21 18:18:20 -07:00
qctecmdr
4834018094 Merge "net: qrtr: Remove rcu logic for port lookup/remove" 2020-05-21 18:18:19 -07:00
Asutosh Das
9c0dff45b9 scsi: ufshcd-qti: Invoke sysfs node creation
Creates host specific sysfs nodes for UFS.

Change-Id: I8a2023aa9164216de7ba720fe469a73899c448d0
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-05-21 14:01:07 -07:00
Nitin Rawat
59c76b3648 scsi: ufs: Resume ufs host before accessing ufs device
As a part of sysfs reading of descriptors/attributes/flags,
query commands should only be executed when hba's
power runtime status is active.
To guarantee this, add pm_runtime_get/put_sync()
to those paths where query commands are sent.

Change-Id: Ieb924efd3159c7422e50bb69ecf70b369ec72d89
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-05-21 14:00:30 -07:00
Prakruthi Deepak Heragu
36a8a2affe Makefile: Add a check of CONFIG_TRIM_UNUSED_KSYMS before remaking vmlinux
Gaurd the rule to re generate vmlinux only when CONFIG_TRIM_UNUSED_KSYMS
is set. Without this change, the vmlinux was generated twice as opposed to
Image generating only once.

Change-Id: I8370f64553b0ed7cb6536aabb1c68d77e5b58bf1
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-05-21 12:53:35 -07:00
George Shen
c31102b141 msm: cvp: Treat DME stream corrupt as warning
HFI error, stream corrupt, will not cause functionality issue.
Do not handle it as error case.

Change-Id: Ieebf003e2fc7bd76dc197e8ff5b8eea8d1a917b3
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-21 10:31:34 -07:00
Ram Chandrasekar
0d9f1a7c98 thermal: core: Add appropriate error checks
Add error checks in place to catch the errors returned by the API,
instead of assuming success and proceeding.

Change-Id: I8cd8b826f22a9406e934afaedc88e630695fb187
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-05-21 10:16:29 -07:00
Nurit Lichtenstein
8585458497 soc: qcom: pil: allow subsystem to allocate extra memory
Allow the subsystem to use some extra memory allocated
after the end of the image, for the subsystem to use.

This is porting from Kona of commit SHA:1279fb070282.

Change-Id: I79d19c9e48b7893d10ac814fb42e5783651417b4
Signed-off-by: Nurit Lichtenstein <nuritl@codeaurora.org>
2020-05-21 15:42:04 +03:00
qctecmdr
f5e3002533 Merge "msm: cvp: Avoid sending DSP HFI buf twice" 2020-05-21 04:27:57 -07:00
qctecmdr
d4a46395f8 Merge "mhi: core: improve bandwidth switch events processing" 2020-05-21 04:27:57 -07:00
qctecmdr
a0f82a4ca9 Merge "cnss2: Assert if unexpected second QMI server arrive comes" 2020-05-21 04:27:56 -07:00
qctecmdr
1d3fc4577b Merge "ALSA: pcm: add macro SND_PCM_ADD_VOLUME_CTL and SND_PCM_ADD_USR_CTL" 2020-05-21 04:27:56 -07:00
qctecmdr
e64b030a69 Merge "cpufreq: qcom: Update the scheduler of throttle removal" 2020-05-21 04:27:56 -07:00
qctecmdr
70c723e217 Merge "msm: cvp: Avoids DSP memory leak" 2020-05-21 00:50:56 -07:00
qctecmdr
5e13fc010c Merge "crypto: msm: make qcrypto and qcedev independent of DEBUG_FS" 2020-05-21 00:50:56 -07:00
qctecmdr
16b8d19f54 Merge "Merge android-5.4.30 (5cfdde5) into msm-5.4" 2020-05-20 19:17:35 -07:00
Bhaumik Bhatt
649971df7a mhi: core: improve bandwidth switch events processing
We may unnecessarily wake up the device when there is no pending
bandwidth switch request. Avoid that by only asserting device wake if
one is pending. We can also have the underlying MHI bus go to suspend
while a device requested bandwidth switch is yet to be processed.
Prevent host suspends by capturing both bus and device votes and
increment pending packets to reject suspends while the processing is
ongoing.

Change-Id: I4eddb6bf9eaa973be5c0b0ac516269e54599b9f2
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-05-20 14:39:08 -07:00
Raghavendra Rao Ananta
e52a433a54 build.config.common: Revert the compiler back to clang-r370808
Due to the recent issues seen while parsing the va_args(), the compiler
is switched back to the older version,  clang-r370808, which is much
stable than the current one. Update the ABI snapshot accordingly.

Change-Id: Ib3c6b23ba40a9c036b961e839b89280aaa1cfd4e
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-05-20 14:12:42 -07:00
Yue Ma
8420494178 cnss2: Assert if unexpected second QMI server arrive comes
Only one QMI server arrive should come for WLFW service. Hence only
assert if unexpected second server arrive comes for debug purpose.

Change-Id: Ib8cf80a544038904685a3d3a054fc7f3189a4a30
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-05-20 14:09:45 -07:00
Raghavendra Kakarla
25ca211627 drivers: rpm-smd: Add support to make rpm-smd as module
Add support to make rpm-smd as module driver.

Change-Id: Iddc66bd58ddc1b4c821768c7e368d620ab964322
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-05-20 22:51:42 +05:30
Jordan Crouse
88ff0b5ea0 msm: kgsl: Add kobject sysfs ops for the /sys/kernel/gpu directory
Commit 2726e792a2 ("msm: kgsl: Fix linked sysfs files") thought it was
clever by reusing the callbacks for the sysfs nodes that were linked to
/sys/kernel/gpu. Unfortunately, since the /sys/kernel/gpu kobject didn't
have a device attached the callback function ended up dereferencing
nothing.

Instead, create a full kobject infrastructure with sysfs_ops and a built
in kobj to access the KGSL device. We can still use the callbacks albeit
with a wrapper to make them work from both locations. While we are in
the midst of this, make a header for the new attributes and macros so
that we can later move some of the nodes out of kgsl_pwrctrl.c with
less disruption.

Change-Id: Ic0dedbad5b9d7323d4f43328540dce91cc58015e
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-05-20 07:13:09 -06:00
Mohammed Nayeem Ur Rahman
5b72c9345c msm: adsprpc: Print and return appropriate error codes
Log, catch errors, print and return appropriate error codes
wherever necessary.

Change-Id: Id2336fd128a089ab88a94f5370ab70611305c9c8
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-05-20 17:14:28 +05:30
Prerna Kalla
80acd2bcf5 crypto: msm: make qcrypto and qcedev independent of DEBUG_FS
qcrypto_init() and qcedev_init() should not be dependent on
DEBUG_FS API's returning success. Continue device init,when
DEBUG_FS is disabled.

Change-Id: I32cca791db545f5f2f9ea7871c091b121082dfbc
Signed-off-by: Prerna Kalla <prernak@codeaurora.org>
2020-05-19 21:56:21 -07:00
Taniya Das
4b15241f15 cpufreq: qcom: Update the scheduler of throttle removal
There can be a case where the frequency at the time of throttle removal
was not the max frequency. Thus the scheduler update sent would not be
the max frequency, which would result in wrong capacity calculation,
even though the CPU frequency is bumped to max frequency later.

Thus update the scheduler with the cpuinfo max frequency before enabling
the throttle IRQ.

Change-Id: I3fe95e326a81fba9af1e0ea86d5281d291a2c9b6
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-05-19 20:35:11 -07:00
Chris Lew
28ed3ab34f net: qrtr: Remove rcu logic for port lookup/remove
synchronize_rcu() is slow and can create delays on creating/removing
sockets.

Some clients have latency requirements for spinning off a
thread that creates a client and lookup sockets for some sessions. They
close the lookup socket during this sequence which causes delays. Each
call to synchronize_rcu takes 20-40 ms which is too long.

Remove the rcu logic and change qrtr_port_lock to a spinlock so it can
be used in qrtr_port_lookup which may be used in atomic context.

Change-Id: I3244e31d3ca0599df794d3936033735bcdd3e972
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-05-19 19:09:59 -07:00
Chris Lew
9f4ad55602 net: qrtr: Do not take sock lock on blocking recv
Socket client's should be able to block on recv without blocking other
socket operations such as sending. The qrtr core logic should also be
able to operate on the sock while a client is blocked in recv. Remove
the sock lock from around the recv_datagram to allow execution to
continue while a client is blocked in recv.

Change-Id: I6adb09b8e44c5ff3542b88db87b376a3ae5cb5ba
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-05-19 19:03:56 -07:00
Meng Wang
49a132aa9c ALSA: pcm: add macro SND_PCM_ADD_VOLUME_CTL and SND_PCM_ADD_USR_CTL
Add macro SND_PCM_ADD_CTL to identify if snd_pcm_add_usr_ctls
and snd_pcm_add_volume_ctls are called from ASoC.

Change-Id: I7542b180fcf3861b9adbf1d36780613703fcdcad
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-05-20 08:23:52 +08:00
George Shen
021b9bfe46 msm: cvp: Avoids DSP memory leak
Call dma_buf put function to decrement dma_buf use count after
the buffer is un-mapped from CVP address space.

Change-Id: I3007ff8fc55796ae21ee3995ff3456a6e207f804
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-19 16:15:07 -07:00
qctecmdr
a6ae9f824c Merge "pwm: qti-lpg: Fix erroneous clearing of LUT" 2020-05-19 15:13:24 -07:00
qctecmdr
466f575715 Merge "CSR: Keep qdss clk being on for msr register before msr_reset" 2020-05-19 15:13:23 -07:00
qctecmdr
8adf183fac Merge "Revert "sched: reduce sleep duration in wait_task_inactive()"" 2020-05-19 15:13:23 -07:00