NetBSD Problem Report #23192

Received: (qmail 26884 invoked by uid 605); 19 Oct 2003 16:11:31 -0000
Message-Id: <20031019161130.62B3D11152@narn.netbsd.org>
Date: Sun, 19 Oct 2003 16:11:30 +0000 (UTC)
From: GBC01623@nifty.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: GBC01623@nifty.com
To: gnats-bugs@gnats.NetBSD.org
Subject: 'pciide at pnpbios' confirmed, however does not boot.
X-Send-Pr-Version: www-1.0

>Number:         23192
>Category:       kern
>Synopsis:       'pciide at pnpbios' confirmed, however does not boot.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bouyer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 19 16:12:00 +0000 2003
>Closed-Date:    
>Last-Modified:  Mon Sep 01 02:05:07 +0000 2008
>Originator:     Koizumi Noriyuki
>Release:        NetBSD 1.6ZC
>Organization:
>Environment:
NetBSD libretto 1.6ZC NetBSD 1.6ZC (LIBRETTO) #17: Mon Oct 14 01:29:17 JST 2003 koizumi@desktop:/usr/src/sys/arch/i386/compile/LIBRETTO i386
>Description:
Since 1.6ZB, I can't boot by the custom kernel.


I added the following change to GENERIC_LAPTOP.

  pnpbios at mainbus
  pciide at pnpbios

And it compiled, installed and rebooted by the new kernel.
However, it stopped at the following message.

(digest)
  :
pnpbios0 at mainbus0: code f0000, data 0, entry 9534, control 1 eventp 510
pnpbios0: nodes 15, max len 207
pnpbios0: node index mismatch (static): requested 0, got 1
  :
pciide0 at pnpbios0 index 12 (TOS7300)
pciide0: io 1f0-1f7 3f6 1800-180f, irq 14
pciide0: Toshiba Extended IDE Controller
atabus0 at pciide0 channel 0
  :
wd0 at atabus0 drive 0: <TOSHIBA MK8113MAT>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 7815 MB, 16938 cyl, 15 head, 63 sec, 512 bytes/sect x 16006410 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
uvm_fault(0xc03feb20, 0, 0, 1) -> 0xe
Kernal: page fault trap, code=0
Stopped in pid 2.1 (atabus0) at netbsd:_bus_dmamap_load+0xf:    cmpl    0(%ebx),%edi
db> 

This is the log of trace. 

db> t
_bus_dmamap_load(c03c6d00,0,c7d1a000,200,0) at netbsd:_bus_dmamap_load+0xf
pciide_dma_init(c064a400,0,0,c7d1a000,200) at netbsd:pciide_dma_init+0x4c
_wdc_ata_bio_start(c064a4e4,c0704000,0,c8cde088,c8cd51ac) at netbsd:_wdc_ata_bio_start+0x180
atabus_thread(c066ab80,45e000,467000,0,c010030c) at netbsd:atabus_thread+0x13a

>How-To-Repeat:
'pciide at pnpbios' enabled.


>Fix:
I don't know, sorry.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: bouyer 
State-Changed-When: Sun Oct 19 21:18:10 UTC 2003 
State-Changed-Why:  
To fix this, we need to split the set_modes() callback in a callback to 
set the PIO/DMA/UDMA modes, and one to do the setups/config once the drives 
have been probed. 


Responsible-Changed-From-To: kern-bug-people->bouyer 
Responsible-Changed-By: bouyer 
Responsible-Changed-When: Sun Oct 19 21:18:10 UTC 2003 
Responsible-Changed-Why:  
I'll look at this. 

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: GBC01623@nifty.com
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/23192: 'pciide at pnpbios' confirmed, however does not boot.
Date: Sun, 19 Oct 2003 23:17:08 +0200

 --a8Wt8u1KmwUX3Y2C
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Sun, Oct 19, 2003 at 04:11:30PM +0000, GBC01623@nifty.com wrote:
 > wd0 at atabus0 drive 0: <TOSHIBA MK8113MAT>
 > wd0: drive supports 16-sector PIO transfers, LBA addressing
 > wd0: 7815 MB, 16938 cyl, 15 head, 63 sec, 512 bytes/sect x 16006410 sectors
 > wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 > uvm_fault(0xc03feb20, 0, 0, 1) -> 0xe
 > Kernal: page fault trap, code=0
 > Stopped in pid 2.1 (atabus0) at netbsd:_bus_dmamap_load+0xf:    cmpl    0(%ebx),%edi
 > db> 
 > 
 > This is the log of trace. 

 Hum, proper fixing require some interface change in the IDE code.
 For now I think you can use the attached patch.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 24 ans d'experience feront toujours la difference
 --

 --a8Wt8u1KmwUX3Y2C
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=diff

 Index: pciide_pnpbios.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/i386/pnpbios/pciide_pnpbios.c,v
 retrieving revision 1.10
 diff -u -r1.10 pciide_pnpbios.c
 --- pciide_pnpbios.c	2003/10/08 11:10:18	1.10
 +++ pciide_pnpbios.c	2003/10/19 21:15:55
 @@ -122,9 +122,7 @@
  	sc->sc_wdcdev.nchannels = 1;
  	sc->sc_wdcdev.cap |= WDC_CAPABILITY_DATA16 | WDC_CAPABILITY_DATA32;
  	sc->sc_wdcdev.cap |= WDC_CAPABILITY_DMA | WDC_CAPABILITY_UDMA;
 -#if 0 /* XXX */
  	sc->sc_wdcdev.cap |= WDC_CAPABILITY_MODE;
 -#endif
          sc->sc_wdcdev.PIO_cap = 4;
          sc->sc_wdcdev.DMA_cap = 2;		/* XXX */
          sc->sc_wdcdev.UDMA_cap = 2;		/* XXX */

 --a8Wt8u1KmwUX3Y2C--

