Skip to content

Commit 798f589

Browse files
Mao JinlongSuzuki K Poulose
authored andcommitted
coresight: Disable MMIO logging for coresight stm driver
With MMIO logging enabled, the MMIO access are traced and could be sent to an STM device. Thus, an STM driver MMIO access could create circular call chain with MMIO logging. Disable it for STM driver. [] stm_source_write[stm_core]+0xc4 [] stm_ftrace_write[stm_ftrace]+0x40 [] trace_event_buffer_commit+0x238 [] trace_event_raw_event_rwmmio_rw_template+0x8c [] log_post_write_mmio+0xb4 [] writel_relaxed[coresight_stm]+0x80 [] stm_generic_packet[coresight_stm]+0x1a8 [] stm_data_write[stm_core]+0x78 [] stm_source_write[stm_core]+0x7c [] stm_ftrace_write[stm_ftrace]+0x40 [] trace_event_buffer_commit+0x238 [] trace_event_raw_event_rwmmio_read+0x84 [] log_read_mmio+0xac [] readl_relaxed[coresight_tmc]+0x50 Signed-off-by: Mao Jinlong <[email protected]> Reviewed-by: Leo Yan <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent deeeaf6 commit 798f589

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/hwtracing/coresight/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ condflags := \
2222
$(call cc-option, -Wstringop-truncation)
2323
subdir-ccflags-y += $(condflags)
2424

25+
CFLAGS_coresight-stm.o := -D__DISABLE_TRACE_MMIO__
26+
2527
obj-$(CONFIG_CORESIGHT) += coresight.o
2628
coresight-y := coresight-core.o coresight-etm-perf.o coresight-platform.o \
2729
coresight-sysfs.o coresight-syscfg.o coresight-config.o \

0 commit comments

Comments
 (0)