Commit graph

884,876 commits

Author SHA1 Message Date
qctecmdr
412a67e1fe Merge "msm: cvp: Add IPCC mapping for CVP FW" 2020-07-03 04:10:19 -07:00
qctecmdr
30563a4dea Merge "Revert "irqdomain: Implement and expose API to clear IRQ mapping for radix tree"" 2020-07-03 04:10:18 -07:00
qctecmdr
64f0825f01 Merge "vmscan: Support multiple kswapd threads per node" 2020-07-03 04:10:18 -07:00
qctecmdr
9b42fe6257 Merge "defconfig: enable system pm violators for lahaina" 2020-07-03 04:10:17 -07:00
qctecmdr
b5c91fa029 Merge "mm: memory_hotplug: wait on device_hotplug_lock in OOM path" 2020-07-03 04:10:17 -07:00
qctecmdr
a84a5a18b4 Merge "arm64: defconfig: add trusted touch support to GKI defconfig" 2020-07-03 04:10:16 -07:00
qctecmdr
4cc91100ed Merge "leds: qti-flash: Disable flash LED channel after De-strobe" 2020-07-03 04:10:16 -07:00
qctecmdr
b4e7c7ab9c Merge "mm: disable fault around on emulated access bit architecture" 2020-07-03 04:10:16 -07:00
qctecmdr
92fd4ddff3 Merge "msm: cvp:fix potential prop_array idx out range" 2020-07-02 22:46:56 -07:00
qctecmdr
81c099aed2 Merge "ABI: Update whitelist" 2020-07-02 22:46:56 -07:00
qctecmdr
52c24cbf41 Merge "msm: kgsl: Fix kgsl_state_is_awake for gmu targets" 2020-07-02 22:46:55 -07:00
qctecmdr
5267e2c6f8 Merge "iommu: Remove iommu_debugfs_top" 2020-07-02 22:14:46 -07:00
qctecmdr
9a8fa3bef0 Merge "arm64: Enable a bunch of android recommended configs" 2020-07-02 22:14:45 -07:00
qctecmdr
472dad2bc9 Merge "defconfig: arm64: Disable SDCARD_FS for Lahaina" 2020-07-02 22:14:45 -07:00
qctecmdr
10d4fc23ab Merge "msm: ipa: Add more ipa API to ipa framework" 2020-07-02 22:14:45 -07:00
Manikandan Mohan
89350cb1a4 cnss2: Add PBL and SBL dump only for QCA6490
Update debug support for PBL and SBL dump on QCA6490 only.

Change-Id: Iedceb40eaead0613a9616d0cbe886bfee1893148
Signed-off-by: Manikandan Mohan <[email protected]>
2020-07-02 12:23:19 -07:00
Mao Jinlong
863b645122 byte-cntr: Set offset as rwp offset when sw usb mode start
Set offset as rwp offset when sw usb mode start to avoid the data
transfer delay issue. If use etr_buf offset as initial offset,
there will be interval between rwp offset and initial offset.
Then the delay will happen.

Change-Id: I92b4326a4c38384f68bd0c60f3b487d80b334325
Signed-off-by: Mao Jinlong <[email protected]>
2020-07-02 16:01:38 +08:00
Manikandan Mohan
88d6f2172b ABI: Update internal whitelist for cnss symbols
Update internal whitelist for cnss_nl and cnss_utils kernel
module export symbols.

Change-Id: Ib3259df553ac6000d84388c725d76530c669eac0
Signed-off-by: Manikandan Mohan <[email protected]>
2020-07-01 22:00:08 -07:00
Fei Mao
6385fec1b7 input: touchscreen: focaltech_touch: Remove vfs_read()
To request a firmware file by request_firmware() is preferred.

Change-Id: I99d408793a3d52a664828cc35494d740531b0c68
Signed-off-by: Fei Mao <[email protected]>
2020-07-02 10:15:01 +08:00
Fenglin Wu
0d7ed2e07f input: qcom-hv-haptics: adjust frequency calibration sequence
Adjust following settings in frequency calibration sequence according to
HW recommendation:
 1) Use 50% auto resonance detection error window.
 2) Play for 150 ms before reading the calibration result.

