]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: Disable MMIO logging for coresight stm driver
authorMao Jinlong <quic_jinlmao@quicinc.com>
Tue, 6 May 2025 07:57:43 +0000 (00:57 -0700)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 7 May 2025 08:48:19 +0000 (09:48 +0100)
commit798f589092770f5c584f4a6829fc10e595856239
tree0f2785defe0d6adcfad8b2bbd62398050c088be1
parentdeeeaf6a522160fb262edd76e70240330e4ff8a6
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 <quic_jinlmao@quicinc.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250506075743.1398257-1-quic_jinlmao@quicinc.com
drivers/hwtracing/coresight/Makefile