Commit Graph

997587 Commits

Author SHA1 Message Date
Himateja Reddy
aa0e6f635d msm: adsprpc: Notify status of DSP PD to user process
Currently status of DSP PD is not notified to the user process. User
process is unaware if the User PD on DSP has been killed. Notify
status of DSP PD to user process.

Change-Id: Ied5c4eea9f1fba4842c4366a7cb9f088cadf05c0
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2021-05-14 14:30:52 -07:00
qctecmdr
68da7f2b94 Merge "msm: kgsl: Skip importing memalloc based on flag" 2021-05-14 09:51:37 -07:00
qctecmdr
4ad15e0309 Merge "modules.list.msm.waipio: Add llcc-qcom module to first stage" 2021-05-14 09:51:37 -07:00
qctecmdr
43ef4d9e99 Merge "dma-heap: qcom: Implement pool-size getters for our system heaps" 2021-05-14 09:51:37 -07:00
qctecmdr
7b7c6d1919 Merge "regmap: qti-regmap-debugfs: correct register reading for large count" 2021-05-14 09:51:36 -07:00
qctecmdr
3b7fabfbb3 Merge "qseecom: Added boundary checks between two subsequent fields" 2021-05-14 09:51:36 -07:00
qctecmdr
a75ad6f763 Merge "msm: kgsl: Increase events worker thread priority" 2021-05-14 07:42:25 -07:00
qctecmdr
e38f96c5a5 Merge "build.config.msm.gki: Add sanity check for ABI" 2021-05-14 07:42:25 -07:00
qctecmdr
ce5d46d928 Merge "soc: qcom: Add check to handle out of bound access" 2021-05-14 04:41:00 -07:00
qctecmdr
e0b9d5aa89 Merge "usb: audio: Check uaudio_dev against NULL with uaudio_qmi_svc_disconnect_cb" 2021-05-14 00:51:47 -07:00
qctecmdr
3dea89c27b Merge "dma-heap: qcom: Remove extraneous struct dma_heap reference" 2021-05-14 00:51:47 -07:00
qctecmdr
2c5757b089 Merge "soc: qcom: Add per slice counter" 2021-05-14 00:51:47 -07:00
qctecmdr
ef30f1ab22 Merge "msm: kgsl: Queue aux commands to hwscheduler" 2021-05-14 00:51:46 -07:00
qctecmdr
e870f31f03 Merge "arm64: defconfig: avoid dlkm for touchscreen FTS for TUI" 2021-05-13 21:52:49 -07:00
qctecmdr
ce04bace0b Merge "dmaengine: gpi: Log the assigned GPII per SE during probe" 2021-05-13 19:30:31 -07:00
qctecmdr
82a0fda979 Merge "gunyah: virtio: Deregister MMIO callback on module removal" 2021-05-13 12:45:09 -07:00
Kamal Agrawal
f2f60be2ec msm: kgsl: Increase events worker thread priority
Increase kgsl-events worker thread priority to run at high
priority among default worker threads to get some benefit
in fence signaling.

Change-Id: Ia3eeb1beabc4bca1ef69e37bc40ef9868e29572b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2021-05-13 05:19:09 -07:00
qctecmdr
1f01156055 Merge "Add modules necessary for inline encryption" 2021-05-13 03:23:15 -07:00
Komal Bajaj
e6d7487633 soc: qcom: Add check to handle out of bound access
Adding check in msm_minidump_add_region() to handle scenarios for
out of bound access while adding region in minidump table in SMEM.

Change-Id: Ic20663dbd2fa8ae96899930a7f7ba79dc204ff5e
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
2021-05-13 02:16:36 -07:00
qctecmdr
7b1df8ff45 Merge "mhi: core: Add extra checks for RDDM event handling" 2021-05-12 21:50:49 -07:00
qctecmdr
b642f716fe Merge "Changes in ufs and crypto for inline encryption" 2021-05-12 21:50:48 -07:00
qctecmdr
ef6dc10d15 Merge "spinlock_debug: Move crash to qcom_cpu_vendor_hooks" 2021-05-12 21:50:48 -07:00
Prasad Sodagudi
2200072591 modules.list.msm.waipio: Add llcc-qcom module to first stage
Add llcc-qcom module to first stage to enable CPU LLCC slice
early in the boot chain.