Change-Id: Id43376f6878daedaf98b1d9065a3b0b363314add
Signed-off-by: Fenglin Wu <[email protected]>
2020-07-02 09:42:44 +08:00
Yue Ma
72161038f2 cnss2: Add support to create device sysfs group
Currently CNSS driver creates sysfs nodes from different paths.
Add support to create device sysfs group to consolidate the paths
so that it will be easy to extend in the future.

Change-Id: I9e923288018cad558d3cd591f08f73dcf9c60219
Signed-off-by: Yue Ma <[email protected]>
2020-07-01 12:50:14 -07:00
Yue Ma
fe4e4f287c abi: Update qcom whitelist with devm_device* APIs
Add devm_device_add_group and devm_device_remove_group to qcom
whitelist to avoid build failure.

Change-Id: I68acc186ec509e2f556019b20cfa370dbd3bab06
Signed-off-by: Yue Ma <[email protected]>
2020-07-01 12:49:29 -07:00
Hemant Kumar
4e6f18d642 pci: msm: Add support to disable L1SS sleep
Read device tree property qcom,l1ss-sleep-disable
to prevent sending L1SS sleep enable and disable
rpmsg to DRV processor. This support is added to
prevent PCIe link down caused due to manually
operating phy PLL.

Change-Id: I2f96f3dc186d3af0ffad110807204936af58814a
Signed-off-by: Hemant Kumar <[email protected]>
2020-07-01 12:02:06 -07:00
Bao D. Nguyen
40d7d6b3ab scsi: ufs: Read device tree to find UFS's Vcc voltage level
This change allows selecting the UFS Vcc voltage level by setting the
UFS's entry vcc-voltage-level in the device tree.
If UFS's Vcc voltage level setting is not found in the device tree,
use default values provided by the driver.

Change-Id: Ifc6856d63b672ed6b178f45fd5f139cb2fa56f15
Signed-off-by: Bao D. Nguyen <[email protected]>
2020-06-30 15:15:32 -07:00
Charan Teja Reddy
0112a49388 mm, memory_hotplug: update pcp lists everytime onlining a memory block
When onlining a first memory block in a zone, pcp lists are not updated
thus pcp struct will have the default setting of ->high = 0,->batch = 1.
This means till the second memory block in a zone(if it have) is onlined
the pcp lists of this zone will not contain any pages because pcp's
->count is always greater than ->high thus free_pcppages_bulk() is
called to free batch size(=1) pages every time system wants to add a
page to the pcp list through free_unref_page(). To put this in a word,
system is not using benefits offered by the pcp lists when there is a
single onlineable memory block in a zone. Correct this by always
updating the pcp lists when memory block is onlined.

Change-Id: I5a0c5cc128481fdb48b9dc4e1fe2860f59e958e3
Signed-off-by: Charan Teja Reddy <[email protected]>
[[email protected]: resolved trivial merge conflicts]
Signed-off-by: Isaac J. Manjarres <[email protected]>
2020-06-30 11:21:25 -07:00
Mayank Rana
b61b1b39a1 sound: usb: Fix check with usb_get_controller_id() for valid controller id
usb_get_controller_id() API shall returns non-negative number as valid id
related to USB controller if alias is found. Current code considers zero
as only valid controller id and doesn't update for secondary USB controller
(i.e. id as 1). This results into passing controller id as zero instead of
1 causing bus error when ADSP USB driver is trying to access primary USB
controller's register (it is supposed to access USB secondary controller's
register) when primary USB controller related clocks are voted off. Fix
this issue by updating check to consider all non-negative number as valid
number and updating same.

Change-Id: Id15edbdfd6c924000da18bbb82d0483d4d110d41
Signed-off-by: Mayank Rana <[email protected]>
2020-06-30 10:46:15 -07:00
Vipin Deep Kaur
c5d86f08db spi: spi-msm-geni: Propagate missing change from 4.19 to 5.4
Propagate following change from 4.19 to 5.4 for SPI driver.
'commit 67192635d468 ("spi: spi-geni-qcom: Check for zero length
transfer")'.

