dma-direct: Temporary DMA fix on arm64
authorPhil Elwell <phil@raspberrypi.org>
Wed, 25 Sep 2019 08:49:58 +0000 (09:49 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:06 +0000 (16:33 +0100)
See: https://github.com/raspberrypi/linux/issues/3251

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
kernel/dma/direct.c

index 0a093a6..d2b4628 100644 (file)
@@ -398,7 +398,7 @@ int dma_direct_supported(struct device *dev, u64 mask)
        if (IS_ENABLED(CONFIG_ZONE_DMA))
                min_mask = DMA_BIT_MASK(ARCH_ZONE_DMA_BITS);
        else
-               min_mask = DMA_BIT_MASK(32);
+               min_mask = DMA_BIT_MASK(30);
 
        min_mask = min_t(u64, min_mask, (max_pfn - 1) << PAGE_SHIFT);