Re: [PATCH 3/4] block-dma: properly take MMIO path
From: Keith Busch
Date: Mon Oct 13 2025 - 15:01:20 EST
On Mon, Oct 13, 2025 at 06:34:11PM +0300, Leon Romanovsky wrote:
> static bool blk_dma_map_direct(struct request *req, struct device *dma_dev,
> struct blk_dma_iter *iter, struct phys_vec *vec)
> {
> + unsigned int attrs = 0;
> +
> + if (req->cmd_flags & REQ_MMIO)
> + attrs |= DMA_ATTR_MMIO;
Since data and integrity paylods use these same functions and may point
to different kinds of memory, I think you'd have to pass the 'attrs'
from the caller since it knows which flags to check for MMIO dma.