Storage & CXL · Embedded Linux

Computational storage drive on Zynq UltraScale+

A storage device with an FPGA between the host and two SSD controllers. The host can hand off data work, and the drives can talk to each other directly.

  • 400 MB/shost ↔ NVMe and P2P
  • PCIe x16to the host
  • 2 × x4to the SSD controllers

Architecture · block diagram

  • Main data path
  • Logic
  • Processor
  • Memory
  • Interconnect
  • Off-chip
Computational storage: host over PCIe x16 to a Zynq UltraScale+ MPSoC, two SSD controllers over PCIe x4ZYNQ ULTRASCALE+ MPSOChost4x Arm A532x Cortex-R5PL data enginesfilter · transformDRAMSSD controllerNVMeSSD controllerNVMeNANDNANDPCIe x16PCIe x4PCIe x4P2P DMA
FIG. 01

The story

Data-heavy workloads spend much of their time on moving data from storage to the CPU, which then discards most of it. Computational storage moves part of that work next to the drives. The host offloads data manipulation to an FPGA, and only the result returns.

Challenges

The host link is PCIe x16, and each SSD controller has its own PCIe x4 link. Data had to move between drives without passing through host memory. The host had to see the device as standard storage, and the device still had to expose the offload.

What I built

The host connects over PCIe x16 to a Zynq UltraScale+ MPSoC with four Arm A53 cores, two Cortex-R5 cores, PL data engines and local DRAM. The MPSoC connects over two PCIe x4 links to two SSD controllers and their NAND.

The hardest problem

Most of the work was in software. I wrote custom kernel modules and an NVMe driver for low latency and high throughput. I used peer-to-peer DMA to move data from one NVMe drive to another without passing through host memory.

Result

Transfers run at 400 MB/s between the host and NVMe storage, and from NVMe to NVMe by peer-to-peer DMA. The host offloads data manipulation to the FPGA. My kernel modules and NVMe driver handle the data path from the host to the drives.

Original design diagram
Original design diagram: host over PCIe x16 to FPGA with Arm A53 and R5 cores, two SSD controllers over PCIe x4 with NAND
Where it's used

Where you'd find something like this

01

Filtering, compression and search next to the data

02

Cutting host CPU load and PCIe traffic for data-heavy workloads

Available · Asia/Dhaka (UTC+6)

Have hardware that needs to work?

Tell me what you're building. I'll come back with questions, a rough scope and an estimate, usually within 2 days.

PAD 01 · I/O