Commit Graph

1111475 Commits

Author SHA1 Message Date
qctecmdr
3be9d5a044 Merge "cpufreq: qcom-hw-debug: Fix buffer overflow" 2022-08-17 21:39:35 -07:00
qctecmdr
7304dc66c3 Merge "coresight: Add driver to support for hwevent" 2022-08-17 20:03:52 -07:00
qctecmdr
ac1d875b86 Merge "gunyah: gh_ctrl: Porting gh_ctrl driver to Pineapple" 2022-08-17 18:29:55 -07:00
qctecmdr
1b7e355359 Merge "pci: msm: Remove the msi_finish function hook" 2022-08-17 16:01:55 -07:00
Xubin Bai
caed56e132 cpufreq: qcom-hw-debug: Fix buffer overflow
Currently the hw_regs->base array size is hardcoded to 3,
but some chips have more frequency domains than this,
which will result in buffer overflows

The array size should be dynamically allocated according
to hw_regs->domain_cnt, not hardcoded directly.

Change-Id: Ida14766fe77195aef41c6e754f2875b5a24fe742
Signed-off-by: Xubin Bai <quic_xubibai@quicinc.com>
2022-08-17 15:56:25 -07:00
Mao Jinlong
b7e422e142 coresight: Add driver to support for hwevent
This driver provides support for monitoring and tracing Coresight
Hardware Event across STM interface. It configures Coresight
Hardware Event mux control registers to select hardware events
based on user input.

Change-Id: I5c3c5ca70015abe7448b25777aedeeb289b8e2d3
Signed-off-by: Tao Zhang <taozha@codeaurora.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-08-17 08:48:58 -07:00
Mao Jinlong
c507c2b100 coresight: Add driver to support for tgu
This driver provides support for Trigger Generation Unit that is
used to detect patterns or sequences on a given set of signals.
TGU is used to monitor a particular bus within a given region to
detect illegal transaction sequences or slave responses. It is also
used to monitor a data stream to detect protocol violations and to
provide a trigger point for centering data around a specific event
within the trace data buffer.

Change-Id: I84378e6134eb0e6eefb483004acabc73736200a2
Signed-off-by: Tao Zhang <taozha@codeaurora.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-08-17 08:46:51 -07:00
Mao Jinlong
b09f9eef63 coresight: Add driver to support for remote etm
Enables support for ETM trace collection on remote processor using
CoreSight framework. Enabling this will allow turning on ETM
tracing on remote processor via sysfs by configuring the required
CoreSight components.

Change-Id: I46b7c31eb81bd3b6623b71cf6c4811ba2d99d360
Signed-off-by: Tao Zhang <taozha@codeaurora.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-08-17 08:43:55 -07:00
Mao Jinlong
2db12fd9e9 coresight: Add driver to support for dummy coresight device
Some Coresight devices that HLOS does not have permission to access
or configure. Such as Coresight sink EUD, some TPDMs etc.
So there needs driver to register dummy devices as Coresight devices.
Provide Coresight API for dummy devices operations, such as enable
and disable dummy devices.
Build the Coresight path for dummy sink or dummy source for debugging.

Change-Id: I93b24a84f0b463f92c5e5cb69b53a86bf873e7a6
Signed-off-by: Tao Zhang <taozha@codeaurora.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-08-17 08:39:11 -07:00
qctecmdr
55350b9a59 Merge "gunyah: scheduler: Porting Gunyah Proxy scheduler driver to Pineapple" 2022-08-17 04:19:03 -07:00
qctecmdr
9c5a710be2 Merge "rpmsg: glink: Use threaded interrupts" 2022-08-17 04:19:03 -07:00
qctecmdr
6bcead9de0 Merge "arm64: defconfig: Enable SS/HS USB PHY drivers for Pineapple" 2022-08-17 02:36:09 -07:00
qctecmdr
3ceff11adc Merge "swiotlb: Limit max bounce buffer size" 2022-08-17 02:36:08 -07:00
Wesley Cheng
af0031c521 arm64: defconfig: Enable SS/HS USB PHY drivers for Pineapple
Enable the USB PHY drivers used on pineapple.  This includes the QMP PHY
for SSUSB and EUSB2 PHY + repeater for HSUSB.

Change-Id: I9f4176c3628e14e10a1719ebfedbb99be86770d5
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-08-16 16:25:49 -07:00
qctecmdr
b85e5ef307 Merge "stm: class: Add MIPI OST protocol support" 2022-08-16 11:08:35 -07:00
qctecmdr
88a494895f Merge "soc: qcom: Add snapshot of DCC driver" 2022-08-16 11:08:35 -07:00
Chris Lew
7daf95ce98 rpmsg: glink: Use threaded interrupts
On newer chipsets there is an increase in traffic generated from the
remote for new usecases, this is resulting in the glink interrupt
handler running for an extended amount of time. In combination with the
IPCC architecture, this can starve out other users of IPCC including
other GLINKs.

