[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 04/16] dma-iommu: Return error code from iommu_dma_map_sg()
 
- To: Logan Gunthorpe <logang@xxxxxxxxxxxx>
 
- From: Christoph Hellwig <hch@xxxxxx>
 
- Date: Fri, 16 Jul 2021 08:31:27 +0200
 
- Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx,	linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx,	linux-mips@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx,	linux-s390@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx,	iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx,	xen-devel@xxxxxxxxxxxxxxxxxxxx, Christoph Hellwig <hch@xxxxxx>,	Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>,	Robin Murphy <robin.murphy@xxxxxxx>,	Stephen Bates <sbates@xxxxxxxxxxxx>,	Martin Oliveira <martin.oliveira@xxxxxxxxxxxxx>,	Joerg Roedel <joro@xxxxxxxxxx>, Will Deacon <will@xxxxxxxxxx>
 
- Delivery-date: Fri, 16 Jul 2021 06:31:35 +0000
 
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
 
 
 
Careful here. What do all these errors from the low-level code mean
here?  I think we need to clearly standardize on what we actually
return from ->map_sg and possibly document what the callers expect and
can do, and enforce that only those error are reported.
 
 
    
     |