Current-Users archive

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

Re: shutdown panics on i386



On Wed, Apr 29, 2009 at 04:31:54PM +0100, Patrick Welche wrote:
> On Wed, Apr 22, 2009 at 03:29:11PM -0500, David Young wrote:
> > On Wed, Apr 22, 2009 at 10:36:47AM +0200, Kurt Schreiner wrote:
> > > Hi,
> > > 
> > > with a kernel build from -current source last updated yesterday I see
> > > the following while shutting down or rebooting the system (an old Dell
> > > C610 Notebook):
> > > 
> > > ...
> > > cardsolt0: detached
> > > wd0: detached
> > > extend 'iomem' (0x0 - 0xffffffff), flags = 0x3
> > >   0x0 - 0x9fbff
> > >   0xa0000 - 0xbffff
> > >   0xc0000 - 0xc7fff
> > >   0x100000 - 0x2ffd2fff
> > >   0x40000000 - 0x40000fff
> > >   0x40001000 - 0x40001fff
> > >   0x40002000 - 0x40002fff
> > >   0x40003000 - 0x40003fff
> > > extend_free: start 0x40001000, end 0x40000fff
> > > panic: extend_free: region not found
> > > fatal braekpoint trap in supervisor mode
> > > trap type 1 code 0 eip c014fa74 cs 8 eflags 246 cr2 bbb43ef0 ilevel 0
> > > Stopped in pid 619.1 (halt) at netbsd:braekpoint+0x4: popl        %ebp
> > > db{0}>
> > > 
> > > And no, ther's no typo in the extend_free: start... line! (Even if the
> > > whole mess is hand copied from the notebook screen ;-)
> > 
> > Please send your dmesg and a backtrace.
> > 
> > That is indeed a strange extend_free line, thanks for calling
> > attention to it!
> 
> Surprisingly I have a different cardbus slot to Kurt:
> 
> cbb0 at pci1 dev 3 function 0: Ricoh 5C476 PCI-CardBus Bridge (rev. 0xac)
> cbb1 at pci1 dev 3 function 1: Ricoh 5C476 PCI-CardBus Bridge (rev. 0xac)
> 
> Solved by adding
> 
> options     PCI_ADDR_FIXUP
> 
> (before only PCI_BUS_FIXUP was needed...)

Kurt, Patrick, Matt,

I figured it out.  Please try the attached patch.

You shouldn't need PCI_ADDR_FIXUP any more.  It was helpful that you
told me that it solved the problem, though, thanks!

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933
Index: pccbb.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/pccbb.c,v
retrieving revision 1.185
diff -p -u -u -p -r1.185 pccbb.c
--- pccbb.c     2 Apr 2009 00:09:33 -0000       1.185
+++ pccbb.c     1 May 2009 22:59:20 -0000
@@ -643,7 +643,7 @@ pccbb_pci_callback(device_t self)
                    (unsigned long)pci_conf_read(pc,
                    sc->sc_tag, PCI_SOCKBASE)));
 #endif
-               sc->sc_flags |= CBB_MEMHMAPPED;
+               sc->sc_flags |= CBB_MEMHMAPPED|CBB_SPECMAPPED;
        }
 
        /* clear data structure for child device interrupt handlers */


Home | Main Index | Thread Index | Old Index