Commit graph

883,815 commits

Author SHA1 Message Date
qctecmdr
e9ea3e9a6b Merge "dwc3: Remove check for HWO flag in dwc3_gadget_ep_reclaim_trb_sg()" 2020-05-22 20:32:57 -07:00
qctecmdr
f3ac7df1a8 Merge "haven: Fix compilation error when DEBUG_FS is disabled" 2020-05-22 20:32:57 -07:00
qctecmdr
928682665b Merge "soc: qcom: mem-buf: Limit the number of input ACL entries" 2020-05-22 20:32:57 -07:00
qctecmdr
c48bd2c6e7 Merge "Revert "ALSA: jack: Add support to report second microphone"" 2020-05-22 16:30:14 -07:00
qctecmdr
76eff845b4 Merge "firmware: qcom_scm: Pass arginfo for sec_wdog_trigger" 2020-05-22 16:30:13 -07:00
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
Isaac J. Manjarres
0d121e6dc3 soc: qcom: mem-buf: Limit the number of input ACL entries
The number of ACL entries is currently not sanitized, which
can allow for unreasonably large ACL to be allocated for
later processing. Allowing for this to happen doesn't make much
sense, as there aren't any valid usecases that require a large
ACL, so restrict the number of ACL entries to 16. Also, while we're
here, fix up some of the error handling in a few places.

Change-Id: I5d1371ed180608486bcde1e208a36782986313af
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-05-22 14:17:56 -07:00
Isaac J. Manjarres
75455dfc54 soc: qcom: mem-buf: Fix message queue registration check
The condition that determines if we print an error after
failing to register for the mem-buf message queue checks
the return code against EPROBE_DEFER. This is not correct, as
error codes are negative, so fix the check.

Change-Id: I4ed03bde56c6edf66e0ffed060ec23a87a46be54
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-05-22 14:12:13 -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
Isaac J. Manjarres
ca3e7ebe4f soc: qcom: mem-buf: Configure the mem-buf device's DMA mask
The mem-buf device can handle memory from anywhere in the
system. This includes memory with a physical address above
32 bits, so configure the DMA mask for the mem-buf device
based on the system configuration.

Change-Id: If91bb6d8044e8e6f47994acd7e50633b46596808
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-05-22 11:10:58 -07:00
Prakruthi Deepak Heragu
ef9fb88a64 haven: Fix compilation error when DEBUG_FS is disabled
Return proper value when DEBUG_FS is disabled.

Change-Id: I6d46dcac6c6321e1a19468a81906e5f98976d29b
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-05-22 09:09:08 -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
John Stultz
2d568bad77 dwc3: Remove check for HWO flag in dwc3_gadget_ep_reclaim_trb_sg()
The check for the HWO flag in dwc3_gadget_ep_reclaim_trb_sg()
causes us to break out of the loop before we call
dwc3_gadget_ep_reclaim_completed_trb(), which is what likely
should be clearing the HWO flag.

This can cause odd behavior where we never reclaim all the trbs
in the sg list, so we never call giveback on a usb req, and that
will causes transfer stalls.

This effectively resovles the adb stalls seen on HiKey960
after userland changes started only using AIO in adbd.

Change-Id: I64ae9f0e239ae16b60f255d49ea92e2190d57b2c
Cc: YongQin Liu <yongqin.liu@linaro.org>
Cc: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Cc: Yang Fei <fei.yang@intel.com>
Cc: Thinh Nguyen <thinhn@synopsys.com>
Cc: Tejas Joglekar <tejas.joglekar@synopsys.com>
Cc: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Cc: Jack Pham <jackp@codeaurora.org>
Cc: Josh Gao <jmgao@google.com>
Cc: Todd Kjos <tkjos@google.com>
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Cc: stable@vger.kernel.org #4.20+
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Git-commit: 00e21763f2c8cab21b7befa52996d1b18bde5c42
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-20 16:24:04 -07:00
Thinh Nguyen
17e7e77f34 usb: dwc3: gadget: Wrap around when skip TRBs
When skipping TRBs, we need to account for wrapping around the ring
buffer and not modifying some invalid TRBs. Without this fix, dwc3 won't
be able to check for available TRBs.

Change-Id: I67d1deb78f5ecf03c50c4b2c40a7a067c7efa659
Cc: stable <stable@vger.kernel.org>
Fixes: 7746a8dfb3 ("usb: dwc3: gadget: extract dwc3_gadget_ep_skip_trbs()")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Git-commit: 2dedea035ae82c5af0595637a6eda4655532b21e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-20 16:23:15 -07:00
Thinh Nguyen
7d998f5d93 usb: dwc3: gadget: Don't clear flags before transfer ended
We track END_TRANSFER command completion. Don't clear transfer
started/ended flag prematurely. Otherwise, we'd run into the problem
with restarting transfer before END_TRANSFER command finishes.

Change-Id: I8290f204b58466879f15736fcc220b1c134df97a
Fixes: 6d8a019614 ("usb: dwc3: gadget: check for Missed Isoc from event status")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Git-commit: a114c4ca64bd522aec1790c7e5c60c882f699d8f
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-05-20 16:22:57 -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