Skip to content

ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary

Zhen Lei linux-arm-kernel lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 12 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

1. cancel send to "[email protected]", the patches should have been reviewed first.
2. drop the "default n" of the configuration option ARM_PATCH_PHYS_VIRT_RADICAL.
3. remove an unnecessary cast: below (unsigned long). "t" is already unsigned long. __pv_stub((unsigned long) t, t, "sub", __PV_BITS_23_16);

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: fix trivial comments in head.Sarch/arm/kernel/head.S+3 -30 replies
2/2ARM: support PHYS_OFFSET minimum aligned at 64KiB boundaryarch/arm/Kconfig arch/arm/include/asm/memory.h arch/arm/kernel/head.S+48 -103 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary

v2 --> v3:
1. cancel send to "[email protected]", the patches should have been reviewed first.
2. drop the "default n" of the configuration option ARM_PATCH_PHYS_VIRT_RADICAL.
3. remove an unnecessary cast: below (unsigned long). "t" is already unsigned long. __pv_stub((unsigned long) t, t, "sub", __PV_BITS_23_16);

v1 --> v2:
Nothing changed, but add mail list: [email protected]

v1:
Currently, only support the kernels where the base of physical memory is at a 16MiB boundary. Because the add/sub instructions only contains 8bits unrotated value. But we can use one more "add/sub" instructions to handle bits 23-16, to support PHYS_OFFSET minimum aligned at 64KiB boundary.

This function is required at least by some Huawei boards, such as Hi1380 board. Becuase the kernel Image is loaded at 2MiB boundary.

Zhen Lei (2):
ARM: fix trivial comments in head.S
ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary

 arch/arm/Kconfig              | 17 ++++++++++++++++-
 arch/arm/include/asm/memory.h | 16 +++++++++++++---
 arch/arm/kernel/head.S        | 31 ++++++++++++++++++++++---------
 3 files changed, 51 insertions(+), 13 deletions(-)
Signature · 1 line
1.8.3