Change-Id: I27bdd8b544ba1bdaa0a868d2260c4f76c156c215
Signed-off-by: Vipin Deep Kaur <[email protected]>
2020-06-30 14:46:44 +05:30
Vipin Deep Kaur
e71111a9fa spi: spi-msm-geni: Propagate missing change from 4.19 to 5.4
Propagate following change from 4.19 to 5.4 for SPI driver.
'commit 634968af3a1f ("spi: spi-geni-qcom: Allow flexible MISO
sampling rate for SPI HLOS")'.

Change-Id: I5061cec80875e5fad4d25b04977b8ce1281818fd
Signed-off-by: Vipin Deep Kaur <[email protected]>
2020-06-30 14:32:42 +05:30
Vipin Deep Kaur
67ec5c3b8f spi: spi-msm-geni: Propagate missing change from 4.19 to 5.4
Propagate following change from 4.19 to 5.4 for SPI driver.
'commit 64485a92b029 ("spi: spi-geni-qcom: Check for Rx DMA channel
being null")'.

Change-Id: I0dc30e38d0cbbab21d26eeab17b40b14017d48ff
Signed-off-by: Vipin Deep Kaur <[email protected]>
2020-06-30 14:25:17 +05:30
Vipin Deep Kaur
ce64610d0e spi: spi-msm-geni: Propagate missing change from 4.19 to 5.4
Propagate following change from 4.19 to 5.4 for SPI driver.
'commit 185ecd35b11f ("spi: spi-geni-qcom: Reset the dma engine on
failure")'.

Change-Id: I3839d5bc773e7d7ea71ba6ff611f55f4869000f3
Signed-off-by: Vipin Deep Kaur <[email protected]>
2020-06-30 14:20:12 +05:30
prernak
3f19888c6c defconfig: msm: Enable CONFIG_QTI_TZ_LOG on perf builds
Enable CONFIG_QTI_TZ_LOG as tz logs are required on perf builds.

Change-Id: I41db5d53a8eadc794edb0ba8c0abebafbb8f4594
Signed-off-by: prernak <[email protected]>
2020-06-30 13:46:21 +05:30
Arthur Shuai
86bf6f981f arm64: defconfig: configuration for UTS namespace
Add and enable UTS namespace.

Change-Id: I07fd4034d9371d3b47e93f73f2e94334bd31afdd
Signed-off-by: Arthur Shuai <[email protected]>
2020-06-30 00:39:05 -07:00
Vipin Deep Kaur
182605a377 spi: spi-msm-geni: Propagate missing change from 4.19 to 5.4
Propagate following change from 4.19 to 5.4 for SPI driver.
'commit f5bcbeb4a2a1 ("spi-geni-qcom: Add shared_ee dtsi property
for spi driver")'.

Change-Id: Ic64d6a6e358ba5fd1898eaacfb72586cdab9184a
Signed-off-by: Vipin Deep Kaur <[email protected]>
2020-06-30 11:31:00 +05:30
Vipin Deep Kaur
196ed030ad spi: spi-msm-geni: Propagate missing change from 4.19 to 5.4
Propagate following change from 4.19 to 5.4 for SPI driver.
'commit 22cec88da571 ("i2c: i2c-qcom-geni: Add lock and unlock
tre support in I2C GSI mode")'.

Change-Id: I1b92829cd04b379e48c34b09b5ab5ef4440ac0a8
Signed-off-by: Vipin Deep Kaur <[email protected]>
2020-06-30 10:56:16 +05:30
Haseeb Khan
6086680640 msm: cvp: Re-initialize the HFI queue headers after CDSP-SSR
The change is to fix hang issue after CDSP-SSR.

Change-Id: I7608b32b5c308c08902b19b1b2343a0fae6888ab
Signed-off-by: Haseeb Khan <[email protected]>
2020-06-30 01:33:17 +05:30
Todd Kjos
6dfe047050 FROMGIT: binder: fix null deref of proc->context
The binder driver makes the assumption proc->context pointer is invariant after
initialization (as documented in the kerneldoc header for struct proc).
However, in commit f0fe2c0f050d ("binder: prevent UAF for binderfs devices II")
proc->context is set to NULL during binder_deferred_release().

