svn commit: r305768 - stable/11/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Tue Sep 13 14:14:41 UTC 2016
Author: andrew
Date: Tue Sep 13 14:14:39 2016
New Revision: 305768
URL: https://svnweb.freebsd.org/changeset/base/305768
Log:
MFC 305767:
Add a warning about a known erratum we have observed on ThunderX pass 1.1.
As this is evaluation hardware with only a few users, and there is a lack
of information add a warning when booting on this hardware.
Modified:
stable/11/sys/arm64/arm64/identcpu.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/arm64/arm64/identcpu.c
==============================================================================
--- stable/11/sys/arm64/arm64/identcpu.c Tue Sep 13 14:10:49 2016 (r305767)
+++ stable/11/sys/arm64/arm64/identcpu.c Tue Sep 13 14:14:39 2016 (r305768)
@@ -179,6 +179,28 @@ print_cpu_features(u_int cpu)
}
printf("\n");
+ /*
+ * There is a hardware errata where, if one CPU is performing a TLB
+ * invalidation while another is performing a store-exclusive the
+ * store-exclusive may return the wrong status. A workaround seems
+ * to be to use an IPI to invalidate on each CPU, however given the
+ * limited number of affected units (pass 1.1 is the evaluation
+ * hardware revision), and the lack of information from Cavium
+ * this has not been implemented.
+ *
+ * At the time of writing this the only information is from:
+ * https://lkml.org/lkml/2016/8/4/722
+ */
+ /*
+ * XXX: CPU_MATCH_ERRATA_CAVIUM_THUNDER_1_1 on it's own also
+ * triggers on pass 2.0+.
+ */
+ if (cpu == 0 && CPU_VAR(PCPU_GET(midr)) == 0 &&
+ CPU_MATCH_ERRATA_CAVIUM_THUNDER_1_1)
+ printf("WARNING: ThunderX Pass 1.1 detected.\nThis has known "
+ "hardware bugs that may cause the incorrect operation of "
+ "atomic operations.\n");
+
if (cpu != 0 && cpu_print_regs == 0)
return;
More information about the svn-src-all
mailing list