Re: [PATCH 2/2] rust: scatterlist: honor the device's maximum segment size

From: Alexandre Courbot

Date: Tue Nov 10 2026 - 05:48:25 EST


On Tue Sep 1, 2026 at 8:32 AM JST, Matteo Kloiber wrote:
> SGTable::new() caps segment length at dma_max_mapping_size() only, which
> limits the DMA mapping path (e.g. swiotlb), not the device itself. The
> per-device limit from dma_set_max_seg_size() is ignored, so contiguous
> page segments can be longer than the declared max segment size,
> potentially causing problems for future drivers that use this
> abstraction.
>
> nova-core declares an unlimited segment size, so this does not change
> its behavior.

Hi Matteo,

Do you have plans to keep working on this and follow up on the feedback
received on this revision?