android_kernel_oneplus_msm8998/drivers/hwtracing
Robert Walker b153ad5f77 coresight: Fix disabling of CoreSight TPIU
[ Upstream commit 11595db8e17faaa05fadc25746c870e31276962f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-24 10:58:48 +01:00
..
coresight coresight: Fix disabling of CoreSight TPIU 2018-03-24 10:58:48 +01:00
intel_th intel_th: pci: Add Gemini Lake support 2017-12-20 10:04:54 +01:00
stm stm class: Fix a use-after-free 2017-10-12 11:27:33 +02:00