mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: eagle.alexander923@gmail.com, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH master v2 0/5] ARM64: unify pbl and proper malloc area start
Date: Wed, 27 May 2026 14:15:19 +0200	[thread overview]
Message-ID: <20260527121649.3365172-1-a.fatoum@pengutronix.de> (raw)

The current location used to place the very early PBL malloc area on
Rockchip overlaps the OP-TEE region. This series changes ARM64 to
make the start of the barebox proper malloc area easier to calculate and
uses that also for the PBL memory region.

v1: https://lore.barebox.org/barebox/20260522105852.2681680-1-a.fatoum@pengutronix.de/

v1 -> v2:
  - restrict to ARM64 only
  - make the offset from start of RAM instead of end (Sascha)

Ahmad Fatoum (5):
  arch: introduce new CONFIG_ARCH_HAS_MALLOC_SIZE
  arch: introduce CONFIG_BAREBOX_MEMORY_OFFSET
  ARM64: switch to CONFIG_BAREBOX_MEMORY_OFFSET
  ARM64: configs: drop CONFIG_MALLOC_SIZE=0x0 as it's now the default
  ARM64: place PBL malloc area at start of barebox proper malloc area

 arch/Kconfig                               | 19 ++++++++++
 arch/arm/Kconfig                           |  2 +
 arch/arm/configs/efi_v8_defconfig          |  1 -
 arch/arm/configs/imx_v8_defconfig          |  1 -
 arch/arm/configs/layerscape_defconfig      |  1 -
 arch/arm/configs/multi_v8_defconfig        |  1 -
 arch/arm/configs/rockchip_v8_defconfig     |  1 -
 arch/arm/configs/rpi_v8a_defconfig         |  3 +-
 arch/arm/configs/socfpga-agilex5_defconfig |  1 -
 arch/arm/configs/zynqmp_defconfig          |  1 -
 arch/arm/cpu/common.c                      |  5 +++
 arch/arm/cpu/start.c                       | 10 +++++
 arch/arm/cpu/uncompress.c                  |  4 ++
 arch/arm/include/asm/barebox-arm.h         | 10 +++--
 arch/arm/mach-rockchip/atf.c               |  2 +-
 arch/mips/Kconfig                          |  1 +
 arch/openrisc/Kconfig                      |  1 +
 arch/powerpc/Kconfig                       |  1 +
 arch/riscv/Kconfig                         |  1 +
 arch/sandbox/Kconfig                       |  1 +
 common/Kconfig                             | 43 +++++++++++++++++++++-
 common/memory.c                            |  7 ++++
 include/asm-generic/memory_layout.h        | 24 ++++++++++++
 include/linux/pagemap.h                    |  1 +
 24 files changed, 126 insertions(+), 16 deletions(-)

-- 
2.47.3




             reply	other threads:[~2026-05-27 12:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-27 12:15 Ahmad Fatoum [this message]
2026-05-27 12:15 ` [PATCH master v2 1/5] arch: introduce new CONFIG_ARCH_HAS_MALLOC_SIZE Ahmad Fatoum
2026-05-27 12:15 ` [PATCH master v2 2/5] arch: introduce CONFIG_BAREBOX_MEMORY_OFFSET Ahmad Fatoum
2026-05-27 12:15 ` [PATCH master v2 3/5] ARM64: switch to CONFIG_BAREBOX_MEMORY_OFFSET Ahmad Fatoum
2026-05-27 12:15 ` [PATCH master v2 4/5] ARM64: configs: drop CONFIG_MALLOC_SIZE=0x0 as it's now the default Ahmad Fatoum
2026-05-27 12:15 ` [PATCH master v2 5/5] ARM64: place PBL malloc area at start of barebox proper malloc area Ahmad Fatoum
2026-05-27 13:12   ` Alexander Shiyan
2026-05-28 11:04     ` Ahmad Fatoum
2026-05-28 12:17       ` Alexander Shiyan
2026-05-28 12:50         ` Ahmad Fatoum
2026-05-28 10:55   ` [PATCH master v2] fixup! " Ahmad Fatoum
2026-05-28 12:16     ` Alexander Shiyan
2026-05-28 11:09 ` [PATCH master v2 0/5] ARM64: unify pbl and proper malloc area start Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260527121649.3365172-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=eagle.alexander923@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox