iommu/dma: Fix IOVA reserve dma ranges
authorSrinath Mannam <srinath.mannam@broadcom.com>
Mon, 14 Sep 2020 07:23:19 +0000 (12:53 +0530)
committerJoerg Roedel <jroedel@suse.de>
Tue, 8 Jun 2021 12:15:02 +0000 (14:15 +0200)
commit571f316074a203e979ea90211d9acf423dfe5f46
tree4d192b1c738aefc0bb21044681065a1477a4da55
parent8124c8a6b35386f73523d27eacb71b5364a68c4c
iommu/dma: Fix IOVA reserve dma ranges

Fix IOVA reserve failure in the case when address of first memory region
listed in dma-ranges is equal to 0x0.

Fixes: aadad097cd46f ("iommu/dma: Reserve IOVA for PCIe inaccessible DMA address")
Signed-off-by: Srinath Mannam <srinath.mannam@broadcom.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/r/20200914072319.6091-1-srinath.mannam@broadcom.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c