Commit Graph

1104166 Commits

Author SHA1 Message Date
qctecmdr
d835cb2d8b Merge "qcom-iommu-util: Introduce qcom_iommu_get_asid_nr()" 2022-07-08 13:25:16 -07:00
qctecmdr
ae06d58362 Merge "build.config: pineapple: Enable device tree overlay" 2022-07-07 10:50:15 -07:00
qctecmdr
8e1b2c93b4 Merge "arm64: defconfig: Enable rq_stats driver for pineapple" 2022-06-30 08:42:15 -07:00
qctecmdr
42549563e8 Merge "arm64: deconfig: Enable support for QC specific function drivers" 2022-06-30 02:10:37 -07:00
qctecmdr
25434185af Merge "defconfig: pineapple-gki: Enable our lazy mapping module" 2022-06-29 23:11:42 -07:00
qctecmdr
3070733372 Merge "android: abi_gki_aarch64_qcom: Add mem_section to whitelist" 2022-06-29 20:31:59 -07:00
qctecmdr
3055a3ac2c Merge "soc: qcom: aoss: Add IPC logs" 2022-06-29 17:54:52 -07:00
qctecmdr
fef7f57f76 Merge "mem-buf: Import the DMA-BUF symbol namespace" 2022-06-29 17:54:50 -07:00
qctecmdr
1b9186ec6a Merge "soc: qcom: aoss: Add debugfs entry" 2022-06-29 14:55:00 -07:00
qctecmdr
55a9a55c6e Merge "soc: qcom: smp2p: Add IPC logging support" 2022-06-29 11:35:31 -07:00
qctecmdr
5a1f4af368 Merge "soc: qcom: smp2p: Add proper retrigger detection" 2022-06-29 08:29:08 -07:00
qctecmdr
c7dc685673 Merge "trace: Add snapshot of ipc_logging driver" 2022-06-29 01:22:24 -07:00
qctecmdr
a449dca5fd Merge "defconfig: pineapple-gki: Enable the secure-buffer driver" 2022-06-28 20:49:19 -07:00
Hareesh Gundu
6f1f9d433d qcom-iommu-util: Introduce qcom_iommu_get_asid_nr()
Introduce qcom_iommu_get_asid_nr() for clients to query
ASID number to program it during the page table update.

Change-Id: Ia32981ba31c4d333a3227c4e127e1a4606be7483
Signed-off-by: Hareesh Gundu <quic_hareeshg@quicinc.com>
2022-06-28 20:48:08 -07:00
qctecmdr
f89bad6644 Merge "leds: qti-flash: set switch enabled state for precision control properly" 2022-06-28 17:36:04 -07:00
qctecmdr
39fba1ee97 Merge "arm64: defconfig: Enable Core Hang Detection driver for pineapple" 2022-06-28 14:30:56 -07:00
qctecmdr
a1cfd8f1d9 Merge "of: Add snapshot of of_common.h file" 2022-06-28 14:30:52 -07:00
Wesley Cheng
eff57cc359 arm64: deconfig: Enable support for QC specific function drivers
Enable the configurations for GSI, QDSS, DIAG, cdev, and CCID support.

Change-Id: I8b6330a21123c9a018656d804739dfdf15255abe
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-06-28 11:44:38 -07:00
Wesley Cheng
b38119d08c usb: gadget: Add snapshot of QC USB function drivers
Snapshot of downstream USB function drivers used on QC platforms.  The
drivers are based on msm-5.15.  Removed USB BAM support from QDSS, and
removed f_diag driver.

