[PATCH 1/6] lib/scatterlist: Add contiguous DMA chunks helpers

Michał Mirosław mirq-linux at rere.qmqm.pl
Sat Oct 9 04:45:17 UTC 2021


On Thu, Sep 16, 2021 at 11:43:59AM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding at nvidia.com>
> 
> Add a few helpers to count the number of contiguous DMA chunks found in
> an SG table. This is useful to determine whether or not a mapping can be
> used by drivers whose devices need contiguous memory.
[...]

Is the counting of all blocks necessary if all to be checked is whether
there is more than one continuous block?

Best Regards
Michał Mirosław


More information about the dri-devel mailing list