]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
coresight: Fix disabling of CoreSight TPIU
authorRobert Walker <robert.walker@arm.com>
Mon, 18 Dec 2017 18:05:44 +0000 (11:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 09:05:18 +0000 (10:05 +0100)
commit11595db8e17faaa05fadc25746c870e31276962f
treedd33837b440d081b3d3ba209754508c5192ee903
parent3703221944d00ac7af85c293f8939a273f587544
coresight: Fix disabling of CoreSight TPIU

The CoreSight TPIU should be disabled when tracing to other sinks to allow
them to operate at full bandwidth.

This patch fixes tpiu_disable_hw() to correctly disable the TPIU by
configuring the TPIU to stop on flush, initiating a manual flush, waiting
for the flush to complete and then waits for the TPIU to indicate it has
stopped.

Signed-off-by: Robert Walker <robert.walker@arm.com>
Tested-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-tpiu.c