Skip to content

arm64: mm: reserve CMA and crashkernel in ZONE_DMA if enabled

Chen Zhou linux-arm-kernel lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v12 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Add Reviewed-by for patch 1 from Nicolas.
- Suggested by Nicolas, also reserve CMA in ZONE_DMA if enabled.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64: mm: update the comments about ZONE_DMAarch/arm64/mm/init.c+5 -40 replies
2/3arm64: mm: move dma_contiguous_reserve() to bootmem_init()arch/arm64/mm/init.c+2 -20 replies
3/3arm64: mm: reserve CMA and crashkernel in ZONE_DMA if enabledarch/arm64/mm/init.c+3 -20 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchNicolas Saenz Julienne
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] arm64: mm: reserve CMA and crashkernel in ZONE_DMA if enabled

Currently, CMA and crashkernel are reserved in ZONE_DMA32, which is OK for majority of devices. But the ones that need them in ZONE_DMA need to configure it explicitly.

Since patchset "arm64: Default to 32-bit wide ZONE_DMA", ZONE_DMA's size is fine-tuned. So we could directly reserve CMA and crashkernel in ZONE_DMA if CONFIG_ZONE_DMA is enabled, otherwise, reserving in ZONE_DMA32.

Patch 1 updates the comments about the ZONE_DMA. Patch 2 move dma_contiguous_reserve() to bootmem_init() Patch 3 reserve CMA and crashkernel in ZONE_DMA if enabled

Changes since v1:
- Add Reviewed-by for patch 1 from Nicolas.
- Suggested by Nicolas, also reserve CMA in ZONE_DMA if enabled.

Chen Zhou (3):
arm64: mm: update the comments about ZONE_DMA
arm64: mm: move dma_contiguous_reserve() to bootmem_init()
arm64: mm: reserve CMA and crashkernel in ZONE_DMA if enabled

 arch/arm64/mm/init.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
Signature · 1 line
2.20.1