linux-stable/drivers/hwtracing/coresight
Suzuki K Poulose df81b43802 coresight: etm4x: Skip accessing TRCPDCR in save/restore
When the ETM is affected by Qualcomm errata, modifying the
TRCPDCR could cause the system hang. Even though this is
taken care of during enable/disable ETM, the ETM state
save/restore could still access the TRCPDCR. Make sure
we skip the access during the save/restore.

Found by code inspection.

Link: https://lore.kernel.org/r/20210110224850.1880240-3-suzuki.poulose@arm.com
Fixes: 02510a5aa7 ("coresight: etm4x: Add support to skip trace unit power up")
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Cc: Tingwei Zhang <tingwei@codeaurora.org>
Tested-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Reviewed-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20210201181351.1475223-5-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-04 17:00:32 +01:00
..
coresight-catu.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
coresight-catu.h coresight: tmc-etr: Add function to register catu ops 2020-09-28 19:47:42 +02:00
coresight-core.c coresight: Fix W=1 warnings in core framework 2020-11-27 20:23:13 +01:00
coresight-cpu-debug.c coresight: cpu_debug: Define MODULE_DEVICE_TABLE 2020-09-28 19:47:40 +02:00
coresight-cti-core.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
coresight-cti-platform.c coresight: cti: Reduce scope for the variable 'cs_fwnode' in cti_plat_create_connection() 2021-02-04 17:00:32 +01:00
coresight-cti-sysfs.c coresight: cti: Initialize dynamic sysfs attributes 2020-10-29 20:10:25 +01:00
coresight-cti.h coresight: Include required headers in C files 2020-05-19 16:31:18 +02:00
coresight-etb10.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
coresight-etm-cp14.c coresight: Moving framework and drivers to SPDX identifier 2018-05-14 16:19:59 +02:00
coresight-etm-perf.c coresight: Fix uninitialised pointer bug in etm_setup_aux() 2020-10-29 20:10:25 +01:00
coresight-etm-perf.h coresight: core: Allow the coresight core driver to be built as a module 2020-09-28 19:47:42 +02:00
coresight-etm.h coresight: etm: Clean up device specific data 2019-06-19 20:29:14 +02:00
coresight-etm3x-core.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
coresight-etm3x-sysfs.c coresight: etm: Clean up device specific data 2019-06-19 20:29:14 +02:00
coresight-etm4x-core.c coresight: etm4x: Skip accessing TRCPDCR in save/restore 2021-02-04 17:00:32 +01:00
coresight-etm4x-sysfs.c coresight: etm4x: Fix mis-usage of nr_resource in sysfs interface 2020-09-17 18:46:05 +02:00
coresight-etm4x.h coresight: etm4x: Handle access to TRCSSPCICRn 2021-02-04 17:00:32 +01:00
coresight-funnel.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
coresight-platform.c coresight: cti: Allow cti to be built as a module 2020-09-28 19:47:42 +02:00
coresight-priv.h coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf() 2020-11-27 20:23:12 +01:00
coresight-replicator.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
coresight-stm.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
coresight-sysfs.c coresight: Export global symbols 2020-09-28 19:47:40 +02:00
coresight-tmc-core.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
coresight-tmc-etf.c coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf() 2020-11-27 20:23:12 +01:00
coresight-tmc-etr.c coresight: tmc-etr: Fix barrier packet insertion for perf buffer 2020-12-08 19:57:19 +01:00
coresight-tmc.h coresight: tmc-etr: Add function to register catu ops 2020-09-28 19:47:42 +02:00
coresight-tpiu.c coresight: remove broken __exit annotations 2020-12-08 19:57:19 +01:00
Kconfig coresight: etm4x: Modify core-commit to avoid HiSilicon ETM overflow 2020-12-08 19:57:19 +01:00
Makefile coresight: core: Allow the coresight core driver to be built as a module 2020-09-28 19:47:42 +02:00