Change-Id: I285b1bd53b7d9c3411decbdc180074a254b39245
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2021-05-12 20:26:40 -07:00
Prasad Sodagudi
d7ecec6d54 soc: qcom: Add per slice counter
Add per slice counter instead of adding counter for whole
driver level.

Change-Id: I16f826b52d6835b7a4443f767af0179d32a543d3
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2021-05-12 20:26:40 -07:00
qctecmdr
1fb82a395b Merge "msm: kgsl: Allocate GMU buffers via mem alloc packets" 2021-05-12 18:13:35 -07:00
qctecmdr
ba38b4e1c3 Merge "qcom: dma-heap: Leak pages in the event of a hyp-assign failure" 2021-05-12 18:13:34 -07:00
qctecmdr
0a4ffbee97 Merge "usb: dwc3: dwc3-msm-core: Stop GSI transfers during EP disable" 2021-05-12 18:13:34 -07:00
qctecmdr
830c9597e4 Merge "msm: kgsl: Remove srcu notifier support" 2021-05-12 18:13:34 -07:00
Mayank Rana
d3cc3a95a0 usb: audio: Check uaudio_dev against NULL with uaudio_qmi_svc_disconnect_cb
USB audio server shall get notify when any client is crashing or restarting
using registered del_client API (i.e. uaudio_qmi_svc_disconnect_cb). There
is race condition seen when USB audio server is just registered with QMI
framework from probe() context and possibly preempted without updating
uaudio_dev global variable, and QMI framework is calling
uaudio_qmi_svc_disconnect_cb() API on other worker thread context causing
NULL pointer dereference while accessing uaudio_dev. Fix this issue by
adding explicitly check against uaudio_dev as well initialized uaudio_dev
and qmi_disconnect_work before registering USB audio server.

Change-Id: If535ba808811e78c80ea769dac3d645074739d3b
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2021-05-12 18:01:38 -07:00
Elliot Berman
b62a79f013 build.config.msm.gki: Add sanity check for ABI
To help ensure that the GKI kernel and device kernel are kept in sync,
test whether abi_gki_aarch64.xml matches between the GKI kernel and
msm-5.10.

This check is not fail-safe however. If an ABI impacting change is
committed to either msm-5.10 or GKI tree without the corresponding ABI
update, then this check will incorrectly proceed. The correct way is to
do a full ABI comparison between msm-5.10 and the GKI tree with every
build, however that is time-intensive. Thus, prefer to do the simple
check for now.

Change-Id: Id801eeda347ce821fc6a29ae0e987c185a856bce
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2021-05-12 17:20:44 -07:00
qctecmdr
c84b15c7c4 Merge "msm: kgsl: Deregister gpu address on memdesc_sg_virt failure" 2021-05-12 15:56:16 -07:00
qctecmdr
8e0c872ab0 Merge "arm-smmu: Fix hyp_assign memory leak" 2021-05-12 15:56:15 -07:00
qctecmdr
15ed233191 Merge "msm: kgsl: Set power constraints for hwscheduling" 2021-05-12 15:56:15 -07:00
Chandan Uddaraju
18aa59f78f arm64: defconfig: avoid dlkm for touchscreen FTS for TUI
Currently dlkm in kernel core drivers is not
supported for TUI. Compile touchscreen FTS driver
statically for TUI session.

Change-Id: I27453706e69b61bc70c2a2a8fa7c52f7fef8eb01
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2021-05-12 12:11:34 -07:00
Mukesh Kumar Savaliya
74427ff890 dmaengine: gpi: Log the assigned GPII per SE during probe
This change Enhances IPC logs to add SE instance to know which
GPII is attached to which SE device, this helps in debug. Also,
removed unnecessary read of iommu-dma property.

Change-Id: I6a5a9312d80abab2addc0c63642429a787f9065c
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2021-05-12 04:41:50 -07:00
David Collins
dd60a39eff regmap: qti-regmap-debugfs: correct register reading for large count
When reading many registers with a count value that leads to more
than PAGE_SIZE bytes being returned, regmap_data_read_file()
outputs an extra PAGE_SIZE bytes of register address/value lines.
Correct this by mapping file position offsets based on the
register address and count values provided from userspace.