Another proc was in the middle of setting up a transaction to the dying
process and crashed on a NULL pointer deref on "context" which is a local
set to &proc->context:

    new_ref->data.desc = (node == context->binder_context_mgr_node) ? 0 : 1;

Here's the stack:

[ 5237.855435] Call trace:
[ 5237.855441] binder_get_ref_for_node_olocked+0x100/0x2ec
[ 5237.855446] binder_inc_ref_for_node+0x140/0x280
[ 5237.855451] binder_translate_binder+0x1d0/0x388
[ 5237.855456] binder_transaction+0x2228/0x3730
[ 5237.855461] binder_thread_write+0x640/0x25bc
[ 5237.855466] binder_ioctl_write_read+0xb0/0x464
[ 5237.855471] binder_ioctl+0x30c/0x96c
[ 5237.855477] do_vfs_ioctl+0x3e0/0x700
[ 5237.855482] __arm64_sys_ioctl+0x78/0xa4
[ 5237.855488] el0_svc_common+0xb4/0x194
[ 5237.855493] el0_svc_handler+0x74/0x98
[ 5237.855497] el0_svc+0x8/0xc

The fix is to move the kfree of the binder_device to binder_free_proc()
so the binder_device is freed when we know there are no references
remaining on the binder_proc.

Fixes: f0fe2c0f050d ("binder: prevent UAF for binderfs devices II")
Signed-off-by: Todd Kjos <[email protected]>
(cherry picked from commit d35d3660e065b69fdb8bf512f3d899f350afce52
     git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-linus)
Bug: 158252621
Git-commit: bf0e4f96e4
Git-repo: https://android.googlesource.com/kernel/common/+/refs/heads/android-5.4-stable
Change-Id: Icb74dba032540a67854deb00e1e78e32326717b6
Signed-off-by: Raghavendra Rao Ananta <[email protected]>
2020-06-29 11:52:28 -07:00
Guru Das Srinagesh
c3111b531b soc: qcom: altmode-glink: Execute client callback in work
Execute the client's callback in a separate thread to avoid the
following deadlock situation:

- altmode_callback() calls the client's callback when a valid amclient
  is found and program execution waits for it to finish.
- The client's callback calls altmode_send_data() to send the PAN_ACK.
- altmode_send_data() eventually calls altmode_write(), which is waiting
  for the response_received to be "completed" in altmode_callback().
- For response_received to be "completed", altmode_callback() must
  finish executing in order to process the USBC_CMD_WRITE_REQ message
  received from the remote subsystem.
- altmode_callback() cannot finish executing until altmode_send_data()
  returns.
- altmode_send_data() times out and passes on the error to the client.

Also perform the following:
- Add a check to ensure that the payload received from the remote
  subsystem is at least 9 bytes long.
- Prevent out of bounds access for USBC_CMD_WRITE_REQ message (which is
  of a different format than struct usbc_notify_ind_msg) by moving the
  port_index reading to only the USBC_NOTIFY_IND message in
  altmode_callback().

CRs-Fixed: 2713590
Fixes: 6c0ffc67e5 ("soc: altmode: Detect when remote subsys fails to respond")
Change-Id: I0f2c6ce0f843c43c9e7e301be9ff3ad913310f62
Signed-off-by: Guru Das Srinagesh <[email protected]>
2020-06-29 11:11:55 -07:00
Ram Chandrasekar
e0214e2c7f drivers: thermal: pe_sensor: Add code to clear victim irq status
When master interrupt is triggered, the victim interrupt status register
will also be set indicating the victim that got mitigated. APSS has to
clear this register as well to clear the master interrupt.

Add support to clear this victim interrupt status register when a master
interrupt is triggered.