From: Koizumi Noriyuki <GBC01623@nifty.ne.jp>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: GBC01623@nifty.com, gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/23192: 'pciide at pnpbios' confirmed, however does not boot.
Date: Mon, 20 Oct 2003 23:31:41 +0900

 Hi,

 Manuel Bouyer=82=B3=82=F1=82=CC<20031019211708.GA2557@antioche.eu.org>=82=A9=
 =82=E7
  | Hum, proper fixing require some interface change in the IDE code.
  | For now I think you can use the attached patch.

 I tried this patch, works fine.

 But now I see another problem.
 'wd0(pciide0:0:0): using PIO mode 0 ???'

 Thanks for advance.

 --
 Noriyuki Koizumi
 GBC01623@nifty.com


 NetBSD 1.6ZD (LIBRETTO) #28: Mon Oct 20 22:48:34 JST 2003
         koizumi@desktop:/usr/src/sys/arch/i386/compile/LIBRETTO
 total memory =3D 97980 KB
 avail memory =3D 87008 KB
 using 1250 buffers containing 5000 KB of memory
 BIOS32 rev. 0 found at 0xfe95a
 mainbus0 (root)
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel Pentium/MMX (Tillamook) (586-class), 133.32 MHz, id 0x581
 cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
 cpu0: features 8001bf<MMX>
 pnpbios0 at mainbus0: code f0000, data 0, entry 9534, control 1 eventp 510
 pnpbios0: nodes 15, max len 207
 pnpbios0: node index mismatch (static): requested 0, got 1
 PNP0C01 (mem 0-9ffff f0000-fffff 100000-600ffff 6010000-603ffff fff00000-ff=
 ffffff fef80000-feffffff) at pnpbios0 index 0 ignored
 PNP0200 (io 0-f 81-83 87 89-8b 8f c0-df, DMA 4) at pnpbios0 index 2 ignored=

 PNP0000 (io 20-21 a0-a1, irq 2) at pnpbios0 index 3 ignored
 PNP0100 (io 40-43, irq 0) at pnpbios0 index 4 ignored
 PNP0800 (io 61) at pnpbios0 index 5 ignored
 PNP0C04 (io f0-ff, irq 13) at pnpbios0 index 6 ignored
 pckbc0 at pnpbios0 index 7 (PNP0303): kbd port
 pckbc1 at pnpbios0 index 8 (PNP0F13): aux port
 PNP0B00 (io 70-71, irq 8) at pnpbios0 index 9 ignored
 PNP0C02 (io 80 84-86 88 8c-8e e0-ef b0-b2 24-25 2e-2f 62 66 68-6f 1882-1885=
  1888-188d 18a0-18af 18b0-18bf 18c0-18cf 480-48f cf8-cff 4d0-4d1 fff0-fff7 =
 fffe) at pnpbios0 index 10 ignored
 pciide0 at pnpbios0 index 12 (TOS7300)
 pciide0: io 1f0-1f7 3f6 1800-180f, irq 14
 pciide0: Toshiba Extended IDE Controller
 atabus0 at pciide0 channel 0
 com3 at pnpbios0 index 14 (PNP0501)
 com3: io 3f8-3ff, irq 4
 com3: ns16550a, working fifo
 PNP0401 at pnpbios0 index 16 disabled
 PNP0A03 at pnpbios0 index 17 disabled
 ym0 at pnpbios0 index 22 (YMH0021)
 ym0: io 220-22f 530-537 388-38f 330-331 370-371, irq 5, DMA 1 0
 ym0: OPL3-SA3
 audio0 at ym0: full duplex, mmap
 opl0 at ym0: model OPL3
 midi0 at opl0: OPL3-SA3 Yamaha OPL3
 mpu0 at ym0
 midi1 at mpu0: OPL3-SA3 MPU-401 MIDI UART
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Toshiba Host Bridge/Controller (rev. 0xa2)
 vga0 at pci0 dev 4 function 0: Neomagic product 0x0083 (rev. 0x01)
 wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0=

 wsmux1: connecting to wsdisplay0
 ohci0 at pci0 dev 11 function 0: NEC USB Host Controller (rev. 0x02)
 ohci0: interrupting at irq 11
 ohci0: OHCI version 1.0
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 oboe0 at pci0 dev 17 function 0: Toshiba Fast Infrared Type O, revision 35
 oboe0: interrupting at irq 11
 irframe0 at oboe0: SIR, MIR, FIR
 cbb0 at pci0 dev 19 function 0: Toshiba ToPIC95B CardBus-PCI Bridge (rev. 0=
 x07)
 cbb1 at pci0 dev 19 function 1: Toshiba ToPIC95B CardBus-PCI Bridge (rev. 0=
 x07)
 cbb0: interrupting at irq 11
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 20 device 0
 pcmcia0 at cardslot0
 cbb1: interrupting at irq 11
 cardslot1 at cbb1 slot 1 flags 0
 cardbus1 at cardslot1: bus 21 device 0
 pcmcia1 at cardslot1
 isa0 at mainbus0
 pcppi0 at isa0 port 0x61
 midi2 at pcppi0: PC speaker
 spkr0 at pcppi0
 sysbeep0 at pcppi0
 npx0 at isa0 port 0xf0-0xff: using exception 16
 apm0 at mainbus0: Power Management spec V1.2
 IPsec: Initialized Security Association Processing.
 wd0 at atabus0 drive 0: <TOSHIBA MK8113MAT>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 7815 MB, 16938 cyl, 15 head, 63 sec, 512 bytes/sect x 16006410 sectors=

 wd0(pciide0:0:0): using PIO mode 0
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)