This also ensures that the proper set of registers is output in
the case of a regmap with reg_stride > 1 or a regmap which has
non-readable register regions.

Change-Id: I4ac5f112e176f994413a63ee8d91149978e076dd
Signed-off-by: David Collins <collinsd@codeaurora.org>
2021-05-11 18:26:13 -07:00
qctecmdr
dc92568766 Merge "build.config.msm.gki: Enable mixed build for gki" 2021-05-11 15:46:26 -07:00
Chris Goldsworthy
26ae9d5098 dma-heap: qcom: Implement pool-size getters for our system heaps
Implement our callbacks for .get_pool_size for the system and secure
system heaps.

Change-Id: Ic52ae76cb1bf10005a6bc6445b22e1d241daad92
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2021-05-11 11:01:20 -07:00
Chris Goldsworthy
510a21f3a0 msm_dma_iommu_mapping: Add Kconfig dependency on DMA-BUF Heaps
The delayed unmap feature should only be used along with our DMA-BUF
heaps - enforce this at compile time.

Change-Id: Ib7fcfbc4a3e4cd7f1e389c71d13ed888fa791181
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2021-05-11 11:01:19 -07:00
Chris Goldsworthy
5085fa84bb dma-heap: qcom: Remove extraneous struct dma_heap reference
Since dma_heap_get_drvdata() is now exported, there's no reason to
maintain a reference to a struct dma_heap in our struct cma_heap
(since we can just access the cma_heap through
dma_heap_get_drvdata(dma_heap)).  Remove all cma_heap->heap references
accordingly.

Change-Id: Id7b733e84f6357fac3977ec5d7cc91e03dead232
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2021-05-11 11:01:02 -07:00
Harshdeep Dhatt
47581a7e4a msm: kgsl: Skip importing memalloc based on flag
Do not import memalloc buffers (such as the secure preemption
buffers) into GMU VA if GMU access bit is not set.

Change-Id: Ic90bc21e96aebe31a9337e74f30fd53bbc89c943
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2021-05-11 11:50:19 -06:00
Harshdeep Dhatt
5cedeb5730 msm: kgsl: Queue aux commands to hwscheduler
This brings over the support of vulkan semaphores to
hwscheduler.

Change-Id: I6267e070d58e46efee7fcb8f5c285f9191dc78c8
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2021-05-11 11:50:04 -06:00
Harshdeep Dhatt
b4a96c9fb9 msm: kgsl: Add big IB support to hwscheduling
Currently, we can only send 83 IBs due to the size limits
enforced by the HFI interface.Hence, we allocate a GMU buffer
to send upto a maximum of 2000 IBs across to the GMU. At any
time there may only be a single big IB inflight. This avoids
any overly large allocations which might appear in conformance
testing scenarios.

Change-Id: Ic5f2881f9e3bf77673a9add22dbfa8bce9e0ecb7
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2021-05-11 11:49:07 -06:00
Nitin LNU
1a89d0afcd qseecom: Added boundary checks between two subsequent fields
Checking if there is enough room in between the offset of the
two subsequent field so that data of field 2 will not overlap
the data of field 1.

Change-Id: I96f656bb25878a302e7de109dd8f981045ed52e7
Signed-off-by: Nitin LNU <nlakra@codeaurora.org>
2021-05-11 10:24:32 -07:00
qctecmdr
3c1918110a Merge "soc: qcom: Improve msm_minidump_remove_region api" 2021-05-11 09:33:36 -07:00
qctecmdr
28d4eec4c2 Merge "msm: kgsl: Add panic notifier support for GPU" 2021-05-11 09:33:35 -07:00
qctecmdr
93d0162a71 Merge "arch: Don't add image to all target with KBUILD_MIXED_TREE" 2021-05-11 09:33:35 -07:00
qctecmdr
38ab75ce6a Merge "cnss2: Send dummy qdss cfg file download to wlan fw" 2021-05-11 07:02:59 -07:00
qctecmdr
021e68fd7b Merge "msm: kgsl: Enable clocks and regulator during SMMU probe" 2021-05-11 07:02:58 -07:00
qctecmdr
ad3b681d1a Merge "soc: qcom: pmic_glink: Use SERVREG_SERVICE_STATE_DOWN for handling PDR" 2021-05-11 07:02:58 -07:00