Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jonathan@Kowhai.Stanford.EDU (Jonathan Stone)
Subject: Re: NetBSD/OpenBSD/Ultrix and DS3100 serial port
Date: 1998/02/24	[thread overview]
Message-ID: <6cu807$mr7$2@nntp.Stanford.EDU> (raw)
In-Reply-To: 34F249BF.4FA1F254@iisc.com


In article <34F249BF.4FA1F254@iisc.com>, Charles M Richmond <cmr@iisc.com> writes:
|> Thor Lancelot Simon wrote:
|> Well I also worked on pmax drivers (SCSI) and later on a wide variety
|> of Digital Unix OS code while contracting at both DEC and at OSF, not 
|> to mention the Thinking Machines kernel (scheduling), Solaris (kernel
|> support), etc, etc.  I really would like to see some technical 
|> discussion of the differences. I wish that I had the time to really
|> go digging on my own, but nowadays my time is either paid for or 
|> belongs to my business or to my wife (-:

Oh. well, in that case...  

Both *BSD/pmax kernels started off with the same 4.4bsd drivers (some
from mach and some from Sprite and some from Rick Macklem and Ralph
Campbell), which i thwacked into Chis Torek's ``new config'' structure
based on the NetbSD/alpha code at the time.

Since OpenBSD was founded and forked off from the NetBSD source tree,
things have diverged, I assume from both sides.  I don't know about
OpenBSD, one of their developers should comment.

The NetBSD/pmax kernel has been recoded to use a single merged set of
locore, VM, and scheduling/contextswitch code for mips-I and/or
mips-III.  To be fair, this was based heavily on work done for the
Acer Pica by someone who's now an OpenBSD developer.

This same code is used by the new NetBSD port to Sony NEWS (again,
with 4.4bsd-lite2 derived drivers) and work-in-progress on an ARC
port. The last two are using NetBSD's bus_space(9) and bus_dma(9)
kernel interfaces which IIRC is described in an upcoming FreeNIX
paper, cool stuff.

The NetBSD/pmax drivers have been rewritten to eliminate the
bouncebuffer used in 4.4bsd by IOCTL-asic DMA for the ncr53c94 scsi
chip.  The ioasic ethernet driver has been reworked with copy loops
that're inlined and better cache-tuned for the alternating-16-bytes
stride used by the ioasic lance DMA engine.  We've retuned the r4000
alias and cache-miss handling.  I havent got a single before-and-after
time for these, but with these kernel changes, but I beleive the time
to rebuild either a NetBSD kernel or an entire NetBSD distribution on
an r4000 has improved by about 30%.


We've also just got a test system up and running using the `standard'
FreeBSD/NetBSD/OpenBSD machine-independent SCSI subsystem, rather than
the rz/tz drivers derived from the `standard' 4.4bsd SCSI code.  We're
still working on using the same trick as uh, John Wrocklawski's did in
the mach 3.0 code, implementing kernel spl()s as far as possible in
the IOCTL asic.

When that's done we plan to redo a bus_space(9) and bus_dma(9) DMA
interface for the dma engines in the IOCTL/junkio chips, to be shared
by drivers for:
   * Decstation ioasic SCSI,
   * the Personal Decstation floppy, 
   * Personal DECstation sound/isdn chips.
   * TurboChannel Alpha sound/isdn chips.
The existing NetBSD drivers already written for the relevant
peripheral chips to the bus_dma(9) interface should just plug-and-play
once the pmax implements that software API to IO-bus space and to DMA.

And using a single set of console code, TC graphics drivers, and maybe
X11 API code on Alphas and DEcstations. Tho' personally, I would much
sooner emulate the Ultrix Xws interface and run the X11R5 server
binaries with Joel Bartlett's handtuned X code under Ultrix emulation.
That's a prerequisite for the PixelStamp/i860-based boards, since APIs
or source code for the accelerators is, uh, Unobtanium. 
It's definitely work in progress so far.

....  Wow, sorry, didn't mean to sound like an advertisment.

Again, I don't know what has changed in OpenBSD since the split.  It'd
be best to get an OpenBSD developer to make a technical comment on
OpenBSD/pmax kernel changes and OpenBSD kernel changes in general.



  reply	other threads:[~1998-02-24  5:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-22  5:00 NetBSD and the DECstation 3100 Rob Mohr
1998-02-22  5:00 ` David Evans
1998-02-22  5:00 ` Jonathan Stone
1998-02-23  5:00   ` Thor Lancelot Simon
1998-02-23  5:00     ` Jonathan Stone
1998-02-23  5:00       ` NetBSD/OpenBSD/Ultrix and DS3100 serial port Charles M Richmond
1998-02-23  5:00         ` Jonathan Stone
1998-02-23  5:00         ` Gregg E Economou
1998-02-23  5:00         ` Thor Lancelot Simon
1998-02-23  5:00           ` Charles M Richmond
1998-02-24  5:00             ` Jonathan Stone [this message]
1998-02-24  5:00               ` Thor Lancelot Simon
1998-02-24  5:00                 ` David Evans
1998-02-23  5:00           ` Gregg E Economou
1998-02-23  5:00     ` NetBSD and the DECstation 3100 Jonathan Stone
1998-02-23  5:00       ` Jae H Shin
1998-02-23  5:00       ` John Wilson
1998-02-23  5:00 ` Thor Lancelot Simon
1998-02-23  5:00   ` Jonathan Stone
1998-02-23  5:00 ` see.signature
1998-02-23  5:00   ` David Evans
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox