Subject: Re: kern/23079: sd(4) fails to get geometry from SCSI disk
To: Matthias Scheler <tron@colwyn.zhadum.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 10/12/2003 21:48:02
On Tue, Oct 07, 2003 at 05:32:05PM +0200, Matthias Scheler wrote:
> 
> dma0 at sbus0 slot 4 offset 0x8400000: DMA rev 2
> esp0 at dma0 slot 4 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
> scsibus0 at esp0: 8 targets, 8 luns per target
> [...]
> scsibus0: waiting 2 seconds for devices to settle...
> sd0 at scsibus0 target 0 lun 0: <IBM, DCAS-34330, S65A> disk fixed
> sd0: fabricating a geometry
> sd0: 4134 MB, 4134 cyl, 64 head, 32 sec, 512 bytes/sect x 8467200 sectors
> sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing

I have an identical drive in my 3/80, and don't get the same behavior:
NetBSD 1.6ZC (SUN3_80) #0: Tue Oct  7 05:53:39 MEST 2003
        bouyer@kinierbel:/home/sun3/obj/home/sources/src/sys/arch/sun3/compile/SUN3_80
[...]
dma0 at obio0 addr 0x66001000 ipl 2: rev 0
esp0 at obio0 addr 0x66000000 ipl 2: ESP100, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
enabling interrupts
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <IBM, DCAS-34330, S65A> disk fixed
sd0: 4134 MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x 8467200 sectors
sd0: async, 8-bit transfers

Can you try to see in sys/dev/scsipi/sd.c which condition is causing a
"goto page0" ?

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