Skip to content

Commit 06f5c29

Browse files
77liuqiSuzuki K Poulose
authored andcommitted
drivers/coresight: Add UltraSoc System Memory Buffer driver
Add driver for UltraSoc SMB(System Memory Buffer) device. SMB provides a way to buffer messages from ETM, and store these "CPU instructions trace" in system memory. The SMB device is identifier as ACPI HID "HISI03A1". Device system memory address resources are allocated using the _CRS method and buffer modes is the circular buffer mode. SMB is developed by UltraSoc technology, which is acquired by Siemens, and we still use "UltraSoc" to name driver. Signed-off-by: Qi Liu <[email protected]> Signed-off-by: Junhao He <[email protected]> Tested-by: JunHao He <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 479043b commit 06f5c29

File tree

4 files changed

+786
-0
lines changed

4 files changed

+786
-0
lines changed

drivers/hwtracing/coresight/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,16 @@ config CORESIGHT_TRBE
201201

202202
To compile this driver as a module, choose M here: the module will be
203203
called coresight-trbe.
204+
205+
config ULTRASOC_SMB
206+
tristate "Ultrasoc system memory buffer drivers"
207+
depends on ACPI || COMPILE_TEST
208+
depends on ARM64 && CORESIGHT_LINKS_AND_SINKS
209+
help
210+
This driver provides support for the Ultrasoc system memory buffer (SMB).
211+
SMB is responsible for receiving the trace data from Coresight ETM devices
212+
and storing them to a system buffer.
213+
214+
To compile this driver as a module, choose M here: the module will be
215+
called ultrasoc-smb.
204216
endif

drivers/hwtracing/coresight/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ obj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o
2727
obj-$(CONFIG_CORESIGHT_TRBE) += coresight-trbe.o
2828
coresight-cti-y := coresight-cti-core.o coresight-cti-platform.o \
2929
coresight-cti-sysfs.o
30+
obj-$(CONFIG_ULTRASOC_SMB) += ultrasoc-smb.o

0 commit comments

Comments
 (0)