Re: [PATCH v4 00/25] dmaengine: Smart Data Accelerator Interface (SDXI) basic support
From: Ravi Jonnalagadda
Date: Mon Nov 30 2026 - 13:29:54 EST
On Tue, 03 Nov 2026 20:49:41 -0600, Nathan Lynch wrote:
> This submission adds a driver with support for PCIe-hosted SDXI 1.0
> implementations and includes a DMA engine provider with memcpy
> capability.
Hi Nathan,
I am evaluating SDXI as the copy engine for page migration between
DRAM and CXL memory, for tiering with our DAMON perf-event RFC v4 [1].
The migration results are in my replies to Shivank's offload series
[2][3]. This reply covers the driver on its own.
I tested v4 alone on mm-new (7.4-rc1), as the host driver of an AMD
EPYC system with two SDXI functions and a CXL Type 3 memory expander.
All correctness tests passed. The throughput numbers below include
copies to and from CXL memory.
How I tested
------------
Three tests, memcpy on both functions:
- dmatest: DRAM to DRAM, verify on, 4 KiB / 64 KiB / 2 MiB on 1, 4
and 16 channels, 100000 iterations per thread, 3 runs per case.
- A placement test: a small module that copies between 2 MiB-aligned
buffers on chosen nodes (DRAM to DRAM, DRAM to CXL, CXL to DRAM).
Same sizes and channel counts, 3 runs per case, in two modes:
* comparing every copy, for correctness (100000 copies per run);
* streaming copies back to back and comparing only the first and
last copy of each burst, for throughput.
- A stream test: 64 KiB copies DRAM to DRAM on one channel for 60 s,
twice, to check longer runs for DMA errors (the runs above are cut
into chunks of at most 10 s). It does not compare the data.
What I saw
----------
- Both functions probe with max_buffer 11, max_cxt 63, 140 MSI-X
entries and 64 vectors allocated.
- dmatest: 37.8 M tests, 0 failures.
- Placement test: 16.2 M copies, 0 errors, 0 mismatches.
- Stream test: 6.8 M and 7.0 M copies, no DMA error.
- Placement test throughput, streaming, on the first function: GB/s
= total bytes / wall time from the first submit to the last
completion over all channels, median of 3 runs:
size | channels | DRAM->DRAM | DRAM->CXL | CXL->DRAM
-------+----------+------------+-----------+----------
4 KiB | 1 | 0.6 | 0.6 | 0.6
4 KiB | 4 | 2.1 | 2.3 | 2.3
4 KiB | 16 | 5.8 | 5.9 | 5.8
64 KiB | 1 | 7.5 | 8.7 | 8.4
64 KiB | 4 | 16.0 | 23.2 | 22.8
64 KiB | 16 | 23.0 | 41.9 | 36.8
2 MiB | 1 | 23.0 | 40.6 | 40.9
2 MiB | 4 | 24.1 | 47.7 | 47.9
2 MiB | 16 | 24.4 | 47.7 | 46.5
* At 2 MiB, from 4 channels on, both CXL directions reach about
48 GB/s and DRAM to DRAM about 24 GB/s. More channels share that
rate evenly.
- The second function measured within 0.7 GB/s of the first at
2 MiB, in the runs that compare every copy.
Tested-by: Ravi Jonnalagadda <ravis.opensrc@xxxxxxxxx>
What a faulting descriptor does with this provider is in a separate
reply on 25/25.
Thanks,
Ravi
[1] https://lore.kernel.org/linux-mm/20261005-damon-perf-rfc-v3-send-2026-10-03-v4-0-b03452e137f3@xxxxxxxxx/
[2] https://lore.kernel.org/all/20261128224616.66122-1-ravis.opensrc@xxxxxxxxx/
[3] https://lore.kernel.org/all/20261128225943.66318-1-ravis.opensrc@xxxxxxxxx/