Port-next68k archive

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

Re: Status of the next68k port (SCSI controller/disk)?



Hi,

> > Then it looks recent NetBSD/next68k GENERIC kernels including 9.3 have
> > several problems:
> > 
> > 9.3:   Ethernet doesn't work, keyboard doesn't work, SCSI doesn't work
> > 8.2:   ditto
> 
> > 7.2:   Ethernet works, keyboard doesn't work, SCSI doesn't work
> > 6.1.5: Ethernet works, keyboard works, SCSI doesn't work
> > 5.2.3: All Ethernet, keyboard, and SCSI work
> 
> Thanks a lot - by coincidence, I ran very similar tests last night on my 
> mono non-Turbo NeXTstation. 
> 
> > So trying 5.2.3 binaries might be worth to debug emulators:
> > http://archive.netbsd.org/pub/NetBSD-archive/NetBSD-5.2.3/next68k/
> 
> Good to see that my results are confirmed - so testing with 5.2.3 is the 
> only thing that makes sense for now. I was quite a bit surprised that 
> these regressions managed to stay undiscovered for such a long time,
> but most people still running NeXT machines today will probably only
> use NeXTstep or OPENstep...

Indeed, not only next68k but also many other Tier-II ports have
a very few users so need overhaul periodically :-)

Now I've investigated several problems:

- delay_divisor value for delay(9) was not correct so
  shorter delay(9) could be problematic on device accesses:
  https://github.com/tsutsui/netbsd-src/commit/883462c5f624232ae5e04ac0705057175be8dbf5

- DMA interrupts for esp(4) SCSI didn't work properly:
  https://github.com/tsutsui/netbsd-src/commit/a5dcbaa7e1d33a8f11ae49e04ab369d9f6790c34

- nextkbd(4) console read function was unintentionally optimized out:
  https://github.com/tsutsui/netbsd-src/commit/458feeb03c1720f51319411d60467491c03e8ff6

I'll commit these fixes after more confirmation.

On -current (trunk) the xe(4) Ethernet works fine without any fixes,
but it still doesn't work on netbsd-9.  I don't see particular
differnece on if_xe.c and mb8795.c, but I'll try bisect again
between netbsd-7 and netbsd-8 later.

---
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
    2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
    2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023
    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 10.99.2 (GENERIC) #14: Sat Jan 21 04:11:12 JST 2023
	tsutsui@mirage:/s/cvs/src/sys/arch/next68k/compile/GENERIC
NeXT/MC68040 CPU+MMU+FPU, 4k on-chip physical I/D caches
total memory = 32760 KB
avail memory = 27624 KB
timecounter: Timecounters tick every 10.000 msec
intrmask: 0x35f800
intrstat: 0x35f000
mainbus0 (root)
intio0 at mainbus0
esp0 at intio0 addr 0x2114000
zsc0 at intio0 addr 0x2118000
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
nextdma0 at intio0 addr 0x2000010: channel 0 (scsi)
nextdma1 at intio0 addr 0x2000110: channel 1 (enetx)
nextdma2 at intio0 addr 0x2000150: channel 2 (enetr)
xe0 at intio0 addr 0x2106000
xe0: MAC address 00:00:0f:00:b6:a9
xe0: using DMA channels nextdma1 nextdma2
nextkbd0 at intio0 addr 0x200e000
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 MC68HC68T1 (old style) clock chip.
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
scsibus0: waiting 2 seconds for devices to settle...
WARNING: system needs entropy for security; see entropy(7)
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST51080N, 0958> disk fixed
sd0: 1030 MB, 4826 cyl, 4 head, 109 sec, 512 bytes/sect x 2109840 sectors
sd0: async, 8-bit transfers
boot device: xe0
root on xe0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 192.168.20.1
nfs_boot: my_domain=ceres.dti.ne.jp
nfs_boot: my_addr=192.168.20.77
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=192.168.20.1
root on mirage:/r/export/NetBSD/next68k/root
root file system type: nfs
kern.module.path=/stand/next68k/10.99.2/modules
WARNING: clock lost 5 days
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
---

Have fun,
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index