mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Subject: [PATCH 0/3] Rockchip: early boot time optimization
Date: Thu, 01 Oct 2026 09:42:50 +0200	[thread overview]
Message-ID: <20261001-rockchip-early-boottime-v1-0-dd891bcdb74f@pengutronix.de> (raw)

On Rockchip boards the ROM loads the barebox binary to the start of DRAM where
later the TF-A is placed, so the first thing all 64bit Rockchip boards do is
to move away from that location. This is done with MMU disabled, so takes some
time. Instead of letting each board repeat this pattern, do the move in atf.c
at a place common for all Rockchip boards and turn on the MMU beforehand.

Also, both TF-A and OP-TEE hold the device tree passed to them in uncached memory,
so accessing it is slow. calling fdt_pack() on the device tree before passing
it squeezes the unused bytes out of the device tree and thus speed up TF-A
and OP-TEE by a few 100ms.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (3):
      ARM: rockchip: move to the load address with the MMU enabled
      ARM: rockchip: boards: leave moving to the load address to atf.c
      ARM: rockchip: pack the device tree passed to TF-A and OP-TEE

 arch/arm/boards/pine64-pinetab2/lowlevel.c         | 10 +----
 arch/arm/boards/pine64-quartz64/lowlevel.c         |  5 +--
 arch/arm/boards/protonic-prtpuk/lowlevel.c         |  5 +--
 arch/arm/boards/protonic-rk356x/lowlevel.c         |  5 +--
 arch/arm/boards/qnap-tsx33/lowlevel.c              | 18 +--------
 arch/arm/boards/radxa-cm3/lowlevel.c               |  5 +--
 arch/arm/boards/radxa-rock3/lowlevel.c             |  5 +--
 arch/arm/boards/radxa-rock5/lowlevel.c             | 10 +----
 arch/arm/boards/rockchip-rk3562-evb2/lowlevel.c    |  5 +--
 .../boards/rockchip-rk3562-kickpi-k3/lowlevel.c    |  5 +--
 .../boards/rockchip-rk3568-bpi-r2pro/lowlevel.c    |  5 +--
 arch/arm/boards/rockchip-rk3568-evb/lowlevel.c     |  5 +--
 arch/arm/boards/wolfvision-pf5/lowlevel.c          |  9 +----
 arch/arm/boards/xunlong-orangepi-5-plus/lowlevel.c |  5 +--
 arch/arm/mach-rockchip/atf.c                       | 47 +++++++++++++++++++---
 15 files changed, 58 insertions(+), 86 deletions(-)
---
base-commit: 4aa5dcd400d5b9cecfd24e68c6f05cd128c75c43
change-id: 20261001-rockchip-early-boottime-b981093bde02

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




             reply	other threads:[~2026-10-01  7:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-01  7:42 Sascha Hauer [this message]
2026-10-01  7:42 ` [PATCH 1/3] ARM: rockchip: move to the load address with the MMU enabled Sascha Hauer
2026-10-01  7:42 ` [PATCH 2/3] ARM: rockchip: boards: leave moving to the load address to atf.c Sascha Hauer
2026-10-01  8:30   ` Ahmad Fatoum
2026-10-01 10:19     ` Sascha Hauer
2026-10-01  7:42 ` [PATCH 3/3] ARM: rockchip: pack the device tree passed to TF-A and OP-TEE 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=20261001-rockchip-early-boottime-v1-0-dd891bcdb74f@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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