Subject: Re: Updates
To: Charles Hannum <abuse@spamalicious.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-next68k
Date: 09/13/2002 11:04:34
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Sep 11, 2002 at 01:42:09PM +0000, Charles Hannum wrote:
> 
> > 2) On my color turbo, with the SCSI driver enabled, the kernel wedges
> >    in a loop printing `esp0: SCSI bus reset' during autoconfig.  I
> >   haven't looked at this.
> 
> The looping `esp0: SCSI bus reset' problem is not specific to the
> NeXT, as it turns out.  I still don't know whether SCSI works with
> devices plugged in.

SCSI still works with the default config. However I've also a custom kernel
in which I tried to turn on sync negotiation. It probe the disk fine but
hang after a timeout while trying to mount root. This used to work fine,
despite the timeout and fall-back to aysnc, with older kernels.
Maybe there's something which is not reset properly in the DMA engine
after a timeout ?

Attached is the dmesg output, which contains boot messages for both my
old kernel (with sync nego and the timeout) and new one, without sync nego.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--

--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.next68k"


done clearing
[ using 292436 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6G (BARBUDA) #1: Thu Sep  5 11:17:18 CEST 2002
    bouyer@armandeche:/home/cvs.netbsd.org/src/sys/arch/next68k/compile/BARBUDA
NeXT/MC68040 CPU+MMU+FPU, 4k on-chip physical I/D caches
total memory = 32760 KB
avail memory = 27496 KB
using 435 buffers containing 1740 KB of memory
mainbus0 (root)
intio0 at mainbus0
esp0 at intio0: ESP100A, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
zsc0 at intio0
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
xe0 at intio0
xe0 at MAC address 00:00:0f:00:d0:46
nextkbd0 at intio0
wskbd0 at nextkbd0 (mux ignored): console keyboard
nextdisplay0 at mainbus0: 1152 x 832, 2bpp
wsdisplay0 at nextdisplay0 (kbdmux ignored): console (mono, vt100 emulation), using wskbd0
Looks like a MCS1850 (new style) clock chip.
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <FUJITSU, M2909S-512, 0127> SCSI2 0/direct fixed
sd0: 2956 MB, 3138 cyl, 19 head, 101 sec, 512 bytes/sect x 6054834 sectors
sd0: sync (248.0ns offset 15), 8-bit (4.032MB/s) transfers, tagged queueing
boot device: sd0
root on sd0a dumps on sd0b
sd0(esp0:0:3:0): esp0: timed out [ecb 0x45e000 (flags 0x1, dleft 2c, stat 0)], <state 5, nexus 0x45e000, phase(l 0, c 1, p 1), resid 2c, msg(q 0,o 100) DMA active>
sd0(esp0:0:3:0): sync negotiation disabled
sd0(esp0:0:3:0): esp0: timed out [ecb 0x45e000 (flags 0x41, dleft 2c, stat 0)], <state 5, nexus 0x45e000, phase(l 0, c 1, p 1), resid 2c, msg(q 20,o 100) DMA active> AGAIN
sd0: async, 8-bit transfers
mountroot: trying nfs...
mountroot: trying ffs...
WARNING: clock gained 6271 days
root file system type: ffs
init: copying out path `/sbin/init' 11
syncing disks... done
unmounting /amd/disco-bu/root/users/disco1/mpi (disco-bu:/users/disco1/mpi)...
unmounting /amd/disco-bu/root/users/disco1/enseig (disco-bu:/users/disco1/enseig)...
unmounting /amd/disco-bu/root/users/disco1 (disco-bu:/users/disco1)...
unmounting /home (/dev/sd0f)...
unmounting /usr (/dev/sd0d)...
unmounting /var (/dev/sd0e)...
unmounting / (/dev/sd0a)...
rebooting...
done clearing
[ using 294588 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6H (BARBUDA) #2: Fri Sep 13 10:56:56 CEST 2002
    bouyer@armandeche:/home/cvs.netbsd.org/src/sys/arch/next68k/compile/BARBUDA
NeXT/MC68040 CPU+MMU+FPU, 4k on-chip physical I/D caches
total memory = 32760 KB
avail memory = 27488 KB
using 435 buffers containing 1740 KB of memory
intrmask: 0xae7800
intrstat: 0xae7000
mainbus0 (root)
intio0 at mainbus0
esp0 at intio0
zsc0 at intio0
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
nextdma0 at intio0: channel 0 (scsi)
nextdma1 at intio0: channel 1 (enetx)
nextdma2 at intio0: channel 2 (enetr)
xe0 at intio0
xe0: MAC address 00:00:0f:00:d0:46
xe0: using dma channels nextdma1 nextdma2
nextkbd0 at intio0
wskbd0 at nextkbd0 (mux ignored): console keyboard
esp0: ESP100A, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
esp0: using dma channel nextdma0
nextdisplay0 at mainbus0: 1120 x 832, 2bpp
wsdisplay0 at nextdisplay0 (kbdmux ignored): console (mono, vt100 emulation), using wskbd0
Looks like a MCS1850 (new style) clock chip.
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <FUJITSU, M2909S-512, 0127> SCSI2 0/direct fixed
sd0: 2956 MB, 3138 cyl, 19 head, 101 sec, 512 bytes/sect x 6054834 sectors
sd0: async, 8-bit transfers, tagged queueing
boot device: sd0
root on sd0a dumps on sd0b
mountroot: trying nfs...
mountroot: trying ffs...
WARNING: clock lost 5961 days
root file system type: ffs
init: copying out path `/sbin/init' 11

--AqsLC8rIMeq19msA--