Commit graph

893,362 commits

Author SHA1 Message Date
Archana Sriram
f25b491db8 msm: kgsl: Correct the refcount on current process PID
In kgsl_process_private_new() function there is inconsistency
in the refcount of current process PID. Fix this to avoid
overflowing of reference counter leading to use after free
of this struct.

Change-Id: I6291b9a05e139337e7f8471d0f9409fc839969a3
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2020-12-17 07:28:59 +05:30
Karthik Rudrapatna
3f596353a4 msm: Adding config for r8125 driver
Add config to enable Realtek's r8125 driver.

Change-Id: I00cc2344d4705cd84156a44e30c4645d54df2008
Acked-by: Lakshit Tyagi <ltyagi@codeaurora.org>
Signed-off-by: Karthik Rudrapatna <krudrapa@codeaurora.org>
2020-12-16 15:13:59 -08:00
Yue Ma
027d7b5db8 cnss2: Add config to disable time sync feature
Add the ability to dynamically control driver and device
time sync feature.

Change-Id: I753117995a1f7407b90d41b8d69d40b89ea5f4a3
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-12-16 11:45:28 -08:00
Yue Ma
f5dd3652f9 cnss2: Only assert for remap window register when link is not down
Check PCIe link status before asserting because of PCIe remap window
register config failure.

Change-Id: Id4c92148cee735d87e329e910ca9e2b91fcdf49d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-12-16 11:07:13 -08:00
Isaac J. Manjarres
a7234c9b81 soc: qcom: mem-buf: Ensure dma-bufs are freed when refcount is 0
When mem-buf frees a dma-buf (i.e. calls dma_buf_put() and it is
guaranteed that the refcount will be 0), it does so from the context of
a kworker. As a result of this, dma_buf_put() will free the dma-buf
asynchronously, which means that it is possible that the buffer has
not been freed when dma_buf_put() is invoked.

In the case where memory is being reclaimed by the primary VM, and
another VM requests the memory again soon after relinquishing it,
this situation results in failing the memory allocation, as the buffer
is still in the process of being freed. Thus, use dma_buf_put_sync()
to ensure that the buffer is freed whenever mem-buf needs to free
a dma-buf.

Change-Id: I60af08a143b91eddb6738f65cc8e943cf04065ad
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-12-16 10:57:19 -08:00
Arun Prakash
28e93189db soc: qcom: smem: Add support for suspend to disk
Add support to smem driver for suspend to disk feature.
SMEM is cleared during Hibernation and initialize SMEM
during resume from Hibernation.

Change-Id: I363eea1f959c3f2b224054884ec7569d434cb74c
Signed-off-by: Arun Prakash <app@codeaurora.org>
2020-12-16 09:57:45 -08:00
Arun Prakash
071a8b12b0 mailbox: msm_qmp: Add support for suspend to disk
Add support in qmp driver for suspend to disk feature.

Change-Id: I4485bfc8e7be59f12ab17a7a2321a440aaf5c631
Signed-off-by: Arun Prakash <app@codeaurora.org>
2020-12-16 09:57:30 -08:00
Arun Prakash
95bf9f5f7f soc: qcom: smp2p: Add support for suspend to disk
Add support in smp2p driver for suspend to disk feature.
Handling SMEM enumeration during resume from hibernation.

Change-Id: I5dd17057cc68a293a1a510ebedafc93defd8c556
Signed-off-by: Arun Prakash <app@codeaurora.org>
2020-12-16 09:57:17 -08:00
Ashish Kori
2e7d855eea spi: spi-msm-geni: Propagate missing change from 4.14 to 5.4
Propagate following change from 4.14 to 5.4 for SPI driver.
'commit 6276c3f68f8ecf5 ("spi: spi-geni-qcom : Don't configure
SPI WORD LEN for SPI Slave")'.

Change-Id: I714f455589be75d19d8f32e9f04e8cdc518a0430
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-16 09:51:22 -08:00
Mayank Rana
0ca0b8da6a defconfig: sdxlemur: Enable USB function remote wakeup functionality
This change enables USB function remote wakeup functionality. It allows
resuming particular USB interface when interface is suspended to support
USB SS/SSP based power management.

Change-Id: Iad128a5876f5b3d13dde148d45463fd957876cda
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-12-16 09:34:47 -08:00
Mayank Rana
2e537ca82a dwc3: Add USB function suspend/resume related handling
Currently dwc3 driver doesn't hand over USB function suspend/resume
request to composite layer as those are supposed to be handle by
USB function driver. This change adds support for it. It also adds
function remote wakeup functionality which is needed by USB function
suspended interface to perform remote wakeup towards USB host for
resume interface related functionality.

