Skip to content

Commit d74ea71

Browse files
rmurphy-armChristoph Hellwig
authored andcommitted
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>
1 parent f07d141 commit d74ea71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/acpi/arm64/iort.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,7 @@ void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *dma_size)
10141014
* Limit coherent and dma mask based on size
10151015
* retrieved from firmware.
10161016
*/
1017+
dev->bus_dma_mask = mask;
10171018
dev->coherent_dma_mask = mask;
10181019
*dev->dma_mask = mask;
10191020
}

0 commit comments

Comments
 (0)