NetBSD Problem Report #11805
Received: (qmail 27764 invoked from network); 24 Dec 2000 01:21:04 -0000
Message-Id: <200012240119.eBO1JgM01410@router.nw.com>
Date: Sat, 23 Dec 2000 17:19:42 -0800 (PST)
From: mkl@nw.com
Reply-To: mkl@nw.com
To: gnats-bugs@gnats.netbsd.org, mkl@nw.com
Subject: isa_ntwoc hangs on reboot
X-Send-Pr-Version: 3.95
>Number: 11805
>Category: kern
>Synopsis: isa_ntwoc hangs on reboot
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 24 01:22:00 +0000 2000
>Closed-Date: Fri Nov 27 20:57:01 +0000 2009
>Last-Modified: Fri Nov 27 21:00:03 +0000 2009
>Originator: Charlie Root
>Release: 1.5
>Organization:
>Environment:
System: NetBSD router.nw.com 1.5 NetBSD 1.5 (ROUTER) #4: Thu Dec 21 19:13:26 PST 2000 root@router.nw.com:/usr/src/sys/arch/i386/compile/ROUTER i386
>Description:
Adding an SDL Riscom/N2 ISA card and configuring the GENERIC kernel to use this
card causes the system to hang after the "reboot" command is given.
>How-To-Repeat:
Very repeatable as mentioned above and with non-GENERIC kernels.
>Fix:
change the shutdown routine to look like the one below (based on pci version of driver):
in /sys/dev/isa/if_ntwoc_isa.c, add a line to turn off the card:
/*
* shut down interrupts and DMA, so we don't trash the kernel on warm
* boot. Also, lower DTR on each port and disable card interrupts.
*/
static void
ntwoc_isa_shutdown(void *aux)
{
struct ntwoc_isa_softc *sc = aux;
u_int16_t mcr;
/*
* shut down the SCA ports
*/
sca_shutdown(&sc->sc_sca);
/*
* lower DTR on both ports
*/
mcr = bus_space_read_1(sc->sc_sca.sc_iot, sc->sc_sca.sc_ioh, NTWOC_MCR);
mcr |= (NTWOC_MCR_DTR0 | NTWOC_MCR_DTR1);
bus_space_write_1(sc->sc_sca.sc_iot, sc->sc_sca.sc_ioh, NTWOC_MCR, mcr);
/* turn off the card */
bus_space_write_1(sc->sc_sca.sc_iot, sc->sc_sca.sc_ioh, NTWOC_PCR, 0);
}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: dsl@NetBSD.org
State-Changed-When: Fri, 27 Nov 2009 20:57:01 +0000
State-Changed-Why:
patch finally applied
From: David Laight <dsl@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/11805 CVS commit: src/sys/dev/isa
Date: Fri, 27 Nov 2009 20:56:29 +0000
Module Name: src
Committed By: dsl
Date: Fri Nov 27 20:56:29 UTC 2009
Modified Files:
src/sys/dev/isa: if_ntwoc_isa.c
Log Message:
Add patch from PR/11805
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/isa/if_ntwoc_isa.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.