Change-Id: I1f9ecc60346e16fad87439cc12c551e05b4f3491
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-12-16 09:34:02 -08:00
Mayank Rana
bf131dca49 dwc3: gadget: Improve remote wakeup functionality
Current available remote wakeup functionality is not robust
enough as most of time it failed to wait for host to complete
resuming signle and move USB device to U0 state. Hence enhance
this functionality by using link state change interrupt and
waiting for max 16 sec for host to resume.

Change-Id: I375d7812336ce0ecc49bfeea859bc76d90a4e0b9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-12-16 09:33:37 -08:00
Mayank Rana
d73672e149 usb: f_gsi: Update remote wakeup status for high speed mode
Call usb_get_remote_wakeup_status() API when enumerated with USB
high speed to get remote wakeup supported by connected host or not
for making decision to suspend or disconnect IPA GSI channel.

Change-Id: I9970d4958af366c33b3311df72d404213b097237
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-12-16 09:33:17 -08:00
Mayank Rana
af88d5f829 dwc3: Add usb_get_remote_wakeup_status() API()
USB composite device updates to host about its wakeup capability
using bmAttribute, and USB host may support remote wakeup
functionality using SET_FEATURE. UDC gadget ops supports wakeup()
API which can be invoked by USB function driver to resume USB bus
by signaling remote wakeup. With HW accelerated path IPA will need
to know if host has enabled remote wakeup in order to decide whether
to suspend or disconnect the GSI channels. Add an API to allow USB
GSI driver to query the current remote wakeup enabled status.

Change-Id: I09eb62714f9df90d68cce5c478dc19096477709e
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-12-16 09:31:53 -08:00
Mohammed Siddiq
a2f4049dd7 icnss2: Add code for SSR dump collection feature for moselle
Add code for SSR dump collection feature for moselle.

Change-Id: Iccc42bdc4d9c0074963164a6b95724853009c43f
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-12-16 19:03:07 +05:30
Jaegeuk Kim
c51f24f3f0 f2fs: call f2fs_get_meta_page_retry for nat page
When running fault injection test, if we don't stop checkpoint, some stale
NAT entries were flushed which breaks consistency.

Fixes: 86f33603f8c5 ("f2fs: handle errors of f2fs_get_meta_page_nofail")
Change-Id: I3efb37f21c37fdadcf02310281dafd60f714f742
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 3acc4522d89e0a326db69e9d0afaad8cf763a54c
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2020-12-16 18:19:00 +05:30
Jagadeesh Kona
efc155c674 clk: qcom: gpucc-yupik: Update Kconfig of GPUCC for YUPIK
Update Kconfig of GPUCC to auto enable GCC clock driver if
GPUCC is enabled.

Change-Id: I651252f4ec5ccce85d34391c63e1e5fde6d4bb72
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-12-16 17:35:59 +05:30
Vivek Kumar
c135ad0535 arm64: defconfig: Add initial defconfig fragments for sa6155
Add initial defconfig fragments for sa6155 which includes
GKI, QGKI and debug configs for SA6155 ADP.

Change-Id: Ib4ef52f19e2f42546c342c38a67b6db1b3705d3a
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2020-12-16 14:20:43 +05:30
Neeraj Upadhyay
fa2785989c trace: Do not use latency format for ftrace minidump
Minidump ftrace need absolute timestamp of an event, and
not the relative timestamp from buffer start time. So,
do not use latency format for them.

Change-Id: I5ed1aaac62a16e312d8c1d2f3fcbfc2781c4af77
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-12-15 23:28:17 -08:00
Chandana Kishori Chiluveru
2e6480dbe7 USB: composite: Release spinlock before WARN()
if WARN() is called under spinlock, it will lead crash due to
watchdog timeout. Hence fix it by releasing spinlock before calling
WARN(). And also check cdev->config is NULL or not before calling
WARN().

Change-Id: Iebd00932b94164e9f40aa6126a2352437b1141ed
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-15 21:36:37 -08:00
Veera Vegivada
2ff9429f38 icc: dt-bindings: add endpoint IDs for interconnects for SCSHRIKE
Add master and slave ID constants for all Qualcomm Technologies, Inc.
SCSHRIKE interconnect providers which consumers can use to set
bandwidth constraints and find paths in the NoC (Network-On-Chip)
topology.

