mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH v2 0/6] add PBL handoff-data support
Date: Fri, 17 May 2024 08:45:05 +0200	[thread overview]
Message-ID: <20240517064511.3307462-1-a.fatoum@pengutronix.de> (raw)

This series replaces the 3 patches from v1 that are in next.

The first 3 patches are new: They ensure that the handoff structs
(linked list pointers, cookie, flags, ...) are also reserved in the
SDRAM banks and not only the data.

The three patches after that differ to v1 mainly in that reservation
of space for the handoff data is correctly taken care of. This was
erroneous both in PBL and in barebox proper and led to problems for me
trying to boot a Qemu Virt64 machine that has for some reason a FDT that
describes its size in the header as 1MiB.

Refer to each individual patch's changelog for more information.

Ahmad Fatoum (3):
  memory: add support for requesting barebox area as a whole
  treewide: use request_barebox_region for possible barebox memory
    regions
  ARM: cpu: start: register barebox memory area

Sascha Hauer (3):
  ARM: move blob_is_arm_boarddata() to include
  add handoff-data support
  ARM: pass handoff data from PBL to proper

 arch/arm/cpu/cpu.c                 |   2 +-
 arch/arm/cpu/mmu_32.c              |   8 +-
 arch/arm/cpu/mmu_64.c              |   4 +-
 arch/arm/cpu/start.c               |  85 ++++---------
 arch/arm/cpu/uncompress.c          |  36 +++++-
 arch/arm/include/asm/barebox-arm.h |  31 +++--
 arch/arm/mach-imx/scratch.c        |   2 +-
 arch/mips/lib/cpu-probe.c          |   2 +-
 arch/powerpc/mach-mpc5xxx/cpu.c    |   2 +-
 arch/powerpc/mach-mpc85xx/cpu.c    |   2 +-
 arch/riscv/boot/start.c            |   4 +-
 arch/riscv/cpu/core.c              |   2 +-
 common/memory.c                    |  40 +++++-
 fs/pstore/ram_core.c               |   2 +-
 include/memory.h                   |   6 +
 include/pbl/handoff-data.h         |  53 ++++++++
 pbl/Makefile                       |   1 +
 pbl/handoff-data.c                 | 194 +++++++++++++++++++++++++++++
 18 files changed, 382 insertions(+), 94 deletions(-)
 create mode 100644 include/pbl/handoff-data.h
 create mode 100644 pbl/handoff-data.c

-- 
2.39.2




             reply	other threads:[~2024-05-17  6:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-17  6:45 Ahmad Fatoum [this message]
2024-05-17  6:45 ` [PATCH v2 1/6] memory: add support for requesting barebox area as a whole Ahmad Fatoum
2024-05-17  6:45 ` [PATCH v2 2/6] treewide: use request_barebox_region for possible barebox memory regions Ahmad Fatoum
2024-05-17  6:45 ` [PATCH v2 3/6] ARM: cpu: start: register barebox memory area Ahmad Fatoum
2024-05-17  6:45 ` [PATCH v2 4/6] ARM: move blob_is_arm_boarddata() to include Ahmad Fatoum
2024-05-17  6:45 ` [PATCH v2 5/6] add handoff-data support Ahmad Fatoum
2024-05-17  6:45 ` [PATCH v2 6/6] ARM: pass handoff data from PBL to proper Ahmad Fatoum
2024-05-21  7:14 ` [PATCH v2 0/6] add PBL handoff-data support 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=20240517064511.3307462-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@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