Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/sbmips Force all devices to IPL_VM. For so...



details:   https://anonhg.NetBSD.org/src/rev/32651887effb
branches:  trunk
changeset: 450355:32651887effb
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Apr 11 01:53:41 2019 +0000

description:
Force all devices to IPL_VM.  For some reason serial interrupts at
SPL_SERIAL (SPL_HIGH) wedge.  Gets sbmips to ~multiuser (usually with
a bunch of segfaults).

Possibly a gross hack, but not sure the current code ever worked...

diffstat:

 sys/arch/evbmips/sbmips/sb1250_icu.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r d60f0eafad71 -r 32651887effb sys/arch/evbmips/sbmips/sb1250_icu.c
--- a/sys/arch/evbmips/sbmips/sb1250_icu.c      Thu Apr 11 00:17:44 2019 +0000
+++ b/sys/arch/evbmips/sbmips/sb1250_icu.c      Thu Apr 11 01:53:41 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sb1250_icu.c,v 1.2 2017/07/24 09:56:45 mrg Exp $ */
+/* $NetBSD: sb1250_icu.c,v 1.3 2019/04/11 01:53:41 simonb Exp $ */
 
 /*
  * Copyright 2000, 2001
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sb1250_icu.c,v 1.2 2017/07/24 09:56:45 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sb1250_icu.c,v 1.3 2019/04/11 01:53:41 simonb Exp $");
 
 #define        __INTR_PRIVATE
 
@@ -339,6 +339,16 @@
        struct sb1250_ihand * const ih = &sb1250_ihands[num];
        const int s = splhigh();
 
+       /*
+        * XXX simonb 
+        * The swarm wedges hard on first serial interrupt when
+        * we try to map IPL_SERIAL at a higher priority than
+        * other device interrupts.  For now, just force all
+        * devices to interrupt at IPL_VM.
+        *
+        */
+       ipl = IPL_VM;   /* XXX */
+
        if (num >= K_INT_SOURCES)
                panic("%s: invalid interrupt number (0x%x)", __func__, num);
        if (ipl >= _IPL_N || ipl < IPL_VM)



Home | Main Index | Thread Index | Old Index