]> www.infradead.org Git - users/dwmw2/linux.git/commit
coresight: Make sysfs functional on topologies with per core sink
authorLinu Cherian <lcherian@marvell.com>
Wed, 16 Sep 2020 19:17:35 +0000 (13:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:43:18 +0000 (11:43 +0100)
commit8fd52a21ab570e80f84f39e12affce42a5300e91
tree60d3fbd7a2ae7301a2049d064d66d993dbf6996a
parent2502107a9ccd23c36331eeff575fe0f29f3ddc75
coresight: Make sysfs functional on topologies with per core sink

[ Upstream commit 6d578258b955fc8888e1bbd9a8fefe7b10065a84 ]

Coresight driver assumes sink is common across all the ETMs,
and tries to build a path between ETM and the first enabled
sink found using bus based search. This breaks sysFS usage
on implementations that has multiple per core sinks in
enabled state.

To fix this, coresight_get_enabled_sink API is updated to
do a connection based search starting from the given source,
instead of bus based search.
With sink selection using sysfs depecrated for perf interface,
provision for reset is removed as well in this API.

Signed-off-by: Linu Cherian <lcherian@marvell.com>
[Fixed indentation problem and removed obsolete comment]
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200916191737.4001561-15-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwtracing/coresight/coresight-priv.h
drivers/hwtracing/coresight/coresight.c