Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/cavium Need to set ci_request_ipis otherwise t...



details:   https://anonhg.NetBSD.org/src/rev/d4b4b9cac69e
branches:  trunk
changeset: 347291:d4b4b9cac69e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Aug 20 06:31:15 2016 +0000

description:
Need to set ci_request_ipis otherwise they won't get delivered.

Correct the test for the IPL_HIGH ipis

diffstat:

 sys/arch/mips/cavium/octeon_intr.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b7e040c9add8 -r d4b4b9cac69e sys/arch/mips/cavium/octeon_intr.c
--- a/sys/arch/mips/cavium/octeon_intr.c        Sat Aug 20 05:44:00 2016 +0000
+++ b/sys/arch/mips/cavium/octeon_intr.c        Sat Aug 20 06:31:15 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: octeon_intr.c,v 1.6 2016/07/12 06:13:39 skrll Exp $    */
+/*     $NetBSD: octeon_intr.c,v 1.7 2016/08/20 06:31:15 skrll Exp $    */
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
  * All rights reserved.
@@ -45,7 +45,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_intr.c,v 1.6 2016/07/12 06:13:39 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_intr.c,v 1.7 2016/08/20 06:31:15 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -616,7 +616,8 @@
        struct cpu_softc * const cpu = ci->ci_softc;
        uint64_t ipi_mask = __BIT(req);
 
-       if (__BIT(req) == (__BIT(IPI_SUSPEND)|__BIT(IPI_WDOG))) {
+       atomic_or_64(&ci->ci_request_ipis, ipi_mask);
+       if (req == IPI_SUSPEND || req == IPI_WDOG) {
                ipi_mask <<= 16;
        }
 



Home | Main Index | Thread Index | Old Index