1
0
Fork 0
alistair23-linux/drivers/hwtracing
Linu Cherian 8fd52a21ab coresight: Make sysfs functional on topologies with per core sink
[ Upstream commit 6d578258b9 ]

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>
2020-11-05 11:43:18 +01:00
..
coresight coresight: Make sysfs functional on topologies with per core sink 2020-11-05 11:43:18 +01:00
intel_th intel_th: Disallow multi mode on devices where it's broken 2020-10-01 13:17:44 +02:00
stm stm class: sys-t: Fix the use of time_after() 2020-03-25 08:25:56 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00