NetBSD Problem Report #9992

Received: (qmail 1565 invoked from network); 27 Apr 2000 11:21:47 -0000
Message-Id: <200004271121.EAA14831@nbwww.isc.org>
Date: Thu, 27 Apr 2000 04:21:47 -0700 (PDT)
From: jate@uwasa.fi
Reply-To: jate@uwasa.fi
To: gnats-bugs@gnats.netbsd.org
Subject: 1.4.2 GENERIC crashes at pas-probe(i386)
X-Send-Pr-Version: www-1.0

>Number:         9992
>Category:       port-i386
>Synopsis:       1.4.2 GENERIC crashes at pas-probe(i386)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jdolecek
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 27 11:22:00 +0000 2000
>Closed-Date:    Fri Apr 28 08:53:50 +0000 2000
>Last-Modified:  Fri Apr 28 08:53:50 +0000 2000
>Originator:     Jarkko Teppo
>Release:        1.4.2
>Organization:
HP 9000 fanatics anonymous
>Environment:
NetBSD hostname 1.4.2 NetBSD 1.4.2 (GENERIC) #1: Mon Mar 13 01:24:35 PST 2000 toddpw@vader.toddpw.net:/usr/src/sys/arch/i386/compile/GENERIC i386

>Description:
Intel i486-75 8MB noname laptop, ESS ES488 AudioDrive (probes as sb0), 
CT65540 VGA, crashes when booting 1.4.2 GENERIC kernel after installation.
GENERIC_TINY works OK.

Boot message copied with 10-finger ddb.
----
<after finding sb0>
audio0 at sb0: half duplex
opl at sb0 not configured
pas: can't map i/o space 0x220/24 in probe
extent 'ioport' (0x0 - 0xffff), flags = 0x3
	0x0 - 0xf
	0x60 - 0x60
	0x64 - 0x64
	0x80 - 0x8e
	0xc0 - 0xdf
	0x170 - 0x177
	0x1f0 - 0x1f7
	0x220 - 0x22f
	0x2f8 - 0x2ff
	0x376 - 0x376
	0x378 - 0x37b
	0x388 - 0x388
	0x3c0 - 0x3cf
	0x3d0 - 0x3df
	0x3f6 - 0x3f6
	0x3f8 - 0x3ff