Change the interrupt to a threaded interrupt to prevent the glink ISR
from starving the CPU with interrupts disabled. In order to make sure
performance for latency sensitive clients is preserved, handle up to
10 packets in hard irq context. Defer the remaining work to the
threaded interrupt if required.

Change-Id: I2f1b085c38c02d231f9a3da2fcce32b129be2012
Signed-off-by: Chris Lew <clew@codeaurora.org>
2022-08-16 10:44:03 -07:00
Chris Lew
4837e4e0f4 rpmsg: glink: spss: Add snapshot of spss transport
This snapshot is taken as of msm-5.15 'commit <c79afcd18535>
("va_minidump: Add md_unregister support for clients")'.

Change-Id: Ifb19f2867c40d91b108d90437be0b4ccd936664c
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-08-16 10:44:03 -07:00
qctecmdr
ea82617440 Merge "virtual io: avoid setting swiotlb_force in virtual io mmio" 2022-08-16 08:05:42 -07:00
Mao Jinlong
9a11894fa4 soc: qcom: Add snapshot of DCC driver
Add snapshot for DCC driver from msm-5.15
commit be57d8832275 ("Merge "usb: phy: m31: fix compile issue"").

change-Id: Ied7bc57b3378f2f7310d431aee48e5c126000bad
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-08-16 07:33:16 -07:00
qctecmdr
4b18039752 Merge "gunyah: virtual io: Porting Gunyah Secure Virtual io backend driver to Pineapple" 2022-08-15 22:53:54 -07:00
Srivatsa Vaddagiri
8dbe481c45 swiotlb: Limit max bounce buffer size
Limiting to 4096, assuming this is used for virtual io block device. The
default maximum (256kB) would result in overflowing of bounce buffers
and stalling of IO (max_segments of 254 for block device and max
bounce size of 256kB could result in block layer submitting a huge IO
request that can never be finished successfully). With 4096, we have
the max size of request set to 254*4096, which is a reasonable space
to set aside per block device.

Change-Id: I8a3b0ec6d26a1b7f5ccdcee649f02c3556bce93b
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
2022-08-15 21:16:26 -07:00
Srivatsa Vaddagiri
13a1aaf641 virtual io: mmio: Use memory-region attribute to get memory address
Handled changed DT format to extract memory region address.

Change-Id: Ia6b2d77c018d8639fe5eeaf6883e472f477bacc7
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
2022-08-15 21:16:21 -07:00
Sreenad Menon
2d3aafead0 virtual io: avoid setting swiotlb_force in virtual io mmio
Setting swiotlb_force to SWIOTLB_FORCE would force non virtual io
drivers also to use swiotlb. So avoid it.

Change-Id: I419700e9f38b0b00da22c8522f94edffd2fd8f52
Signed-off-by: Sreenad Menon <sreemeno@codeaurora.org>
2022-08-15 21:16:16 -07:00
Sreenad Menon
0ea7e633ca virtual io: mmio: use bounce buffers for virtual io mmio devices
In some cases, its possible that most of a VM's memory is not
accessible to virtual io backend drivers that run in the context of a
separate VM. A hypervisor could pre-share some limited memory between
both the VMs. Use such pre-arranged shared memory to allow data
exchange between front-end and back-end drivers.  DMA ops are added to
virtual io (mmio) devices, which bounces buffers to and from the
pre-shared region.

Change-Id: I6cf61cd1ca4c8b848a6d6d1aa1d5023ce9341174
Signed-off-by: Sreenad Menon <sreemeno@codeaurora.org>
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
2022-08-15 21:16:10 -07:00
qctecmdr
5d73429d48 Merge "cpufreq: qcom-hw: Disable LMH irq when disabling policy" 2022-08-15 19:48:44 -07:00
qctecmdr
b0c805234f Merge "build: config: Adding build configs for vm and pineapple tuivm" 2022-08-15 19:48:44 -07:00
qctecmdr
3799e67e82 Merge "Part Revert "modules.list.msm.pineapple: adding vm related drivers"" 2022-08-15 19:48:42 -07:00
qctecmdr
c9f7a775a1 Merge "cpufreq: qcom-hw: Enable boost support" 2022-08-15 18:17:51 -07:00
qctecmdr
bb55c3caee Merge "cpufreq: qcom-hw: remove thermal pressure on cpu hotplugged/offline" 2022-08-15 16:47:35 -07:00
Prudhvi Yarlagadda
ff05de350e pci: msm: Remove the msi_finish function hook
Remove the use of msi_finish function pointer as it is
removed from the msi.h header file.

Change-Id: I2a0972271e818efc387415cef7067124abeda422
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2022-08-15 15:47:06 -07:00
qctecmdr
5810827cc9 Merge "cpufreq: qcom-hw: Add cycle_counter support" 2022-08-15 15:08:19 -07:00
Peng Yang
92a95ac59e Part Revert "modules.list.msm.pineapple: adding vm related drivers"
This reverts commit 82023d3f20.
remove hyp_assign_phys from abi_gki_aarch64_qcom, it's not the
upstream symbol.

