From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,96d644c18592dc7 X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,96d644c18592dc7 X-Google-Attributes: gid1164f8,public From: jonathan@Kowhai.Stanford.EDU (Jonathan Stone) Subject: Re: NetBSD/OpenBSD/Ultrix and DS3100 serial port Date: 1998/02/24 Message-ID: <6cu807$mr7$2@nntp.Stanford.EDU>#1/1 X-Deja-AN: 328132189 References: <34ef6e01.0@news.triax.com> <6cr4rt$aap@panix2.panix.com> <6crm8e$c0n$6@nntp.Stanford.EDU> <34F18A1C.81428557@iisc.com> <6csp0j$ano@panix2.panix.com> <34F249BF.4FA1F254@iisc.com> Reply-To: jonathan@DSG.Stanford.EDU Organization: Stanford Distributed Systems Grop Newsgroups: comp.unix.ultrix,comp.sys.dec In article <34F249BF.4FA1F254@iisc.com>, Charles M Richmond 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.