]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: geni: Disable MMIO tracing for GENI SE
authorSai Prakash Ranjan <quic_saipraka@quicinc.com>
Wed, 18 May 2022 16:44:18 +0000 (22:14 +0530)
committerArnd Bergmann <arnd@arndb.de>
Wed, 15 Jun 2022 15:41:12 +0000 (17:41 +0200)
commit6df73d5d5a4fa46dc4b053d95c1dfb7e1f1dae3e
tree7a203d5ce87391dfb395d6006e92a493ba1f8f15
parent45fa250ee326999d7101c8ad032b57d27b1842fc
soc: qcom: geni: Disable MMIO tracing for GENI SE

Disable MMIO tracing for GENI SE driver to prevent excessive
logging. Any access over serial console would involve a lot of
TX and RX register accesses (and few others), so these MMIO
read/write trace events in these drivers cause a lot of unwanted
noise because of the high frequency of such operations and it is
not very useful tracing these events for such drivers.
Given we want to enable these trace events on development devices
(maybe not production devices) where performance also really
matters so that we don't regress other components by wasting CPU
cycles and memory collecting these traces, it makes more sense to
disable these  traces from such drivers.

Also another reason to disable these traces would be to prevent
recursive tracing when we display the trace buffer containing
these MMIO trace events since writing onto serial console would
further record MMIO traces.

Signed-off-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/qcom/qcom-geni-se.c