dma-mapping: allow EREMOTEIO return code for P2PDMA transfers
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 8 Jul 2022 16:50:55 +0000 (10:50 -0600)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 11:27:47 +0000 (07:27 -0400)
commit7c2645a2a30a45d3dc4c98b315a51be44ec69a67
tree118abe33b35e1492043c111a0605be050bb6acee
parent5e180ff326b43bd3fb72892e1083b2707159aa6e
dma-mapping: allow EREMOTEIO return code for P2PDMA transfers

Add EREMOTEIO error return to dma_map_sgtable() which will be used
by .map_sg() implementations that detect P2PDMA pages that the
underlying DMA device cannot access.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/mapping.c