Change-Id: I66d1ed64f0e0c440cf52a1252486164b65834a81
Signed-off-by: Ram Chandrasekar <[email protected]>
2020-06-29 11:11:40 -07:00
himta ram
f5b71df415 RTC6226: set the the Channel spacing value in Radio Config register
Channel spacing value is not updated to Radio
Config register.This leads to scan all valid station
in scan list.
Update the the Channel spacing value in Radio Config
register as per rtc6226 driver data sheet.

CRs-Fixed: 2721208
Change-Id: I40b3a32c916714b4db15279b7e6abaa22b85afad
Signed-off-by: himta ram <[email protected]>
2020-06-29 18:57:54 +05:30
Kavya Nunna
fde5540f5e defconfig: enable fixed and stub regulator for sdxlemur
Enable fixed and stub regulator and proxy consumer
support for sdxlemur.

Change-Id: I51ad8663806912832d01b51b794bf3b831d56d33
Signed-off-by: Kavya Nunna <[email protected]>
2020-06-29 17:37:58 +05:30
Odelu Kukatla
99454c46be icc: dt-bindings: Update endpoint IDs for interconnects for SHIMA
Update master and slave ID constants for SHIMA interconnect providers
which consumers can use to set bandwidth.

Change-Id: Ib53c2f1e28fdea1137de3851d3a2d4ad8268c8c3
Signed-off-by: Odelu Kukatla <[email protected]>
2020-06-29 11:43:04 +05:30
Gaurav Kashyap
b78cb721e8 soc: qcom: crypto-qti-hwkm: add wrapped raw secret
Add support to derive raw secret using HWKM instead
of using a plaintext value from the exported key.
This raw secret that is derived using HWKM is used
to derive the key identifier in fscrypt and also the
filenames encryption key.

Change-Id: Id1401555a2d01354753cbe708eb23dc091d2589f
Signed-off-by: Gaurav Kashyap <[email protected]>
2020-06-28 13:19:18 -07:00
Naveen Yadav
0a6071810b interconnect: qcom: Add sdxlemur interconnect provider driver
Introduce Qualcomm SDXLEMUR specific provider driver using the
interconnect framework.

Change-Id: I630626114f71bc1c5c51febb551166176349f493
Signed-off-by: Naveen Yadav <[email protected]>
2020-06-28 13:39:44 +05:30
Naveen Yadav
d86c0c85e8 dt-bindings: interconnect: Add support for SDXLEMUR DT bindings
Add master and slave ID constants for all Qualcomm Technologies, Inc.
SDXLEMUR interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.

Change-Id: I393a63ab5cecba803ed209e57fa737a13e68e33e
Signed-off-by: Naveen Yadav <[email protected]>
2020-06-28 13:39:44 +05:30
George Shen
0e46e340b0 msm: cvp: Avoids sending random error code to DSP
In case CVP has been powered on when DSP requested it.

Change-Id: Iaef50d37d842c34e1a11916bff63f4ef11949d4c
Signed-off-by: George Shen <[email protected]>
2020-06-27 22:09:54 -07:00
Mao Jinlong
2cf818c255 tmc-etr: Fix duplicate logs issue when use sw usb mode
If etr driver data size is smaller than the sysfs buffer size,
it will read the data from the begainning of etr buffer repeatedly
when the actual read size plus the offset is greater than etr
driver data size. Compare with etr buffer size instead of etr
driver data size to fix this issue.

Change-Id: Ic523f8c5efd8348de7be80128a96d4e1ce867b9b
Signed-off-by: Mao Jinlong <[email protected]>
2020-06-27 21:17:57 -07:00
qctecmdr
0ea391bae1 Merge "input: qcom-hv-haptics: restore RC calibration mode after FIFO playing" 2020-06-26 19:54:05 -07:00
qctecmdr
3dd4d83071 Merge "msm: adsprpc: limit number of cached buffers" 2020-06-26 19:54:05 -07:00
qctecmdr
ff524f07c1 Merge "msm: cvp: add trace utililty for systrace profiling" 2020-06-26 19:54:05 -07:00
qctecmdr
de04ebc9bc Merge "dt-bindings: clock: Add support for clock ids for SDXLEMUR" 2020-06-26 19:54:04 -07:00