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>
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>
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>
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>
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>
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>
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>
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>
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>
Handled changed DT format to extract memory region address.
Change-Id: Ia6b2d77c018d8639fe5eeaf6883e472f477bacc7
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
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>
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>
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>
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>
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>
Adding vm related drivers to modules list and symbols
for pineapple.
Change-Id: Ic6d2402c0c77c0d303bdfae67d3559a5736c0765
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
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>
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>
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>
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>
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>