Skip to content

arm64: fdt: fix membock add/cap ordering

Pingfan Liu linux-arm-kernel linux-devicetree linux-efi 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

Adopt Rob's suggestion to call
early_init_dt_check_for_usable_mem_range() from efi_init()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2of: fdt: Aggregate the processing of "linux, usable-memory-range"drivers/of/fdt.c+13 -50 replies
2/2efi: apply memblock cap after memblock_add()drivers/firmware/efi/efi-init.c drivers/of/fdt.c include/linux/of_fdt.h+9 -114 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDave KleikampJohn DonnellyRob HerringArd Biesheuvel
1/2T-b A-b R-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCHv2 0/2] arm64: fdt: fix membock add/cap ordering

In fact, V2 tackles this issue at efi_init() for both arm64 and risc-v.

Since in Zhen Lei's series "[PATCH v17 00/10] support reserving crashkernel above 4G on arm64 kdump", [8/10] is self-standing and meaningful. I abstract and utilize it.

I make a small change in it in order to use early_init_dt_check_for_usable_mem_range() outside of/fdt. (Cc: Zhen, please let me know if it is not fine for you.)

So finally these two patches can be applied as candidates for

Fixes b261dba2fdb2 ("arm64: kdump: Remove custom linux,usable-memory-range handling")

[1]: https://lore.kernel.org/all/[email protected]/

v1 -> v2:
Adopt Rob's suggestion to call
early_init_dt_check_for_usable_mem_range() from efi_init()

Cc: Rob Herring <[email protected]>
Cc: Zhen Lei <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Frank Rowand <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Nick Terrell <[email protected]>
Cc: [email protected]
To: [email protected]
To: [email protected]

Pingfan Liu (1):
efi: apply memblock cap after memblock_add()

Zhen Lei (1):
of: fdt: Aggregate the processing of "linux,usable-memory-range"

 drivers/firmware/efi/efi-init.c |  7 +++++++
 drivers/of/fdt.c                | 18 +++++++++++++-----
 include/linux/of_fdt.h          |  1 +
 3 files changed, 21 insertions(+), 5 deletions(-)
Signature · 1 line
2.31.1