extent_free: start 0x0, end 0x17
panic: extent_free: region not found
Stopped in at _Debugger+0x4:  leave
db> trace
_Debugger(0,0,17,c044abd0,c019401b) at _Debugger+0x4
_panic(c0193e5f, c0193e3a,0,17,c03caf18) at _panic+0x55
_extent_free(c03caf18,0,18,10) at _extent_free+0x19b
_i386_memio_unmap(0,0,18) at _i386_memio_unmap+0xd1
_pasfind(c04d3f80.c044ac48,c044ad98,1,0) at _pasfind+0x1dc
_pasprobe(c04d3f80,c0396fac,c044ad98) at _pasprobe+0x4b
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: "PER4MANCE, J. Dolecek" <jdolecek@per4mance.cz>
To: jate@uwasa.fi
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/9992: 1.4.2 GENERIC crashes at pas-probe(i386)
Date: Thu, 27 Apr 2000 13:33:11 +0200

 jate@uwasa.fi wrote:
 > >Description:
 > Intel i486-75 8MB noname laptop, ESS ES488 AudioDrive (probes as sb0),
 > CT65540 VGA, crashes when booting 1.4.2 GENERIC kernel after installation.
 > GENERIC_TINY works OK.
 > 
 > Boot message copied with 10-finger ddb.
 > ----
 > <after finding sb0>
 > audio0 at sb0: half duplex
 > opl at sb0 not configured
 > pas: can't map i/o space 0x220/24 in probe
 > extent 'ioport' (0x0 - 0xffff), flags = 0x3
 >         0x0 - 0xf
 >         0x60 - 0x60
 >         0x64 - 0x64
 >         0x80 - 0x8e
 >         0xc0 - 0xdf
 >         0x170 - 0x177
 >         0x1f0 - 0x1f7
 >         0x220 - 0x22f
 >         0x2f8 - 0x2ff
 >         0x376 - 0x376
 >         0x378 - 0x37b
 >         0x388 - 0x388
 >         0x3c0 - 0x3cf
 >         0x3d0 - 0x3df
 >         0x3f6 - 0x3f6
 >         0x3f8 - 0x3ff
 > extent_free: start 0x0, end 0x17
 > panic: extent_free: region not found
 > Stopped in at _Debugger+0x4:  leave
 > db> trace

 I briefly looked at the code and an error seems to be obvious - could
 you please try out if the kernel with this patch applied would
 boot ok (just the pas warning should appear, but machine should
 not panic any more):

 XXXX
 Index: pas.c
 ===================================================================
 RCS file: /cvsroot/syssrc/sys/dev/isa/pas.c,v
 retrieving revision 1.46
 diff -u -p -r1.46 pas.c
 --- pas.c       1999/02/18 07:08:36     1.46
 +++ pas.c       2000/04/27 11:30:26
 @@ -389,7 +389,7 @@ pasfind(parent, sc, ia, probing)
             &sc->sc_sbdsp.sc_ioh)) {
                 printf("pas: can't map i/o space 0x%x/%d in probe\n",
                     ia->ia_iobase, SBP_NPORT);
 -               goto unmap;
 +               goto unmap1;
         }

         if (sbdsp_reset(&sc->sc_sbdsp) < 0) {
 XXXX

 Jaromir

From: Matthias Drochner <M.Drochner@fz-juelich.de>
To: jate@uwasa.fi
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/9992: 1.4.2 GENERIC crashes at pas-probe(i386) 
Date: Thu, 27 Apr 2000 13:39:28 +0200

 jate@uwasa.fi said:
 > pas: can't map i/o space 0x220/24 in probe 
 > [...]
 > panic: extent_free: region not found

 Can you try the following?

 best regards
 Matthias


 Index: pas.c
 ===================================================================
 RCS file: /cvsroot/syssrc/sys/dev/isa/pas.c,v
 retrieving revision 1.46
 diff -c -r1.46 pas.c
 *** pas.c	1999/02/18 07:08:36	1.46
 --- pas.c	2000/04/27 11:36:57
 ***************
 *** 389,395 ****
   	    &sc->sc_sbdsp.sc_ioh)) {
   		printf("pas: can't map i/o space 0x%x/%d in probe\n",
   		    ia->ia_iobase, SBP_NPORT);
 ! 		goto unmap;
   	}

   	if (sbdsp_reset(&sc->sc_sbdsp) < 0) {
 --- 389,395 ----
   	    &sc->sc_sbdsp.sc_ioh)) {
   		printf("pas: can't map i/o space 0x%x/%d in probe\n",
   		    ia->ia_iobase, SBP_NPORT);
 ! 		goto unmap1;
   	}

   	if (sbdsp_reset(&sc->sc_sbdsp) < 0) {



From: Jarkko Hermanni Teppo <jate@UWasa.Fi>
To: dolecek@ics.muni.cz, \"PER4MANCE@reimari.uwasa.fi,
        "J. Dolecek\\"" <jdolecek@per4mance.cz>"@reimari.uwasa.fi
Cc: jate@uwasa.fi, gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/9992: 1.4.2 GENERIC crashes at pas-probe(i386)
Date: Fri, 28 Apr 2000 08:27:32 +0300 (EET DST)

 Quoting \"PER4MANCE, J. Dolecek\" <jdolecek@per4mance.cz>:

 > jate@uwasa.fi wrote:
 > > >Description:
 > > Intel i486-75 8MB noname laptop, ESS ES488 AudioDrive (probes as sb0),
 > > CT65540 VGA, crashes when booting 1.4.2 GENERIC kernel after
 > installation.
 > > GENERIC_TINY works OK.
 > > 
 > > Boot message copied with 10-finger ddb.
 > > ----
 > > <after finding sb0>
 > > audio0 at sb0: half duplex
 > > opl at sb0 not configured
 > > pas: can\'t map i/o space 0x220/24 in probe
 > > extent \'ioport\' (0x0 - 0xffff), flags = 0x3
 > >         0x0 - 0xf
 > >         0x60 - 0x60
 > >         0x64 - 0x64
 > >         0x80 - 0x8e
 > >         0xc0 - 0xdf
 > >         0x170 - 0x177
 > >         0x1f0 - 0x1f7
 > >         0x220 - 0x22f
 > >         0x2f8 - 0x2ff
 > >         0x376 - 0x376
 > >         0x378 - 0x37b
 > >         0x388 - 0x388
 > >         0x3c0 - 0x3cf
 > >         0x3d0 - 0x3df
 > >         0x3f6 - 0x3f6
 > >         0x3f8 - 0x3ff
 > > extent_free: start 0x0, end 0x17
 > > panic: extent_free: region not found
 > > Stopped in at _Debugger+0x4:  leave
 > > db> trace
 > 
 > I briefly looked at the code and an error seems to be obvious - could
 > you please try out if the kernel with this patch applied would
 > boot ok (just the pas warning should appear, but machine should
 > not panic any more):
 > 
 > XXXX
 > Index: pas.c
 > ===================================================================
 > RCS file: /cvsroot/syssrc/sys/dev/isa/pas.c,v
 > retrieving revision 1.46
 > diff -u -p -r1.46 pas.c
 > --- pas.c       1999/02/18 07:08:36     1.46
 > +++ pas.c       2000/04/27 11:30:26
 > @@ -389,7 +389,7 @@ pasfind(parent, sc, ia, probing)
 >             &sc->sc_sbdsp.sc_ioh)) {
 >                 printf(\"pas: can\'t map i/o space 0x%x/%d in probe\\n\",
 >                     ia->ia_iobase, SBP_NPORT);
 > -               goto unmap;
 > +               goto unmap1;
 >         }
 >  
 >         if (sbdsp_reset(&sc->sc_sbdsp) < 0) {
 > XXXX
 > 
 > Jaromir
 > 

 This worked perfectly, kernel still prints \"pas: can\'t map i/o...\" 
 but it won\'t crash. Thank you very much !



 -- 
 Jarkko Teppo
 jate@uwasa.fi
State-Changed-From-To: open->closed 
State-Changed-By: jdolecek 
State-Changed-When: Fri Apr 28 01:52:35 PDT 2000 
State-Changed-Why:  
Fixed, thanks (rev. 1.47 of sys/dev/isa/pas.c) 


Responsible-Changed-From-To: port-i386-maintainer->jdolecek 
Responsible-Changed-By: jdolecek 
Responsible-Changed-When: Fri Apr 28 01:52:35 PDT 2000 
Responsible-Changed-Why:  
I took care of this PR. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.