commit 653f27dbeac4 ("usb: gadget: qdss: Redo the dequeuing requests
during channel close").

Change-Id: I31b8878464452047c849134908dd92f55c748cac
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-06-28 11:44:38 -07:00
qctecmdr
21746e1820 Merge "dma-heap: qcom: Add dt-bindings soft link for DT constants" 2022-06-28 11:39:50 -07:00
qctecmdr
16da7c2d8d Merge "soc: qcom: rpmh-rsc: Fix reading FAST PATH TCS status" 2022-06-27 21:40:25 -07:00
qctecmdr
8bea40e956 Merge "Revert "ucsi: ucsi_glink: notify partner information"" 2022-06-27 18:39:50 -07:00
Subbaraman Narayanamurthy
3fa44c01e4 leds: qti-flash: set switch enabled state for precision control properly
Currently, for precision flash control, switch device's enabled
state is set to true when the brightness is set to 1 and on_timer
is started. However, it can be set to false only when the
brightness is set to 0. For camera flash use cases like turning
on pre-flash/torch immediately following the timed flash event,
this needs to be changed i.e. set the enabled state to false when
the off_timer callback is invoked to disable switch device.

Change-Id: Ib99ef1e93a21645a816555cc44c66957b5d2a43b
Suggested-by: Depeng Shao <quic_depengs@quicinc.com>
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2022-06-27 15:39:41 -07:00
qctecmdr
3bf5b0f875 Merge "modules.list.msm.pineapple: Add socinfo and dependencies" 2022-06-27 15:00:50 -07:00
Chris Lew
e5dd61f069 soc: qcom: aoss: Add IPC logs
Add IPC logs to qcom_aoss driver for easier debugging.

Change-Id: I6b4fdadf8c47a28e5837b84c497b3fbabd391b81
Signed-off-by: Chris Lew <clew@codeaurora.org>
2022-06-27 13:14:50 -07:00
Chris Lew
a7e81e43f4 soc: qcom: aoss: Add enable_irq_wake
There may be a chance the incoming interrupt from AOSS may come while
the device is suspended. Add enable_irq_wake() so the interrupt can
be properly handled.

Change-Id: Ib7cac1a7058859e2b7ec6e1f641bdbf8ab95b093
Signed-off-by: Chris Lew <clew@codeaurora.org>
2022-06-27 13:14:50 -07:00
Deepak Kumar Singh
f513b883da soc: qcom: aoss: Add debugfs entry
It can be useful to control the different power states of various
parts of hardware for device testing. Add a debugfs node for qmp so
messages can be sent to aoss for debugging and testing purposes.

Change-Id: I8a147461c550e3b3a54ce168ffaf42a086a5c420
Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2022-06-27 13:14:49 -07:00
Chris Lew
ba18880c38 soc: qcom: smp2p: Add IPC logging support
Add IPC logs to track bit state entries. These logs will help detect
issues in remote processor bootup.

Change-Id: I318eaa5cf0b9eacd8fd7be0a14ffffb2d2bc72f6
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-06-27 13:14:48 -07:00
Tao Zhang
175bec148a soc: qcom: smp2p: Add remote_id into smp2p irq devname
Changed smp2p irq devname from "smp2p" to "smp2p_<remote_id>", which
makes the wakeup source distinguishable in irq wakeup prints.

Change-Id: Id18819be3867df5070ad198c75980ea8f502dbe1
Signed-off-by: Tao Zhang <quic_taozhan@quicinc.com>
2022-06-27 13:14:48 -07:00
Chris Lew
88ec8244ee soc: qcom: smp2p: Add memory barrier for irq_pending
There is a very tight race where the irq_retrigger function is run
on one cpu and the actual retrigger softirq is running on a second
cpu. When this happens, there may be a chance that the second cpu
will not see the updated irq_pending value from first cpu.

Add a memory barrier to ensure that irq_pending is read correctly.

Change-Id: I3dd185decc4f050bd57c0b6558f417ead2a3aa5a
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-06-27 13:14:47 -07:00
Chris Lew
317e578589 soc: qcom: smp2p: Add proper retrigger detection
Currently, smp2p relies on the hwirq resend feature to retrigger irqs
that were missed because the irq was disabled at the time of receiving
it. The hwirq resend feature will retrigger the parent smp2p interrupt.
In order to keep track of what children needed to be retriggered, the
pending bitmap was added.

After calling handle_nested_irq, smp2p checks if the interrupt is
enabled and sets the pending bit if the interrupt is not enabled. There
is a small window where a client can enable the interrupt between
calling handle_nested_irq and checking if the interrupt is enabled.
If this happens, the interrupt is never called when the parent smp2p
interrupt is retriggered.

Add the irq_retrigger callback so smp2p can know which child interrupts
need to be retriggered. Set the pending bits accordingly.

Change-Id: I774b6ef91e22edbd55ddfffbbb3ae6062d48a560
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-06-27 13:14:46 -07:00
Chris Lew
ea4d918f70 soc: qcom: smp2p: Introduce pending state for virtual irq
If a smp2p change occurs while a virtual interrupt is disabled, smp2p
should be able to resend that interrupt on enablement.

This functionality requires the CONFIG_HARDIRQS_SW_RESEND to be enabled
to reschedule the interrupts. To ensure the mask and unmask functions
are called during enabled and disable, set the flag to disable lazy
IRQ state handling (IRQ_DISABLE_UNLAZY).

Change-Id: I75c662c61a9705c05278d238ca51f7a2e74806d8
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-06-27 13:14:46 -07:00
Chris Lew
5e0454ded5 trace: Add snapshot of ipc_logging driver
This snapshot is taken as of msm-5.10 'commit <accc67e2456d>
("Merge "rpmsg: glink: add print for wakeup from suspend"")'.

Change-Id: Iab134d31762f61d89565031d995996d3721fe9ec
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-06-27 13:13:54 -07:00
Chris Lew
58ed506052 soc: qcom: qmi_encdec: Restrict string length in decode
The QMI TLV value for strings in a lot of qmi element info structures
account for null terminated strings with MAX_LEN + 1. If a string is
actually MAX_LEN + 1 length, this will cause an out of bounds access
when the NULL character is appended in decoding.

CR-Fixed: 2359244
Change-Id: I4d789bc6017ff58458f77fe875ca4e175a4f1357
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-06-27 13:04:45 -07:00
qctecmdr
3a4fff5214 Merge "Merge keystone/android-mainline-keystone-qcom-release.5.18.0 (8b0a7fb) into msm-pineapple" 2022-06-27 12:19:33 -07:00
qctecmdr
8f9fe80260 Merge "include: uapi: Add snapshot of spcom headers" 2022-06-27 12:19:32 -07:00
Huang Yiwei
dbe1ffb553 arm64: defconfig: Enable Core Hang Detection driver for pineapple
Enable Core Hang Detection driver for pineapple.

Change-Id: I6f68118018e9c8b144efb9883b2c093bfec4c1e5
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-06-26 21:39:07 +08:00
Maulik Shah
baeae51661 soc: qcom: rpmh-rsc: Fix reading FAST PATH TCS status
Use correct offset to read RSC_DRV_STATUS during debug.

Change-Id: Ic195871638acd7c0db4fc33a2ed6dd723c11c8e4
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2022-06-23 13:30:56 +05:30
Linyu Yuan
4a91571161 Revert "ucsi: ucsi_glink: notify partner information"
This reverts commit 3c3f7244f40d7cf47a350ff23761fa0d4d9cd80f.

UCSI partner alternate_mode and usb type information is not needed anymore
for clients like USB redriver as it will be controlled by role switch in
ucsi framework, hence removing it.

Change-Id: I9f697224907edbf35b7ce63bcbf68e0acc4356e7
Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
2022-06-22 18:11:08 -07:00
Chris Goldsworthy
7e4cc66980 defconfig: pineapple-gki: Enable our lazy mapping module
Enable our lazy mapping module on pineapple.

Change-Id: I83d9bbdba4751792cfd86f542001f35c82a7f1c8
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:35 -07:00
Chris Goldsworthy
8f0693598e modules.list.msm.pineapple: Add our lazy mapping module
Add our lazy mapping to the list of first stage modules.

Change-Id: I235a69a9e706e5a48be76a5feb636e08791bb0da
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:35 -07:00
Chris Goldsworthy
c8f27e8aa7 defconfig: pineapple-gki: Enable our DMA-BUF heaps
Enable our DMA-BUF heaps.

Change-Id: I8cebaf90f6da5756d51da0dea1cd394ebc78f23a
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:34 -07:00
Chris Goldsworthy
7e0d611df2 modules.list.msm.pineapple: Add our DMA-BUF heap module
Add our DMA-BUF heap module to the list of first stage modules.

Change-Id: Ie7aa305bad094c32e83c04ba58b360ccce75a7b6
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:34 -07:00
Chris Goldsworthy
c5548864b1 android: abi_gki_aarch64_qcom: Add mem_section to whitelist
Our DMA-BUF heaps depend on having access to mem_section - add it to
the whitelist accordingly.

Change-Id: I5ce793a78c2eeb366ba470881226a458c6e1dca0
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:33 -07:00
Chris Goldsworthy
88f5b52bd5 dma-heap: qcom: Replace dma_buf_map* references with iosys_map*
commit 7938f42181 ("dma-buf-map: Rename to iosys-map") renames all
struct dma_buf_map variables to reflect that the mapping interface is
more generic and can be used outside of the context of DMA-BUFs.
Update the relevant struct names and associated helpers accordingly,
to fix compilation issues.

Change-Id: I2682ebe1846273c84413f3f3bff991f7397c9bcb
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:32 -07:00
Chris Goldsworthy
d89608f45d defconfig: pineapple-gki: Enable the mem-buf driver
Enable our mem-buf driver on pineapple.

Change-Id: If038f847b89cb37a9ba4c09679b980ed8d3b7cf1
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:31 -07:00
Chris Goldsworthy
4f30235981 modules.list.msm.pineapple: Add the mem-buf modules
Add the mem-buf modules to the list of first stage modules.

Change-Id: I246070b9708119554511148d3437895d3ec3f90b
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:31 -07:00
Chris Goldsworthy
ab03f053aa mem-buf: Import the DMA-BUF symbol namespace
commit 16b0314aa7 ("dma-buf: move dma-buf symbols into
the DMA_BUF module namespace") requires us to import the DMA-BUF heap
name space into our module, so do this.

Change-Id: I8e3f77edb738b86bce96d350475b19b12f9af733
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:51:26 -07:00
Chris Goldsworthy
76b314bf2d mem-buf: Take a snapshot of the mem-buf driver from msm-5.15
Take a snapsnot of the mem-buf driver as of commit 49c19cd9f512
("Merge "defconfig: kalama: Enable cfg80211 and mac80211 as modules"")
on msm-5.15.

Change-Id: I8400bc0e22dc7af2dac34c9d4859e30964e87c90
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-06-22 16:50:50 -07:00
Linyu Yuan
02d2a4f174 Revert "ucsi: ucsi_glink: add more flags for clients during notification"
This reverts commit e100ed74953673a4f226941be494fc51292c04d1.

UCSI partner change and connect notifications are not needed for clients
like USB redriver anymore.

Change-Id: I6350f43ad144eae94ccd8cbecc3dabb810086e8b
Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
2022-06-22 16:38:21 -07:00