Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi turn on the "sun50i-a64-unstable-timer" w...



details:   https://anonhg.NetBSD.org/src/rev/9a4c37297b0f
branches:  trunk
changeset: 456260:9a4c37297b0f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Apr 30 10:10:45 2019 +0000

description:
turn on the "sun50i-a64-unstable-timer" workaround on "allwinner,sun8i-a83t"
compatible CPUs.  avoids triggering the KASSERT() on cubietruck plus.

idea from jmcneill.

diffstat:

 sys/arch/arm/sunxi/sunxi_platform.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 54241a52c826 -r 9a4c37297b0f sys/arch/arm/sunxi/sunxi_platform.c
--- a/sys/arch/arm/sunxi/sunxi_platform.c       Tue Apr 30 09:23:00 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_platform.c       Tue Apr 30 10:10:45 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_platform.c,v 1.35 2019/02/03 15:43:57 jmcneill Exp $ */
+/* $NetBSD: sunxi_platform.c,v 1.36 2019/04/30 10:10:45 mrg Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
 #include "opt_console.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_platform.c,v 1.35 2019/02/03 15:43:57 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_platform.c,v 1.36 2019/04/30 10:10:45 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -219,6 +219,8 @@
                /* Allwinner A64 has an unstable architectural timer */
                const char * compat[] = {
                        "allwinner,sun50i-a64",
+                       /* Cubietruck Plus triggers this problem as well. */
+                       "allwinner,sun8i-a83t",
                        NULL
                };
                if (of_match_compatible(OF_finddevice("/"), compat)) {



Home | Main Index | Thread Index | Old Index