summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2018-07-24 00:16:08 +0200
committerChristoph Hellwig <hch@lst.de>2018-07-27 19:01:05 +0200
commitd74ea7100b0d065f2008c4e1ddf637483bc3d28c (patch)
tree0d681f589861c7ef32b39abe0394f8d1b1e06855
parentdma-mapping: Generalise dma_32bit_limit flag (diff)
downloadlinux-d74ea7100b0d065f2008c4e1ddf637483bc3d28c.tar.xz
linux-d74ea7100b0d065f2008c4e1ddf637483bc3d28c.zip
ACPI/IORT: Set bus DMA mask as appropriate
When an explicit DMA limit is described by firmware, we need to remember it regardless of how drivers might subsequently update their devices' masks. The new bus_dma_mask field does that. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/acpi/arm64/iort.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index 4a66896e2aa3..bc51cff5505e 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -1014,6 +1014,7 @@ void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *dma_size)
* Limit coherent and dma mask based on size
* retrieved from firmware.
*/
+ dev->bus_dma_mask = mask;
dev->coherent_dma_mask = mask;
*dev->dma_mask = mask;
}