Commit graph

884,342 commits

Author SHA1 Message Date
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
George Shen
f4d49c6800 msm: cvp: handles dsp error more reliably
In case DSP failed to respond to CPU command correctly, cvp driver
shall ignore the DSP error other than print error message. It shall
keep working normally.

Change-Id: Id33c0063b6326bc45527e2b4d60584045ca1e07c
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-22 10:20:21 -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
Elson Roy Serrao
9dfb5f8e62 usb: dwc3: debugfs: Add support for 64bit division on 32bit chipsets
This change adds support for 64bit division on 32bit LE targets
using do_div() api.

Change-Id: I30247f514e13bcba80f707acccd65878de38dff5
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2020-05-22 05:02:34 -07:00
Tingwei Zhang
11e9935ab1 coresight: tmc: set buffer size to 32MB on SW USB mode
We are using memory as buffer for SW USB mode. Too small
buffer could cause packet drop issue. Always set ETR
buffer to 32MB on SW USB mode to resolve this issue.

Change-Id: I222152f15c5cc61141b9a9eb18c1b2bb19714174
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2020-05-22 19:29:00 +08:00
Tingwei Zhang
145e6ea341 coresight: etm4x: call cpus_read_unlock in error exit
Cpus_read_lock needs to be unlocked when setting up cpu
hotplug callback failed and exiting probe.

Change-Id: Ibbcd49d2e2d993c63b825697bc5799373f8a9a9e
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2020-05-22 19:16:21 +08: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
Jack Pham
98a6be105a usb: phy: qmp: Call chain notifier for cable connect/disconnect
USB PHY base already has an atomic notifier chain that clients can
register for using usb_register_notifier(). Use the call chain to
indicate cable connect and disconnect status for interested clients.

Change-Id: I73f7df8fbd14cb2ee99739d6f7b6cc946fb1783c
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-05-21 22:05:16 -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
Fenglin Wu
7ca15a569e input: qcom-hv-haptics: check FIFO fill status before stopping play
Check the FIFO real time fill status and only stop FIFO playing in
FIFO empty interrupt handler after confirming all FIFO samples have
been played.

Change-Id: I634f424c960893e22456734f30ae28f5030ca9e1
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-05-21 17:10:04 -07:00
Fenglin Wu
095f8ed860 input: qcom-hv-haptics: Add debugfs files for more brake settings
Add debugfs parameters per effect to enable brake and brake sine
waveform gain setting. Meanwhile, change to print the FIFO samples
with signed magnitude values so that they can be used offline to
plot pattern waveform.

Change-Id: Iaeeeedbba570333c8c4fa9793e2b4e9c1b4af09a
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-05-21 17:09:55 -07:00
Fenglin Wu
9837851fd1 input: qcom-hv-haptics: Add LRA frequency calibration interfaces
Add interfaces to run calibration sequence and read out the closed
loop LRA frequency. With this change, the closed loop LRA frequency
can be read out using following commands:

    echo 1 > /sys/class/qcom-haptics/lra_calibration
    cat /sys/class/qcom-haptics/lra_frequency_hz

Meanwhile, correct the setting for direct play, it expects a 8-bit
value to represent the proportion of vmax instead of the actual vmax
voltage.

Change-Id: I9f3bfb978240ca853446dee4877d6ece4b465058
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-05-22 07:52:08 +08:00
Guru Das Srinagesh
ce747dee68 soc: qti_battery_debug: Remove CONFIG_DEBUG_FS dependency
As a preparatory move to adding device attributes to the battery_debug
device, remove the dependency on DEBUG_FS for driver enablement and add
config guards in the driver instead.

Change-Id: I8fcb385a583564935ce472416552e25ca79f4a84
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-21 16:05:24 -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
Prakash Gupta
9aa0518142 iommu/arm-smmu: add qcom smmuv2 support
Add qcom smmuv2 support.

Change-Id: I722570ea541803c61547c04c1b413db410839b5f
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-05-21 16:38:12 +05:30
Jagadeesh Kona
da2773ed0f clk: qcom: gcc-shima: Add support for ref clocks
Add support for gcc_gpu_iref_en and gcc_ufs_1_clkref_en
in GCC for SHIMA.

Change-Id: I826cbbc8869816584c6113fd2c873b59085ec998
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-05-21 13:39:58 +05:30
Jagadeesh Kona
39938f75cd dt-bindings: clock: Add clock ids of ref clocks in GCC for SHIMA
Add clock ids for gcc_gpu_iref_clk and gcc_ufs_1_clkref_en in GCC
for SHIMA.

Change-Id: Ib1b053e14a1063704789e12b0ea97c74a0634a78
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-05-21 13:22:50 +05:30
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
Guru Das Srinagesh
10cd1eb248 thermal: adc-tm: Ensure valid match data is obtained
Ensure that a valid compatible string match is obtained during probe
before reading any further device tree parameters.

Change-Id: Idd03cfce6cc2011052ffc7fb776d7be935214172
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-20 17:45:17 -07:00