linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary
@ 2020-09-16  2:49 Zhen Lei
  2020-09-16  2:49 ` [PATCH v3 1/2] ARM: fix trivial comments in head.S Zhen Lei
  2020-09-16  2:49 ` [PATCH v3 2/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary Zhen Lei
  0 siblings, 2 replies; 6+ messages in thread
From: Zhen Lei @ 2020-09-16  2:49 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Andrew Morton, Russell King,
	Catalin Marinas, linux-arm-kernel, linux-kernel
  Cc: Zhen Lei, Libin, Kefeng Wang, Jianguo Chen

v2 --> v3:
1. cancel send to "patches@armlinux.org.uk", 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: patches@armlinux.org.uk

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(-)

-- 
1.8.3



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-17  6:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16  2:49 [PATCH v3 0/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary Zhen Lei
2020-09-16  2:49 ` [PATCH v3 1/2] ARM: fix trivial comments in head.S Zhen Lei
2020-09-16  2:49 ` [PATCH v3 2/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary Zhen Lei
2020-09-16 11:15   ` Ard Biesheuvel
2020-09-17  2:16     ` Leizhen (ThunderTown)
2020-09-17  6:54       ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).