Change-Id: I69fdeddf756a12aa17868ddf7130243d5852d978
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-16 10:02:22 +05:30
Chanho Park
be72a6b8ee ANDROID: ABI: add allowed list for Exynosauto SoC
This patch is the first trial to upload GKI symbol list for running
android as VM on type1 hypervisor. Unlike traditional device driver,
para-virtualized drivers for hypervisor tend to use more core symbols.

- ioremap_cache: to skip cached mapping for io remap

Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function void* ioremap_cache(long long unsigned int, unsigned long int)'

Bug: 175289068
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Change-Id: Ia3f0073065ad2da481cce10dd882d7de093b1de3
2020-12-16 13:29:57 +09:00
Vivek Pernamitta
7e8531e86b msm: pci: use local pointer for rpmsg_device while sending rpmsg
Use local pointer for struct rpdev_device while sending rpmsg
to avoid crash if ADSP SSR triggered while handling
msm_pcie_drv_send_rpmsg().

Change-Id: Id0533611b629359142e54db428918cbce702ee44
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2020-12-16 09:50:32 +05:30
Fenglin Wu
66cd9cf31c input: qcom-hv-haptics: keep FORCE_VREG_RDY always set in non-HBoost case
FORCE_VREG_RDY bit can be always set when non-HBoost regulator is used
and don't clear it when stopping play in non-HBoost case. Also set this
bit in driver initialization in non-HBoost case so that swr-haptics
driver can take the advantage of triggering SWR play without setting
this bit.

Change-Id: I6283396d9d5a4f0b87d87932d6db2d8e7bb7a623
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-12-16 12:20:01 +08:00
Chanho Park
ae8d097e36 ANDROID: ABI: update allowed list for exynosauto SoC
This patch is for updating GKI allowed symbol list without adding a new
symbol. Next patch will introduce newly added symbols for Exynosauto
SoC GKI vendor modules.

Bug: 175289068
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Change-Id: I035373ee8f980cd5c03c967d5d2b684150e7fc74
2020-12-16 13:08:18 +09:00
Veera Vegivada
5eefb9efc4 dt-bindings: clock: Add clock-ids for SM6150
Add the clock-ids for all clock controller drivers for clients to be
able to request for the clocks.

Change-Id: Iab46d027300127185bc7035e8afff35fd97c2e09
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-16 08:05:25 +05:30
Veera Vegivada
df7426de90 dt-bindings: clock: Add dt-bindings for SCSHRIKE
Add the clock-ids for gcc/camera/display clock drivers for clients to be
able to request for the clocks.

Change-Id: I65bc4fa7b45e1be6d4e05cb75c5dd5b270688d7b
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-16 08:05:25 +05:30
Veera Vegivada
817f2e81b8 arm64: defconfig: Enable clock controllers for scshrike
Enable gcc, camcc and dispcc so that clients can use
and also enable debugcc for clk_measure support.

Change-Id: I2cbb349878d0be00555fb6c8ecd3a6a7604051d1
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-16 08:05:18 +05:30
Yue Ma
3db21c0a2e cnss2: Make sure the write to remap window register take effect
Since PCIe remap window register access and actual PCIe device
register access may go through different NoCs, read it back after
writing to remap window register to make sure it has taken effect.
This is able to avoid NOC errors when accessing the actual device
register which the remap window value applies to.

Change-Id: I65848758250fb9e6e1cbe513932c64b8303a8e98
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-12-15 17:51:55 -08:00
Neeraj Upadhyay
2a853017d0 soc: qcom: guestvm_loader: do cpu offline instead of isolate
CPU isolation while loading SVM still causing issue of locking
when multiple TZ calls goto TZ from both PVM and SVM. This is
because isolated CPUs can still handle IPIs and some tasks are
expected to run work on isolated CPUs and issue an IPI. At the
same instance if hypervisor schedule a SVM on same pCPU and SVM
do a TZ call then IPI can't be handled because SVM TZ call is
spinning in TZ for a lock to grab which is already grabbed by
PVM from a different CPU and that task is scheduled out. Hence
IPI would ever served by CPU and lead to watchdog. To avoid
this situation do cpu hotplug rather isolate.

Change-Id: I40cc06fcd11fd90583e334b044feec6dc95fff68
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-15 13:41:07 -08:00
J. Avila
ed5c049cad ANDROID: sched: Export sched_setattr_nocheck
This symbol is needed for certain vendor modules which cannot rely on
only the sysfs interface for uclamp alone.

