Skip to contentSkip to conversation

coresight: ete: Enable iomem access

PATCH New Yabin Cui 1 participant 1 message Aug 25, 2023

Subsystems (2)
lore
Share & tools
lore

Yabin Cui

author
#0 lore raw

PATCH 1/1 coresight: ete: Enable iomem access

On some devices, sysreg access to ETE may be disabled, while iomem access is still usable.

---
 drivers/hwtracing/coresight/coresight-etm4x-core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/hwtracing/coresight/coresight-etm4x-core.c +3 -2
index 7e307022303a..de14aa55af63 100644
@@ -1079,8 +1079,9 @@ static bool etm4_init_iomem_access(struct etmv4_drvdata *drvdata,
 	 * with MMIO. But we cannot touch the OSLK until we are
 	 * sure this is an ETM. So rely only on the TRCDEVARCH.
 	 */
-	if ((devarch & ETM_DEVARCH_ID_MASK) != ETM_DEVARCH_ETMv4x_ARCH) {
-		pr_warn_once("TRCDEVARCH doesn't match ETMv4 architecture\n");
+	if ((devarch & ETM_DEVARCH_ID_MASK) != ETM_DEVARCH_ETMv4x_ARCH &&
+		(devarch & ETM_DEVARCH_ID_MASK) != ETM_DEVARCH_ETE_ARCH) {
+		pr_warn_once("TRCDEVARCH doesn't match ETMv4/ETE architecture\n");
 		return false;
 	}
 
Signature · 7 lines
2.42.0.rc1.204.g551eb34607-goog


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel