68kMLA Classic Interface
This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.
| Click here to select a new forum. | | NuTabby: A Modern NuBus Card | Posted by: olePigeon on 2026-09-11 08:43:23
Yes, love the cat! I've got two little voids. It would be funny to have a black card with a blank space and say there was a black cat there... Just put two white dots with a red tongue beneath for the blep. | Posted by: saybur on 2026-09-11 18:28:58
That example driver is very basic but hopefully it helps. Happy to supply more detail too, where possible. Basic is perfect for me at this point, I've got some experience with user applications but zilch on the driver side. I'm midway through getting PSRAM working along with a simple command set to swap blocks in and out to SRAM. Once that's done I'm going to try and get my head wrapped around the Mac driver: plan is to step through your example driver and the Driver Manager to try and learn the correct process.
Other words, I will likely be taking you up on the offer of more details! π
And thank you for the (excellent!) description of the CPU/DMA behavior, that helps clears up a few misconceptions I had. Designing Cards and Drivers is quite insistent about not holding the bus for too long: perhaps on the earlier systems the NuBus controller does not release the bus during a block transfer targeting it as a peripheral?
At any rate, at least for a RP2350 based design I doubt it has the resources (or more likely pins) to become a bus master, at least not without a good amount of external hardware to help. Seems like a process better suited to something using a 'proper' CPLD/FPGA setup to handle the additional logic.
Some other (unorganized) thoughts while reading your post:
When you're talking about 'allocating cache misses' is that just preserving the existing cache contents as Move16 data is transferred? Like, the idea is that you're doing bulk data that isn't of interest in the future so it is unlikely to be fetched again?
For the 16-byte transfers degrading to 4 standard words on NuBus: that at least is good for my use case given the card's inability to handle block transfers. It is interesting that Apple did it that way, at least with block transfers it's should (AFAIK) be obvious to the master the transfer is being halted early when both /TM0 and /TM1 get driven in the first cycle or the card performs some other error action. Like you said, maybe they were just finding it was more trouble to handle than it was worth. If it was card vendors they certainly had no problem throwing shade at ones who ignored the mechanical guidelines, there's some entertaining comments about that in the technotes.
On the subject of block transfers, I did find where I'd read about 68K issuing them: the Quadra 660/840 developer note on p. 412 has details about enabling it, at least for certain 16-byte NuBus block transfers through the MUNI IC. I do not a 840AV to toy with the functionality though.
I also stumbled across TIL 9305, which had some interesting comments on bus throughput for Quadras if you hadn't seen it. Not sure how much this was validated in practice but mentioning it here for completeness. I did get a chuckle out of this line:
The only way to really determine how fast a Quadra can transfer data to a NuBus slave is to run real code and time the bus transfers. Well then, thanks for the insight Apple!
I apologize for a huge aside for this thread...as you're not talking about graphics. Quite all right, this is very much a tinkering project anyway! I don't know how practically useful the hardware would be for something like graphical work, but if I can get this working and release files for it I would be curious to know how much work could get stuffed into the free CPU! | Posted by: zigzagjoe on 2026-09-13 16:15:18
...When you're talking about 'allocating cache misses' is that just preserving the existing cache contents as Move16 data is transferred? Like, the idea is that you're doing bulk data that isn't of interest in the future so it is unlikely to be fetched again?
yep, exactly!
For the 16-byte transfers degrading to 4 standard words on NuBus: that at least is good for my use case given the card's inability to handle block transfers. It is interesting that Apple did it that way, at least with block transfers it's should (AFAIK) be obvious to the master the transfer is being halted early when both /TM0 and /TM1 get driven in the first cycle or the card performs some other error action. Like you said, maybe they were just finding it was more trouble to handle than it was worth. If it was card vendors they certainly had no problem throwing shade at ones who ignored the mechanical guidelines, there's some entertaining comments about that in the technotes.
not sure what is up with this, it's explicitly part of the spec that slaves are allowed to decline bursts gracefully and the host controller will handle it. So i assume it must be a nonobvious factor like you mentioned....
On the subject of block transfers, I did find where I'd read about 68K issuing them: the Quadra 660/840 developer note on p. 412 has details about enabling it, at least for certain 16-byte NuBus block transfers through the MUNI IC. I do not a 840AV to toy with the functionality though.
I also stumbled across TIL 9305, which had some interesting comments on bus throughput for Quadras if you hadn't seen it. Not sure how much this was validated in practice but mentioning it here for completeness. I did get a chuckle out of this line.
oh, those are both news to me. Ill have to have a look, appreciate the reference. Only have a bare 660av board, so no MUNI, but interesting nevertheless. Probably applies to powerpc machines though. Some quick notes in bold above.... on the way back from VCFMW so formatting is hard π | Posted by: lauland1 on 2026-09-14 07:54:00
Some quick notes in bold above.... on the way back from VCFMW so formatting is hard π I looked at the drive time and thought, maybe next year!
One note, unrelated to the host interface, I looked into the pi you are using and it's quite interesting, as far as cores.
It looks like it has 4: 2 arm and 2 risc-v, but looks like you can only run two of them at a time. Although you can do one of each in a "hybrid" mode. The use case was an rtos on one of the arm, and using the risc v "bare metal". Nice to be able to do that, but a lot of added complications to the code doing two different arches at the same time. You'd need to juggle which core was using which io. All the cores share memory, so maybe message passing to hand tasks to the riscv or something would be one way to utilize that. If you were really wackadoodle, I suppose you chould change modes on the fly, so use an rtos with the arms (which would be easiy maybe?), set up a task for the riscvs, and then switch to them both, and back again to the arms once they were done. Though that is probably a solution looking for a problem. | Posted by: saybur on 2026-09-14 11:26:11
Some quick notes in bold above... Hope VCFMW was great! Thanks for the reply, especially while travelling.
Had time to dig into the sample driver this weekend. First off, an enormous thank you for writing it. The documentation for this seems sparse and all over the place. I imagine it took some real work to assemble everything and get it functioning.
A couple things that weren't clear to me:
I didn't understand the call to AddDrive in assembly, is there a reason to invoke it like that? Is this a headers issue or am I missing something obvious about how the register usage conventions work?
How did you handle debugging this thing during development? Was there a specific way you hooked into the driver load to see if/when things happened?
I'm going through and trying to do my own (learning) implementation in THINK C. That environment provides glue for DRVRs that simplifies some things (avoids needing assembly header for one) but adds it's own behavioral quirks. No idea if I'll be able to make it work, so far I have a prototype DRVR but can't seem to make it load properly via a test app, or at least attempts to invoke MacsBug via Debugger() or DebugStr() just doesn't fire. Not really sure it's worth the trouble to do it this way or stick to a Retro68 based approach.
It looks like it has 4: 2 arm and 2 risc-v, but looks like you can only run two of them at a time I haven't delved deep into that part of the RP2350 but that was my understanding too. AFAIK there's no real benefit to multi-arch on the platform, you only ever have 2 cores no matter what and the setup becomes more complicated that way. In general the RISC-V stuff on RP2350 seems more like a technology demonstration and toolchain development opportunity than something they expected people to use heavily: basically a way to give RPi a path toward a non-ARM world if they choose it in the future. That's just speculation on my part obviously. | Posted by: zigzagjoe on 2026-09-14 11:42:53
Hope VCFMW was great! Thanks for the reply, especially while travelling.
Had time to dig into the sample driver this weekend. First off, an enormous thank you for writing it. The documentation for this seems sparse and all over the place. I imagine it took some real work to assemble everything and get it functioning.
A couple things that weren't clear to me:
I didn't understand the call to AddDrive in assembly, is there a reason to invoke it like that? Is this a headers issue or am I missing something obvious about how the register usage conventions work?
How did you handle debugging this thing during development? Was there a specific way you hooked into the driver load to see if/when things happened?
I'm going through and trying to do my own (learning) implementation in THINK C. That environment provides glue for DRVRs that simplifies some things (avoids needing assembly header for one) but adds it's own behavioral quirks. No idea if I'll be able to make it work, so far I have a prototype DRVR but can't seem to make it load properly via a test app, or at least attempts to invoke MacsBug via Debugger() or DebugStr() just doesn't fire. Not really sure it's worth the trouble to do it this way or stick to a Retro68 based approach.
I haven't delved deep into that part of the RP2350 but that was my understanding too. AFAIK there's no real benefit to multi-arch on the platform, you only ever have 2 cores no matter what and the setup becomes more complicated that way. In general the RISC-V stuff on RP2350 seems more like a technology demonstration and toolchain development opportunity than something they expected people to use heavily: basically a way to give RPi a path toward a non-ARM world if they choose it in the future. That's just speculation on my part obviously. VCFMW was fantastic! Mistakes were made...
Glad to hear it was helpful! It was definitely a bit of trial and error, but thankfully my work on 30Video had given me an understanding of the basic shape of a DeclROM so it was mostly sussing out the Bootrec that was the real tricksy bit. And, of course, as you say, the sparse and contradictory documentation around how disk drivers "ought" to work. SuperMario source shed some light on that, at least. Deriving best practices and avoiding/mitigating the corner cases took a bit of work but honestly I spent more time on QOL stuff like implementing partition support, partitioning UI, and other nicities.
AddDrive wants a packed combination of driver reference and drive number in D0 and queue link in A0. This is a weird calling convention; it is present in the headers but does not work. So instead I rather cumbersomely do it in a mix of C and inline ASM.
Debugging was stone age π My workflow involves my ISP-SIMM to push new code to the card ROM which I included a serial port on. You can hijack the SCC and use that to print out debug messages, as long as you don't have SCC IOPs or appletalk enabled. So I just have a mess of debug logging, mainly, which is not present in release builds. The ISP-SIMM relays that to a console on my dev machine. (Un?)fortunately I did all my development in Retro68, so I can't really shed any light on the vintage workflow, but I applaud the willpower π | Posted by: saybur on 2026-09-19 17:28:47
Glad to hear it was helpful! All your help has been fantastic, thank you again! And congrats on the pickups, that's a fun pile π
Firmware support for storage is now present, currently using PSRAM but with an eye toward SD card support. Bolting the functions into the @zigzagjoe example Mac driver took a while (mostly due to me struggling with basic stuff, don't code when you're tired lol) but I finally have the thing put together enough to present a 8MB ram disk backed by the PSRAM on NuTabby instead of system memory. Not terribly useful on its own but good enough to check if the scaffolding works. It also might give a good sense of the "NuBus tax" on the system, at least for this particular hardware setup. Here's some performance testing:

All results are from System Info from Norton Utilities 3.5 on my stock IIci with the standard cache card present. The RAM disk is the one from the example DeclROM. The SCSI device is a modern RP2040 one with a good SD card.
No idea yet how much the SD card is going to slow things down for me but I'm pretty happy with these results so far, they're a healthy fraction of a true RAM disk which was frankly better than what I was expecting given NuBus' repuation. All transactions are synchronous, the card is capable of async operations but that's going to require more research before being enabled. There are also places for more basic optimization, buffering is kind of iffy. The 256K write falloff isn't important but is a good example of the problem.
Next up, getting the SD card layer added and switching the storage layer over to it for proper large, persistent storage. | Posted by: saybur on 2026-10-01 18:05:53 SD card storage is now working, and well enough to be able to successfully boot my IIci. A nice clean desktop with no SCSI drive or floppy in sight.

Read speeds are basically identical to the on-board PSRAM. Max reads were ~4MB/s, just shy of 2x SCSI. The likely more important random sector read is 1.5x SCSI at 300KB/s, not exactly earth-shattering but still noticeable as you poke around the drive. Writes could probably have better caching to improve performance but that's a problem for the future. Overall, not too bad given the overhead added by a flash memory card.

These numbers also include the penalty from a FAT filesystem layer (FatFs in this case). That's been added so there's a nice "nutabby.img" file on the SD card to manipulate on a modern system. The 500MB disk shown is based on the image size, which should be scalable to the maximum HFS volume size supported by whatever system version is running.
Still a ton of work to do, including testing on other NuBus systems, cleaning up the code, and hopefully getting some kind of release out the door. I'm still not 100% on what that looks like yet and there's plenty of other toying about with the firmware I'd like to do, but it feels like this is getting to the point others might want one of these for experimentation.
As before, much appreciation to ZigZagJoe for all the insight, research and code samples (and the style of performance chart I'm shamelessly aping from NuCF). Also thanks to Rabbit Hole Computing for their SDIO RP2350 library backing the storage layer here, that code is really quite nice. | Posted by: eharmon on 2026-10-02 15:00:36
These numbers also include the penalty from a FAT filesystem layer (FatFs in this case). That's been added so there's a nice "nutabby.img" file on the SD card to manipulate on a modern system. The 500MB disk shown is based on the image size, which should be scalable to the maximum HFS volume size supported by whatever system version is running. You should be able to remove that delay by mapping the file extents and doing direct block copies once you know where the file lives within the FS. For a simple approach you can refuse if the file is fragmented at all and just map the offset to do direct writes. | Posted by: saybur on 2026-10-02 17:18:45
You should be able to remove that delay by mapping the file extents and doing direct block copies once you know where the file lives within the FS. For a simple approach you can refuse if the file is fragmented at all and just map the offset to do direct writes. That's a good point. I experimented with bypassing FAT and it resulted in about a 2% speedup, at least relative to an exFAT formatted card. I was surprised it wasn't more, I did this back on scuznet years ago and there it was significantly faster. I haven't dug into it to figure out "why." I'm guessing it is some combination of precaching in SDIO_RP2350, good FatFs seek performance on exFAT, NuBus being such a bottleneck the difference is invisible, or maybe just the RP2350 running circles around the AVR I used previously. I added it to the TODO list to figure out π | Posted by: saybur on 2026-10-02 21:01:24 Did some more testing and while reads seem to be generally unaffected by changes in FAT, writes are a different story: bypassing FatFs increases write performance by about 15% overall. Goes to show I should test it more thoroughly before posting. I'll keep digging at this, the lack of benefit on reading still seems counterintuitive to me.
Thanks for suggesting the change! | Posted by: saybur on 2026-10-03 16:18:19 Some potentially interesting tidbits while testing this on my Quadra 800. I won't be able to work on the project for a few days so just posting what I've got for now. Performance numbers:

Large transfers on a Quadra are faster than I thought they'd be. In case anyone wants to know what BlockMove() looks like during a 68040 transaction to NuBus:
- It obviously handles data in clusters of 4 words (as expected). Each word has 1 address cycle, 1 data cycle, then 1 wait cycle. NuTabby can respond to reads without any wait cycles as long as the next addresses is the post-increment one (+0x4), which seems to pair well with the algorithm.
- After each 4-word block there are about 6-7 idle cycles with no bus activity.
- The math here works out to ~8.6MB/s sustained transfer speeds, generally close to what the driver is delivering at large block sizes.
Doesn't seem bad at all for PIO. I don't know if there are numbers out there for how a JackHammer or other DMA-capable card performs in a Q800 but if anyone has those feel free to chime in, I'd be curious to compare.
That said, small sector performance is just plain bad. There's obviously inefficiency I've added to the driver or firmware, especially since 1K is like 4x faster. Probably fixable but does need attention.
Finally, large block write performance on the SCSI device is also worse than it should be. I don't know if this is down to the driver (Apple HD SC 7.3.5) or something with the SD card, though at least there I'm using the same card/formatting on both devices (PNY Elite 32GB) so dunno. | Posted by: eharmon on 2026-10-04 10:32:06 Thatβs fast! On a wombat you really canβt do much better from the discussion we had here: https://68kmla.org/bb/threads/maximum-siliconexpress-iv-throughput.51369/ | Posted by: saybur on 2026-10-08 10:00:36 That thread is perfect, thanks for linking it. Quite happy being within spitting distance of a DMA card! π
Did you test how the SEIV did on small block transfers? I'm curious if there's a performance uplift versus onboard SCSI, or if the (presumably faster) local bus access to the NCR 53C96 means all NuBus cards are going to have a performance penalty there. | Posted by: eharmon on 2026-10-09 17:48:13
That thread is perfect, thanks for linking it. Quite happy being within spitting distance of a DMA card! π
Did you test how the SEIV did on small block transfers? I'm curious if there's a performance uplift versus onboard SCSI, or if the (presumably faster) local bus access to the NCR 53C96 means all NuBus cards are going to have a performance penalty there. Unfortunately I can't find my full results. I don't think it was a whole lot better on small reads/writes, which may just be the bottleneck of SCSI call/interrupt overhead in general.
Overall, I don't think DMA helps a lot on max disk performance either. Ultimately, we're pushing the top-end of what NuBus can do on these systems. What would be more interesting is a mixed benchmark which runs CPU calculations in parallel with reads. Small reads will probably slow the system quite a bit still, but larger reads should free the CPU long enough to make more progress.
Unfortunately, the benchmark suites of the era really missed those advantages. Obviously, that was really big for things like audio production where these sold in high numbers so you could play back from disk without drops. It feels like they were marketed more on those practical examples than perf. | Posted by: saybur on 2026-10-11 19:05:36 Appreciate you checking. I was able to fix the 512b transfer speed issue so its definitely not NuBus, managed to get 795Kb/s for reads and 602KB/s for writes so it is outperforming SCSI at all sizes now. I've got a 8100/110 in pieces, at some point I'll have to fix that and see how the 10MB/s fast internal SCSI does there.
Ultimately, we're pushing the top-end of what NuBus can do on these systems. It might still be possible to boost performance a bit, depending on whether you buy the argument that BlockMove() on 68040s has room to improve. Here at least all reads/writes should be aligned and have a 512 byte length, maybe some unrolled/hand-tweaked routines could squeeze into the 7 idle cycles.
Unfortunately, the benchmark suites of the era really missed those advantages. Obviously, that was really big for things like audio production where these sold in high numbers so you could play back from disk without drops. It feels like they were marketed more on those practical examples than perf. If anyone reading this does have numbers for general DMA vs sync PIO (or async I suppose) on devices that support both modes I would definitely be interested in hearing about it. Async is doable on this card, DMA certainly is not, but would still be interesting from a comparison standpoint. At minimum maybe a NuTabby in the right hands might help shed some light on it π | Posted by: Coloruser on 2026-10-12 01:43:20
I've got a 8100/110 in pieces, at some point I'll have to fix that and see how the 10MB/s fast internal SCSI does there. As far as i know, the 8100 does have an internal and external bus, but both are limited to 5mb/sec (see Mac84Β΄s overview here). Only the 2nd Generation PCI Powermacs - 7300/7500/7600/8500/8600/9500/9600 or Tsunami/TNT/NITRO based clones from Supermac/Umax/Power Computing - have an internal/external 5mb/sec bus and an internal fast-SCSI 10mb/sec bus. If you want to check the performance of the fast SCSI bus, check out one of them or, search for a Tsunami based PowerWave from Power Computing with the optional special PCI Riser Card that had both, Nubus and PCI (instead of only PCI). | Posted by: saybur on 2026-10-12 10:12:11
As far as i know, the 8100 does have an internal and external bus, but both are limited to 5mb/sec (see Mac84Β΄s overview here) I think that part of the list is incorrect, at least as to max speeds. The Developer Note (p. 29) for the original Power Macs describes something similar to what they did with the later models you described: fast 10MB internal, separate internal/external standard 5MB bus. Chip on the 8100 board (and the 9150 apparently) is a 53CF96 according to this thread which should support the faster speeds. Maybe an upsell to justify the steep launch price or something.
The 8100 was weird. I really like the system, mine is just an unfortunate victim of Spindler-era plastic, capacitor failures, and terrible shipping! | Posted by: olePigeon on 2026-10-12 10:29:55 Could additional memory be added so it doubles as a NuBus RAM card? Or would that be bottle-necking the NuBus slot with it being used both as primary storage and a RAM disk? | Posted by: saybur on 2026-10-12 20:54:50
Could additional memory be added so it doubles as a NuBus RAM card? Or would that be bottle-necking the NuBus slot with it being used both as primary storage and a RAM disk? I'd like to give this a good answer but I'm having problems writing coherently tonight, I'm going to try again later when my brain is working better.
It would be super-useful if anyone happened to know what the performance numbers were like when those cards were used as RAM disks. Particularly what their performance was like for 512 byte random read/write, if that's known. | | < 2 > |
|