Bug: 170697030
Signed-off-by: J. Avila <elavila@google.com>
Change-Id: Ic904ade83a45d259cfc95501e6b81e6c5a0e90a0
(cherry picked from commit 0edac9cb95fb2fa292a4b25ac77b125cde28b674)
2020-12-15 19:05:06 +00:00
Deepak Kumar Singh
676140efc5 rpmsg: glink: remove IRQF_NO_SUSPEND flag while requesting irq
Using IRQF_NO_SUSPEND flag may not mark irq wakeup capable.

Use enable_irq_wake to mark glink irq wake up capable.

Change-Id: I0fb5010ff1450a3bd15894a3d4706d7bd73e8cac
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-12-15 23:44:11 +05:30
Anmolpreet Kaur
4130da7ced qcedev : Solve compilation issues
This change solves compilation issues that
came up while enabling qcedev driver in
sdxlemur.

Change-Id: Iaa261681a3cef421dcb21908e1402b146e912a55
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-12-15 23:07:56 +05:30
qctecmdr
a2839ca38b Merge "defconfig: msm: Enable ARCH_YUPIK for genericarmv8" 2020-12-15 09:11:53 -08:00
qctecmdr
b4fabbc028 Merge "interconnect: qcom: Enable real interconnect provider for Yupik" 2020-12-15 09:11:52 -08:00
qctecmdr
9adb2b478a Merge "usb: dwc3-msm: Disable PHY wakeup IRQs on hibernation" 2020-12-15 09:11:52 -08:00
qctecmdr
f40457bbdb Merge "iio: adc: qcom-spmi-adc5: add an unique irq name" 2020-12-15 09:11:52 -08:00
qctecmdr
7827a27eea Merge "drivers: llcc: Add LLCC driver for Yupik" 2020-12-15 09:11:52 -08:00
Rohith Kollalsi
fee2827468 defconfig: Add support for compiling sdxnightjar target
Add defconfig changes from usb to support SDXNIGHTJAR target.

Change-Id: Ie2447eb1320e198b055fc02c5efee386027bbc73
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2020-12-15 22:27:42 +05:30
Hareesh Gundu
a2e2479d7e msm: kgsl: Disable SP clock before enabling HWCG for holi
Holi has the GX power domain, Hence disable SP clock before
programming any HWCG registers.

Change-Id: I9007eb8b449e866a510d3713e0789c3b77d13887
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-12-15 19:52:55 +05:30
Anmolpreet Kaur
e55be43040 smcinvoke: implement retry and timeout for CB processing
CB requests are processed by HLOS userspace. It is possible that
userspace never returns with a response. This could cause trusted
environment that initiated CB request to reject processing anymore
non-secure requests. This is not a desirable situation. Hence, adding
timeout functionality along with retry mechanism to send error response
back to trusted env after maximum number of retries are already done and
continue processing requests from non-secure side.

Change-Id: Idbd3048d0b9594c9927d55a24a8ca77e14214746
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-12-15 19:20:18 +05:30
Deepak Kumar Singh
926e20a4ca arm64: defconfig: Enable minidump for ipc log buffers
This config is used to pass maximum number of ipc logging memory
regions that can be dumped with minidump. This includes ipc log
buffers and memory regions for global context list and ipc log
contexts for which minidump is enabled.

Change-Id: If735ed093ef9efa3f0b0a2225babe2d26a3c79d4
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-12-15 04:41:54 -08:00
Yuanfang Zhang
f646b2f38e coresight-etm3x: change ETM name to coresight-etm
Change the name of ETM to coresight-etm.

Change-Id: Ia7ce1fb455260c6f5877e3b8b81431d7129de529
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-12-15 19:04:46 +08:00
Pavankumar Kondeti
e3a0b52bb2 sched: Improve the scheduler
This change is for general scheduler improvemnts.

Change-Id: I8e6d7afe12387d86f3721c6fd880812ba86d885e
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-12-15 15:57:04 +05:30
qctecmdr
5175b74fb7 Merge "Revert "netfilter: Unlock xt_table later"" 2020-12-15 01:48:36 -08:00
qctecmdr
45140c666f Merge "firmware: arm_scmi: increase the response timeout" 2020-12-15 01:48:35 -08:00
qctecmdr
da14ef15e2 Merge "defconfig: Enable tzlog driver on sdxlemur" 2020-12-15 01:48:35 -08:00
qctecmdr
29142a00dd Merge "msm: cvp: Fix CVP BW overvoting issue" 2020-12-15 01:48:35 -08:00
qctecmdr
96bb195660 Merge "mm/ksm: Remove reuse_ksm_page()" 2020-12-15 01:48:34 -08:00
qctecmdr
4e8886ba0b Merge "Revert "topology: Add snapshot of possible sibling cpu mask changes"" 2020-12-15 01:48:34 -08:00