--- v5
+++ v6
@@ -1,3 +1,5 @@
+From: Baruch Siach <baruchs-c@neureality.ai>
+
DMA zones code assumes that DMA lower limit is zero. When there is no RAM
below 4GB, arm64 platform code sets DMA/DMA32 zone limits to cover the entire
RAM[0].
@@ -13,6 +15,12 @@
With this series applied, the DMA zone covers the right RAM range for my
platform.
+
+v6:
+
+ * Drop the first patch; existing logic is just fine
+
+ * Modify powerpc code to avoid off by one issue
v5:
@@ -65,21 +73,18 @@
[3] https://lore.kernel.org/all/ZnH-VU2iz9Q2KLbr@arm.com/
-Baruch Siach (1):
- dma: improve DMA zone selection
-
Catalin Marinas (2):
dma: replace zone_dma_bits by zone_dma_limit
arm64: support DMA zone above 4GB
arch/arm64/mm/init.c | 32 ++++++++++----------------------
- arch/powerpc/mm/mem.c | 9 ++++-----
+ arch/powerpc/mm/mem.c | 5 ++++-
arch/s390/mm/init.c | 2 +-
include/linux/dma-direct.h | 2 +-
- kernel/dma/direct.c | 10 +++++-----
+ kernel/dma/direct.c | 6 +++---
kernel/dma/pool.c | 4 ++--
- kernel/dma/swiotlb.c | 8 ++++----
- 7 files changed, 27 insertions(+), 40 deletions(-)
+ kernel/dma/swiotlb.c | 6 +++---
+ 7 files changed, 24 insertions(+), 33 deletions(-)
base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b