Skip to content

arm64: handle "reserved" entries in /proc/iomem

Masayoshi Mizuma kexec 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 1 replyIn review

Changelog from the cover letter

v3: - Re-based to the latest commit (bd07796).
- Added Tested-by tag from Bhupesh and Masayoshi
- Added an error handling in case mem_regions_alloc_and_exclude() fails (0002 patch).

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kexec: add variant helper functions for handling memory regionskexec/mem_regions.c kexec/mem_regions.h+49 -00 replies
2/3arm64: kexec: allocate memory space avoiding reserved regionskexec/arch/arm64/kexec-arm64.c+94 -590 replies
3/3arm64: kdump: deal with a lot of resource entries in /proc/iomemkexec/arch/arm64/crashdump-arm64.c+10 -150 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchBhupesh SharmaMasayoshi Mizuma
1/3T-b T-b
2/3T-b T-b
3/3T-b T-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] arm64: handle "reserved" entries in /proc/iomem

In recent arm64 kernels, /proc/iomem has an extended file format like:

40000000-5871ffff : System RAM
41800000-426affff : Kernel code
426b0000-42aaffff : reserved
42ab0000-42c64fff : Kernel data
54400000-583fffff : Crash kernel
58590000-585effff : reserved
58700000-5871ffff : reserved
58720000-58b5ffff : reserved
58b60000-5be3ffff : System RAM
58b61000-58b61fff : reserved

where "reserved" entries can be an ACPI table, UEFI related code or data. They can be corrupted and result in early failure in booting a new kernel. As an actual example, LPI pending table and LPI property table, which are pointed by a UEFI data, are sometimes destroyed.

They are expected to be preserved across kexec'ing.

Changelog:
v3: - Re-based to the latest commit (bd07796).
- Added Tested-by tag from Bhupesh and Masayoshi
- Added an error handling in case mem_regions_alloc_and_exclude() fails (0002 patch).

AKASHI Takahiro (3):
kexec: add variant helper functions for handling memory regions
arm64: kexec: allocate memory space avoiding reserved regions
arm64: kdump: deal with a lot of resource entries in /proc/iomem

 kexec/arch/arm64/crashdump-arm64.c |  25 ++---
 kexec/arch/arm64/kexec-arm64.c     | 153 ++++++++++++++++++-----------
 kexec/mem_regions.c                |  42 ++++++++
 kexec/mem_regions.h                |   7 ++
 4 files changed, 153 insertions(+), 74 deletions(-)
Signature · 7 lines
2.18.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec