Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/arch/arm/cortex Pull up following revision(s) (reques...



details:   https://anonhg.NetBSD.org/src/rev/c43fc1239ef2
branches:  netbsd-9
changeset: 954185:c43fc1239ef2
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Mar 31 13:41:01 2021 +0000

description:
Pull up following revision(s) (requested by skrll in ticket #1238):

        sys/arch/arm/cortex/gic.c: revision 1.47

Only target the boot cpu for real with SPI interrupts.  I tried to do
this back in 2014, but somehow I missed a spot.

This is a quick-and-dirty fix for the USB stack which expects transfer
completions to be in-order.  If interrupts happen across the CPUs then
this isn't guaranteed (yet).

kern/55243 panic at usb_transfer_complete() on raspberry pi 4

diffstat:

 sys/arch/arm/cortex/gic.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 1a580afbf608 -r c43fc1239ef2 sys/arch/arm/cortex/gic.c
--- a/sys/arch/arm/cortex/gic.c Sun Mar 28 18:23:56 2021 +0000
+++ b/sys/arch/arm/cortex/gic.c Wed Mar 31 13:41:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gic.c,v 1.38 2018/11/16 23:25:09 jmcneill Exp $        */
+/*     $NetBSD: gic.c,v 1.38.4.1 2021/03/31 13:41:01 martin Exp $      */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -34,7 +34,7 @@
 #define _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.38 2018/11/16 23:25:09 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.38.4.1 2021/03/31 13:41:01 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -504,7 +504,11 @@
                if (is != NULL && is->is_mpsafe) {
                        const u_int byte_shift = 8 * (irq & 3);
                        uint32_t targets = gicd_read(sc, targets_reg);
+#if 0
                        targets |= sc->sc_mptargets << byte_shift;
+#else
+                       targets |= sc->sc_bptargets << byte_shift;
+#endif
                        gicd_write(sc, targets_reg, targets);
                }
        }



Home | Main Index | Thread Index | Old Index