Change-Id: I08bc531a7bea6ea5929ffb3fc13bd50f8e9119b5
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-08-15 12:56:19 -07:00
Tao Zhang
6f94b791ee stm: class: Add MIPI OST protocol support
Add MIPI OST protocol support for stm to format the traces.
Framework copied from drivers/hwtracing/stm.p-sys-t.c as of
commit d69d5e8311 ("stm class: Add MIPI SyS-T protocol
support").

Change-Id: I3530f2c794e2cc09b63ce06e44d269ad13c4ef2b
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Tao Zhang <taozha@codeaurora.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-08-13 07:25:16 -07:00
qctecmdr
4e7a5df7d7 Merge "soc: qcom: Porting VM TLMM access driver for pineapple" 2022-08-12 21:20:25 -07:00
qctecmdr
19ad73622c Merge "gunyah: rm: Adding vm resource manager related drivers for pineapple" 2022-08-12 21:20:25 -07:00
qctecmdr
074ad97ebc Merge "pinctrl: Adding vm related pinctrl changes for pineapple" 2022-08-12 21:20:25 -07:00
qctecmdr
ec7da86053 Merge "modules.list.msm.pineapple: adding vm related drivers" 2022-08-12 19:19:10 -07:00
qctecmdr
cf6c961594 Merge "gunyah: Adding basic initial files needed for vm on Pineapple" 2022-08-12 19:19:10 -07:00
qctecmdr
7f51ff3bbe Merge "msm-kernel: add keygen to generate key-pair using openssl" 2022-08-12 19:19:10 -07:00
qctecmdr
51f53208c0 Merge "swiotlb: Handle swiotlb region outside of linear-mapped memory" 2022-08-12 19:19:09 -07:00
qctecmdr
022abff7a7 Merge "arm64: defconfig: kalama: Enable necessary drivers for Kalama" 2022-08-12 17:16:30 -07:00
qctecmdr
b54d798dfa Merge "pinctrl: qcom: Propagate set of changes to pinctrl-msm" 2022-08-12 17:16:29 -07:00
qctecmdr
fcd1028dbb Merge "gunyah: msgq: Porting messageq driver to pineapple" 2022-08-12 17:16:28 -07:00
Peng Yang
82023d3f20 modules.list.msm.pineapple: adding vm related drivers
Adding vm related drivers to modules list and symbols
for pineapple.

Change-Id: Ic6d2402c0c77c0d303bdfae67d3559a5736c0765
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-08-11 20:25:54 -07:00
Peng Yang
9bdb8793f4 msm-kernel: add keygen to generate key-pair using openssl
Module signing and dm-verity needs key pair to be generated
using openssl. Add keygen file which is needed to generate
keys using openssl.

This is just snapshot of kalama's gh_ctrl driver from
'commit 5beb98404269 ("Merge "i3c: i3c-master-msm-geni: Fix
IBI for invalid device OR handler"")'from msm-5.15 branch.

Change-Id: I6d785f2a1695bf59969b7eba4f3f7a5df6342bf9
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-08-11 19:59:10 -07:00
Peng Yang
8a2ba9a2c0 gunyah: gh_ctrl: Porting gh_ctrl driver to Pineapple
Add gh_ctrl driver for Pineapple.

This is just snapshot of kalama's gh_ctrl driver from
'commit 5beb98404269 ("Merge "i3c: i3c-master-msm-geni: Fix
IBI for invalid device OR handler"")'from msm-5.15 branch.

Change-Id: Ia3aeefb7abaf6bed1d7057ce4866d4cf92d3c8cd
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-08-11 19:46:46 -07:00
Peng Yang
233918f39e hvc: gunyah: Porting hvc console for gunyah hypervisor
Add hvc console driver for gunyah hypervisor.

This is just snapshot of kalama's hvc console driver from
'commit 5beb98404269 ("Merge "i3c: i3c-master-msm-geni: Fix
IBI for invalid device OR handler"")'from msm-5.15 branch.

Change-Id: I20ff6c457af005ed8781807a4e9472cfe94d54e8
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-08-11 19:46:39 -07:00
Peng Yang
b9a522e8ba gunyah: loader: Porting Gunyah Main driver to Pineapple
Add gunyah main driver for Pineapple.

This is just snapshot of kalama's gunyah main driver from
'commit 5beb98404269 ("Merge "i3c: i3c-master-msm-geni: Fix
IBI for invalid device OR handler"")'from msm-5.15 branch.

Change-Id: Id8ff3aecad9051fc1fb1613f49a15f57235d4992
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-08-11 19:46:28 -07:00
Peng Yang
c4f9bb20a9 gunyah: loader: Porting Gunyah Secure VM Laoder driver to Pineapple
Add gunyah secure vm loader driver for Pineapple.

This is just snapshot of kalama's secure vm loader driver from
'commit 5beb98404269 ("Merge "i3c: i3c-master-msm-geni: Fix
IBI for invalid device OR handler"")'from msm-5.15 branch.

Change-Id: I3ec9446c85e0d8fcef66c4d4a6736b62d1d7a219
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-08-11 19:46:19 -07:00