All of lore.kernel.org
 help / color / mirror / Atom feed
* coresight: Add ETM4.1 support for ThunderX2
@ 2019-08-15 13:53 Tanmay Vilas Kumar Jagdale
  2019-08-19 20:33 ` Mathieu Poirier
  0 siblings, 1 reply; 3+ messages in thread
From: Tanmay Vilas Kumar Jagdale @ 2019-08-15 13:53 UTC (permalink / raw)
  To: mathieu.poirier
  Cc: Ganapatrao Kulkarni, Tomasz Nowicki, suzuki.poulose,
	Jayachandran Chandrasekharan Nair, Tanmay Vilas Kumar Jagdale,
	linux-arm-kernel

Add ETM4.1 periperhal ID for Marvell's ThunderX2 chip.

Signed-off-by: Tanmay Jagdale <tanmay@marvell.com>
---
 drivers/hwtracing/coresight/coresight-etm4x.c | 2 ++
 drivers/hwtracing/coresight/coresight-etm4x.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c
index 7bcac8896fc1..ac3bd617907b 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x.c
+++ b/drivers/hwtracing/coresight/coresight-etm4x.c
@@ -58,6 +58,7 @@ static bool etm4_arch_supported(u8 arch)
 	/* Mask out the minor version number */
 	switch (arch & 0xf0) {
 	case ETM_ARCH_V4:
+	case ETM_ARCH_V4_1:
 		break;
 	default:
 		return false;
@@ -1196,6 +1197,7 @@ static const struct amba_id etm4_ids[] = {
 	CS_AMBA_ID(0x000bb95e),		/* Cortex-A57 */
 	CS_AMBA_ID(0x000bb95a),		/* Cortex-A72 */
 	CS_AMBA_ID(0x000bb959),		/* Cortex-A73 */
+	CS_AMBA_ID(0x000cc0af),		/* Marvell ThunderX2 */
 	CS_AMBA_UCI_ID(0x000bb9da, uci_id_etm4),	/* Cortex-A35 */
 	{},
 };
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.h b/drivers/hwtracing/coresight/coresight-etm4x.h
index 4523f10ddd0f..03369e56b2eb 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x.h
+++ b/drivers/hwtracing/coresight/coresight-etm4x.h
@@ -137,6 +137,7 @@
 #define ETM_MAX_SS_CMP			8
 
 #define ETM_ARCH_V4			0x40
+#define ETM_ARCH_V4_1			0x41
 #define ETMv4_SYNC_MASK			0x1F
 #define ETM_CYC_THRESHOLD_MASK		0xFFF
 #define ETM_CYC_THRESHOLD_DEFAULT       0x100
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-09-05 10:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-15 13:53 coresight: Add ETM4.1 support for ThunderX2 Tanmay Vilas Kumar Jagdale
2019-08-19 20:33 ` Mathieu Poirier
2019-09-05 10:59   ` [EXT] " Tanmay Vilas Kumar Jagdale

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.