On 27/10/2021 18:47, Logan Gunthorpe wrote:
scsi_dma_map() was reporting a failure during boot on an AMD machine
with the IOMMU enabled.

   scsi_dma_map failed: request for 36 bytes!

The issue was tracked down to a mistake in logic: should not return
an error if iommu_deferred_attach() returns zero.

Reported-by: Marshall Midden<marshallmid...@gmail.com>
Fixes: dabb16f67215 ("iommu/dma: return error code from iommu_dma_map_sg()")
Link:https://lore.kernel.org/all/CAD2CkAWjS8=kkween4cgvnjyforuibzeicua-x+smtbo0jo...@mail.gmail.com
Signed-off-by: Logan Gunthorpe<log...@deltatee.com>
Cc: Joerg Roedel<j...@8bytes.org>
Cc: Will Deacon<w...@kernel.org>

Seems reasonable, FWIW:
Reviewed-by: John Garry <john.ga...@huawei.com>
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to