All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] coresight: tmc: Add shutdown callback for TMC ETR/ETF
@ 2020-06-01  8:02 ` Sai Prakash Ranjan
  0 siblings, 0 replies; 58+ messages in thread
From: Sai Prakash Ranjan @ 2020-06-01  8:02 UTC (permalink / raw)
  To: Mathieu Poirier, Suzuki K Poulose, Mike Leach
  Cc: linux-arm-kernel, linux-kernel, linux-arm-msm, coresight,
	Stephen Boyd, Sai Prakash Ranjan

This series adds a shutdown callback to TMC ETR/ETF to ensure that
it is properly shutdown in reboot/shutdown path. This is required
for ETR/ETF which has SMMU address translation enabled like on SC7180
SoC and few others. If the hardware is still accessing memory after
SMMU translation is disabled as part of SMMU shutdown callback in
system reboot or shutdown path, then IOVAs(I/O virtual address)
which it was using will go on the bus as the physical addresses which
might result in unknown crashes (NoC/interconnect errors). So we make
sure from this shutdown callback that the ETR/ETF is shutdown before
SMMU translation is disabled and device_link in SMMU driver will take
care of ordering of shutdown callbacks such that SMMU shutdown callback
is not called before any of its consumer shutdown callbacks.

Sai Prakash Ranjan (2):
  coresight: tmc: Add enable flag to indicate the status of ETR/ETF
  coresight: tmc: Add shutdown callback for TMC ETR/ETF

 .../hwtracing/coresight/coresight-tmc-etf.c   |  4 +--
 .../hwtracing/coresight/coresight-tmc-etr.c   |  2 +-
 drivers/hwtracing/coresight/coresight-tmc.c   | 31 +++++++++++++++++++
 drivers/hwtracing/coresight/coresight-tmc.h   |  5 +++
 4 files changed, 39 insertions(+), 3 deletions(-)


base-commit: 059e38815950dbec65beafe03757bce9436e89a4
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation


^ permalink raw reply	[flat|nested] 58+ messages in thread

end of thread, other threads:[~2020-06-09 15:37 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-01  8:02 [PATCH 0/2] coresight: tmc: Add shutdown callback for TMC ETR/ETF Sai Prakash Ranjan
2020-06-01  8:02 ` Sai Prakash Ranjan
2020-06-01  8:02 ` [PATCH 1/2] coresight: tmc: Add enable flag to indicate the status of ETR/ETF Sai Prakash Ranjan
2020-06-01  8:02   ` Sai Prakash Ranjan
2020-06-01 13:27   ` Mike Leach
2020-06-01 13:27     ` Mike Leach
2020-06-01 17:13     ` Sai Prakash Ranjan
2020-06-01 17:13       ` Sai Prakash Ranjan
2020-06-01  8:02 ` [PATCH 2/2] coresight: tmc: Add shutdown callback for TMC ETR/ETF Sai Prakash Ranjan
2020-06-01  8:02   ` Sai Prakash Ranjan
2020-06-01 13:35   ` Mike Leach
2020-06-01 13:35     ` Mike Leach
2020-06-01 17:15     ` Sai Prakash Ranjan
2020-06-01 17:15       ` Sai Prakash Ranjan
2020-06-01 21:28   ` Mathieu Poirier
2020-06-01 21:28     ` Mathieu Poirier
2020-06-02  7:30     ` Sai Prakash Ranjan
2020-06-02  7:30       ` Sai Prakash Ranjan
2020-06-02 22:12       ` Mike Leach
2020-06-02 22:12         ` Mike Leach
2020-06-03 10:24         ` Sai Prakash Ranjan
2020-06-03 10:24           ` Sai Prakash Ranjan
2020-06-03 11:27           ` Mike Leach
2020-06-03 11:27             ` Mike Leach
2020-06-03 12:14             ` Sai Prakash Ranjan
2020-06-03 12:14               ` Sai Prakash Ranjan
2020-06-03 13:22               ` Mike Leach
2020-06-03 13:22                 ` Mike Leach
2020-06-03 13:34                 ` Robin Murphy
2020-06-03 13:34                   ` Robin Murphy
2020-06-03 13:43                   ` Sai Prakash Ranjan
2020-06-03 13:43                     ` Sai Prakash Ranjan
2020-06-03 13:51                   ` Mike Leach
2020-06-03 13:51                     ` Mike Leach
2020-06-03 14:02                     ` Sai Prakash Ranjan
2020-06-03 14:02                       ` Sai Prakash Ranjan
2020-06-03 17:44                   ` Mathieu Poirier
2020-06-03 17:44                     ` Mathieu Poirier
2020-06-04  7:27                     ` Sai Prakash Ranjan
2020-06-04  7:27                       ` Sai Prakash Ranjan
2020-06-08 14:07                       ` Sai Prakash Ranjan
2020-06-08 14:07                         ` Sai Prakash Ranjan
2020-06-09 15:27                         ` Mathieu Poirier
2020-06-09 15:27                           ` Mathieu Poirier
2020-06-09 15:37                           ` Sai Prakash Ranjan
2020-06-09 15:37                             ` Sai Prakash Ranjan
2020-06-03 11:37     ` Robin Murphy
2020-06-03 11:37       ` Robin Murphy
2020-06-03 12:00       ` Sai Prakash Ranjan
2020-06-03 12:00         ` Sai Prakash Ranjan
2020-06-03 12:21         ` Robin Murphy
2020-06-03 12:21           ` Robin Murphy
2020-06-03 12:26           ` Sai Prakash Ranjan
2020-06-03 12:26             ` Sai Prakash Ranjan
2020-06-03 13:40             ` Robin Murphy
2020-06-03 13:40               ` Robin Murphy
2020-06-03 13:51               ` Sai Prakash Ranjan
2020-06-03 13:51                 ` Sai Prakash Ranjan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.