AXON: Linux PCIe accelerator driver, virtual QEMU device, and C++ runtime for accelerator systems experimentation - waguea/axon
1 comment
It runs self-contained on Apple Silicon Macs (macOS + patched aarch64 QEMU with HVF) booting a Linux aarch64 guest.
What’s inside: - Custom QEMU PCIe device (BAR0 MMIO, 64-entry SQ/CQ descriptor rings, 64-bit DMA, MSI + legacy INTx) implementing COPY, VADD, DOT, and MATMUL kernels - Linux PCI driver (/dev/axonX) with both legacy ioctls and an async UAPI (SUBMIT / WAIT / KICK with multiple outstanding commands and deferred doorbells) to model command-processor submission and doorbell batching - C SDK, userspace examples, and benchmarks comparing queue depths (depth 1 vs. depth 8) - Hardware/ABI specification (spec/axon-hw-interface.md) and an implementation/debugging journal (docs/journal.md)
On an Apple Silicon Mac with Homebrew, `./scripts/run-e2e.sh` rebuilds QEMU, boots the Linux aarch64 VM, loads the driver, and runs the selftests and benchmarks end-to-end.
I’d love feedback on the command-ring ABI, async UAPI design, or next GPU-inspired features to explore (like mmap zero-copy rings or multi-queue scheduling)!
Read the full thread on Hacker News →
Related stories
- Hacker News · 4 points · 3 days ago
- These gaming laptop Cyber Monday deals offer much better prices for the latest Nvidia GPUstheverge.comThe Verge · 0 points · 2 days ago
- The Verge · 0 points · about 8 hours ago
- The lightweight Arch Linux based distro that runs, without root privileges, upon any Linux distrogithub.comLobsters · 12 points · over 4 years ago
- Hacker News · 4 points · 2 months ago
- Hacker News · 4 points · 2 months ago