coresight: tmc-etr: Add barrier after updating AUX ring buffer
authorLeo Yan <leo.yan@linaro.org>
Mon, 9 Aug 2021 11:14:00 +0000 (19:14 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 27 Oct 2021 17:44:36 +0000 (11:44 -0600)
commit26701ceb4c2c6bfa5f8c8984fa1a1ea08fa0f02c
tree1a6e53f4871c2945f0d165b66569a1d274a526e5
parent4d5d88baa6c838bf92ed6a63c50dd3167c5a4956
coresight: tmc-etr: Add barrier after updating AUX ring buffer

Since a memory barrier is required between AUX trace data store and
aux_head store, and the AUX trace data is filled with memcpy(), it's
sufficient to use smp_wmb() so can ensure the trace data is visible
prior to updating aux_head.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20210809111407.596077-3-leo.yan@linaro.org
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight-tmc-etr.c