On Tue, Aug 19, 2025, at 20:20, Keith Busch wrote: > On Tue, Aug 19, 2025 at 08:36:58PM +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) >> { >> - iter->addr = dma_map_page(dma_dev, phys_to_page(vec->paddr), >> - offset_in_page(vec->paddr), vec->len, rq_dma_dir(req)); >> + iter->addr = dma_map_phys(dma_dev, vec->paddr, vec->len, >> + rq_dma_dir(req), 0); > > Looks good. > > Reviewed-by: Keith Busch <kbu...@kernel.org> > > Just a random thought when I had to double back to check what the "0" > means: many dma_ api's have a default macro without an "attrs" argument, > then an _attrs() version for when you need it. Not sure if you want to > strictly follow that pattern, but merely a suggestion. At some point, I had both functions with and without attrs, but Christoph said that it is an artefact and I should introduce one function which accepts attrs but without _attrs in the name. Thanks
- [PATCH v4 02/16] iommu/dma: implement DMA_ATTR_MMIO for dm... Leon Romanovsky
- [PATCH v4 04/16] dma-mapping: rename trace_dma_*map_page t... Leon Romanovsky
- [PATCH v4 11/16] dma-mapping: export new dma_*map_phys() i... Leon Romanovsky
- [PATCH v4 05/16] iommu/dma: rename iommu_dma_*map_page to ... Leon Romanovsky
- [PATCH v4 08/16] kmsan: convert kmsan_handle_dma to use ph... Leon Romanovsky
- [PATCH v4 09/16] dma-mapping: handle MMIO flow in dma_map|... Leon Romanovsky
- [PATCH v4 07/16] dma-mapping: convert dma_direct_*map_page... Leon Romanovsky
- [PATCH v4 14/16] block-dma: migrate to dma_map_phys instea... Leon Romanovsky
- Re: [PATCH v4 14/16] block-dma: migrate to dma_map_ph... Keith Busch
- Re: [PATCH v4 14/16] block-dma: migrate to dma_ma... Leon Romanovsky
- [PATCH v4 13/16] mm/hmm: properly take MMIO path Leon Romanovsky
- [PATCH v4 15/16] block-dma: properly take MMIO path Leon Romanovsky
- [PATCH v4 12/16] mm/hmm: migrate to physical address-based... Leon Romanovsky
- [PATCH v4 16/16] nvme-pci: unmap MMIO pages with appropria... Leon Romanovsky
- [PATCH v4 06/16] iommu/dma: extend iommu_dma_*map_phys API... Leon Romanovsky
- [PATCH v4 10/16] xen: swiotlb: Open code map_resource call... Leon Romanovsky
- [PATCH v4 01/16] dma-mapping: introduce new DMA attribute ... Leon Romanovsky