Subject: ide drive not detected
To: None <current-users@netbsd.org>
From: Jukka Andberg <jandberg@netbsd.org>
List: current-users
Date: 10/26/2003 15:16:12
Hi current-users,
Some of the last month's changes seem to have made the kernel not to
detect one of my drives anymore.
Here's dmesgs, with DEBUG_PROBE turned on.
*** Sources from 2003-09-22, both drives detected here.
NetBSD 1.6ZC (WSCONS0) #1: Fri Oct 24 19:15:32 EEST 2003
root@garganplex:/work/netbsd/wdc_test/src/sys/arch/amiga/compile/WSCONS0
Amiga 1200 (m68030 CPU/MMU m68882 FPU)
...
wdc0 at mainbus0
...
wdc0:0: before reset, st0=0x50, st1=0x50
wdc0:0:0: after reset, sc=0x10 sn=0x2 cl=0x2 ch=0x0
wdc0:0:1: after reset, sc=0x0 sn=0x2 cl=0x2 ch=0x0
wdc0:0: wdcwait_reset() end, st0=0x50, st1=0x50
wdc0:0: after reset, ret_value=0x3
wdc0:0:0: after reset, sc=0x10 sn=0x2 cl=0x2 ch=0x0
wdc0:0:1: after reset, sc=0x0 sn=0x2 cl=0x2 ch=0x0
wdcattach: ch_drive_flags 0x1 0x1
wd0 at wdc0 channel 0 drive 0: <QUANTUM FIREBALL EX3.2A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 3079 MB, 6256 cyl, 16 head, 63 sec, 512 bytes/sect x 6306048 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd1 at wdc0 channel 0 drive 1: <IBM-DTLA-305020>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 19623 MB, 39870 cyl, 16 head, 63 sec, 512 bytes/sect x 40188960 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wdc0:0:0: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
wdc0:0:1: after reset, sc=0x0 sn=0x0 cl=0x0 ch=0x0
wdc0:0: wdcwait_reset() end, st0=0x50, st1=0x50
wd0(wdc0:0:0): using PIO mode 4
wd1(wdc0:0:1): using PIO mode 4
...
wdcwait: timeout (time=1), status d0 error d0 (mask 0x40 bits 0x40)
wdcwait: timeout (time=1), status d0 error d0 (mask 0x40 bits 0x40)
wdcwait: timeout (time=1), status d0 error d0 (mask 0x0 bits 0x0)
... [Lots of similar timeout messages follow, but everything works]
*** Sources from 2003-10-25, only second drive detected
NetBSD 1.6ZD (WSCONS0) #11: Sat Oct 25 16:12:12 EEST 2003
root@garganplex:/work/autobuild/src/sys/arch/amiga/compile/WSCONS0
Amiga 1200 (m68030 CPU/MMU m68882 FPU)
...
wdc0 at mainbus0
atabus0 at wdc0 channel 0
...
wdc0:0: before reset, st0=0x50, st1=0x50
wdc0:0:0: after reset, sc=0x10 sn=0x2 cl=0x1 ch=0x0
wdc0:0:1: after reset, sc=0x0 sn=0x2 cl=0x1 ch=0x0
wdc0:0: wdcwait_reset() end, st0=0x50 er0=0x0, st1=0x50 er1=0x0
wdc0:0: after reset, ret_value=0x2
wdc0:0:1: after reset, sc=0x0 sn=0x2 cl=0x1 ch=0x0
wdc0:0: wait DRDY st0 0x50 st1 0x50
atabusattach: ch_drive_flags 0x0 0x1
wd0 at atabus0 drive 1: <IBM-DTLA-305020>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19623 MB, 39870 cyl, 16 head, 63 sec, 512 bytes/sect x 40188960 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
__wdcwait: timeout (time=11), status d0 error d0 (mask 0x40 bits 0x40)
__wdcwait: timeout (time=1), status d0 error d0 (mask 0x0 bits 0x0)
call_sicallback: 101 more dynamic structures 104 total
__wdcwait: timeout (time=1), status d0 error d0 (mask 0x0 bits 0x0)
root on wd0a dumps on wd0b
__wdcwait: timeout (time=1), status d0 error d0 (mask 0x0 bits 0x0)
__wdcwait: timeout (time=1), status d0 error d0 (mask 0x0 bits 0x0)
... [Again, lots of timeout messages follow later, but the second drive
works]