From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Koizumi Noriyuki <GBC01623@nifty.ne.jp>
Cc: GBC01623@nifty.com, gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/23192: 'pciide at pnpbios' confirmed, however does not boot.
Date: Tue, 21 Oct 2003 21:36:19 +0200

 On Mon, Oct 20, 2003 at 11:31:41PM +0900, Koizumi Noriyuki wrote:
 > Hi,
 > 
 > Manuel Bouyer<20031019211708.GA2557@antioche.eu.org>
 >  | Hum, proper fixing require some interface change in the IDE code.
 >  | For now I think you can use the attached patch.
 > 
 > I tried this patch, works fine.
 > 
 > But now I see another problem.
 > 'wd0(pciide0:0:0): using PIO mode 0 ???'

 Hum. Did you notice the system really going slower ?
 pciide at pnpbios doesn't try at all to deal with modes anyway.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 24 ans d'experience feront toujours la difference
 --


From: Koizumi Noriyuki <koizumi@local.homeunix.org>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: Koizumi Noriyuki <GBC01623@nifty.ne.jp>, gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/23192: 'pciide at pnpbios' confirmed, however does not boot.
Date: Tue, 04 Nov 2003 02:58:29 +0900

 I am sorry to be a late reply.

 Manuel Bouyer<20031021193619.GB1186@antioche.eu.org> wrote:

  | Hum. Did you notice the system really going slower ?

 No.
 I think it is the same even if pciide at pnpbios is enabled or 
 disabled.

 If pciide at pnpbios is disabled, My PC is loaded for wdc at isa 
 driver.

 -- 
 Noriyuki Koizumi
 GBC01623@nifty.com

From: Koizumi Noriyuki <GBC01623@nifty.com>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: Koizumi Noriyuki <GBC01623@nifty.ne.jp>, gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/23192: 'pciide at pnpbios' confirmed, however does not boot.
Date: Tue, 04 Nov 2003 03:02:02 +0900

 I am sorry to be a late reply.

 Manuel Bouyer<20031021193619.GB1186@antioche.eu.org> wrote:

  | Hum. Did you notice the system really going slower ?

 No.
 I think it is the same even if pciide at pnpbios is enabled or 
 disabled.

 If pciide at pnpbios is disabled, My PC is loaded for wdc at isa 
 driver.

 -- 
 Noriyuki Koizumi
 GBC01623@nifty.com
State-Changed-From-To: analyzed->feedback
State-Changed-By: bouyer@netbsd.org
State-Changed-When: Sat, 21 Jan 2006 18:38:28 +0000
State-Changed-Why:
Hi
if you still have the hardware, could you test the last current kernel ?


State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 01 Sep 2008 02:05:07 +0000
State-Changed-Why:
Feedback timeout. Anyone else have this ahrdware?


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.