Skip to contentSkip to conversation

doc: arch/powerpc: add architecture documentation

PATCH In review Bradley Morgan 4 participants 12 messages Oct 30 – Nov 1

lore
Share & tools
lore
#0 lore raw

v2 cover doc: arch/powerpc: add architecture documentation

There is almost nothing in doc/arch/ for powerpc, so this adds a folder like the x86 one, with four pages:

- an overview: what the port is, the cpu families, the boards, how to build it, the config options people ask about

- the mpc85xx boot images: the NOR, RAMBOOT and NAND layouts, and the CONFIG_SYS_MPC85XX_NO_RESETVEC and SPL/TPL knobs

- a PBL guide: the RCW and PBI files, what goes into u-boot.pbl, how to build and flash one, and the bits that are fun to poke at

- booting and porting: the boot flow from reset to prompt, booting a kernel, and the file by file steps to bring up a new board

v1 is here:

https://lore.kernel.org/u-boot/[email protected]/

Changes in v2:

- fix the mpc8xxx contents, serdes, I2C and SPI do not live there

- CFG_RESET_VECTOR_ADDRESS is board specific, not always 0xfffffffc

- u-boot.bin is still built on RAMBOOT boards, the PBL wraps it

- only PBI is address/data pairs, RCW is 32 bit words

- mmc write block count 672, matching the board README

- add the booting and porting page

Bradley Morgan (4):
doc: arch/powerpc: add an overview
doc: arch/powerpc: document the mpc85xx boot images
doc: arch/powerpc: add a PBL guide
doc: arch/powerpc: add a booting and porting guide

 doc/arch/index.rst           |   1 +
 doc/arch/powerpc/boot.rst    |  61 +++++++++++++
 doc/arch/powerpc/index.rst   |  13 +++
 doc/arch/powerpc/pbl.rst     | 145 +++++++++++++++++++++++++++++
 doc/arch/powerpc/porting.rst |  78 ++++++++++++++++
 doc/arch/powerpc/powerpc.rst | 171 +++++++++++++++++++++++++++++++++++
 6 files changed, 469 insertions(+)
 create mode 100644 doc/arch/powerpc/boot.rst
 create mode 100644 doc/arch/powerpc/index.rst
 create mode 100644 doc/arch/powerpc/pbl.rst
 create mode 100644 doc/arch/powerpc/porting.rst
 create mode 100644 doc/arch/powerpc/powerpc.rst
Signature · 1 line
2.47.3
#1 lore raw

PATCH v2 1/4 doc: arch/powerpc: add an overview

PowerPC support is split over three CPU families and the only bits written down are in the README files next to the boards. Add an arch page covering the families, the boards, how to build and the config options people keep asking about.

---
 doc/arch/index.rst           |   1 +
 doc/arch/powerpc/index.rst   |  10 +++
 doc/arch/powerpc/powerpc.rst | 166 +++++++++++++++++++++++++++++++++++
 3 files changed, 177 insertions(+)
 create mode 100644 doc/arch/powerpc/index.rst
 create mode 100644 doc/arch/powerpc/powerpc.rst
doc/arch/index.rst +1 -0
index 60c93b3b664..4602aac0571 100644
@@ -12,6 +12,7 @@ Architecture-specific doc
    m68k
    mips
    nios2
+   powerpc/index
    riscv
    sandbox/index
    sh
doc/arch/powerpc/index.rst new file +10 -0
new file mode 100644
index 00000000000..bf0c46b9408
@@ -0,0 +1,10 @@
+.. SPDX-License-Identifier: GPL-2.0+
+.. Copyright (C) 2026, Bradley Morgan <[email protected]>
+
+PowerPC
+=======
+
+.. toctree::
+   :maxdepth: 2
+
+   powerpc
doc/arch/powerpc/powerpc.rst new file +166 -0

166 lines not on this page · raw message

Signature · 1 line
2.47.3
#2 lore raw

PATCH v2 2/4 doc: arch/powerpc: document the mpc85xx boot images

In reply to Bradley Morgan

Boards boot from NOR, through a PBL image the BootROM runs, or with a TPL and SPL pair out of NAND, and the image layout changes with each. Write the layouts and the config options that control them down so nobody has to figure it out from the linker scripts again.

---
 doc/arch/powerpc/boot.rst    | 59 ++++++++++++++++++++++++++++++++++++
 doc/arch/powerpc/index.rst   |  1 +
 doc/arch/powerpc/powerpc.rst |  4 ++-
 3 files changed, 63 insertions(+), 1 deletion(-)
 create mode 100644 doc/arch/powerpc/boot.rst
doc/arch/powerpc/boot.rst new file +59 -0
new file mode 100644
index 00000000000..f72ed8d8304
@@ -0,0 +1,59 @@
+.. SPDX-License-Identifier: GPL-2.0+
+.. Copyright (C) 2026, Bradley Morgan <[email protected]>
+
+Boot images on MPC85xx
+======================
+
+There are two boot models and the image layout tells you which one you
+are dealing with.
+
+NOR flash
+---------
+
+U-Boot is linked for CONFIG_TEXT_BASE and u-boot.bin goes straight to
+flash. If the SoC has a boot page (CONFIG_MPC85XX_HAVE_RESET_VECTOR),
+the reset vector sits in the top 4K boot page at CFG_RESET_VECTOR_ADDRESS.
+That one is board specific, 0xeffffffc for P2041RDB NOR and 0xfffffffc
+for its PBL images.
+
+With CONFIG_OF_SEPARATE, binman glues u-boot-dtb.bin together using
+arch/powerpc/dts/u-boot.dtsi. For a RAM image without a reset vector,
+CONFIG_SYS_MPC85XX_NO_RESETVEC throws .resetvec away and moves .bootpg
+up.
+
+RAMBOOT
+-------
+
+RAMBOOT means the BootROM loads the image for you. Depending on the
+board that is SD, SPI or NAND, and the defconfig name says which:
+
+* P2041RDB_SDCARD_defconfig, P2041RDB_SPIFLASH_defconfig
+* T1024RDB_SDCARD_defconfig, T1024RDB_SPIFLASH_defconfig,
+  T1024RDB_NAND_defconfig
+* T2080RDB_SDCARD_defconfig, T2080RDB_SPIFLASH_defconfig,
+  T2080RDB_NAND_defconfig
+
+These select CONFIG_RAMBOOT_PBL and add a PBL wrapper around u-boot.bin
+to the build:
+
+* u-boot.pbl, when U-Boot proper is the only stage
+* u-boot-with-spl-pbl.bin, when CONFIG_SPL_FSL_PBL is set and an SPL runs
+  first
+
+NAND
+----
+
+Some P1010 and P1020 boards boot from NAND with a TPL in L2 SRAM that
+sets up DDR, then an SPL that loads U-Boot proper. That is the
+CONFIG_TPL and CONFIG_SPL_INIT_MINIMAL setup in the _NAND defconfigs.
+
+SPL builds in general also produce u-boot-with-spl.bin, which is SPL
+plus U-Boot proper padded to CONFIG_SPL_PAD_TO.
+
+SD and SPI, the other way
+-------------------------
+
+The BootROM also handles raw SD and SPI images that carry their own boot
+sector. Either let CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR prepend one for
+eSDHC, or use the external boot_format tool. See
+doc/README.mpc85xx-sd-spi-boot and doc/README.ramboot-ppc85xx.
doc/arch/powerpc/index.rst +1 -0
index bf0c46b9408..bfeeb1ed2bb 100644
@@ -8,3 +8,4 @@ PowerPC
    :maxdepth: 2
 
    powerpc
+   boot
doc/arch/powerpc/powerpc.rst +3 -1
index 78a386f5431..0f1f0148252 100644
@@ -130,7 +130,8 @@ MPC85xx:
   See doc/README.mpc85xx-spin-table.
 
 * CONFIG_MPC85XX_HAVE_RESET_VECTOR, CONFIG_SYS_MPC85XX_NO_RESETVEC and
-  CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR are the image layout knobs.
+  CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR are the image layout knobs, they
+  are explained in :doc:`/arch/powerpc/boot`.
 
 Device trees
 ------------
@@ -157,6 +158,7 @@ No magic here, other architectures do the same.
 More reading
 ------------
 
+* :doc:`/arch/powerpc/boot`
 * doc/README.pblimage
 * doc/README.ramboot-ppc85xx
 * doc/README.mpc85xx-sd-spi-boot
Signature · 1 line
2.47.3
#3 lore raw

PATCH v2 3/4 doc: arch/powerpc: add a PBL guide

In reply to Bradley Morgan

The PBL side is the fun part and most of it lives in people's heads. Explain what the RCW and PBI files are, how to build and flash the image, what to watch out for before somebody bricks their board, and what it takes to add PBL support for a new one.

---
 doc/arch/powerpc/boot.rst    |   2 +
 doc/arch/powerpc/index.rst   |   1 +
 doc/arch/powerpc/pbl.rst     | 145 +++++++++++++++++++++++++++++++++++
 doc/arch/powerpc/powerpc.rst |   1 +
 4 files changed, 149 insertions(+)
 create mode 100644 doc/arch/powerpc/pbl.rst
doc/arch/powerpc/boot.rst +2 -0
index f72ed8d8304..48f044a3f78 100644
@@ -40,6 +40,8 @@ to the build:
 * u-boot-with-spl-pbl.bin, when CONFIG_SPL_FSL_PBL is set and an SPL runs
   first
 
+Poking at those images has its own page, see :doc:`/arch/powerpc/pbl`.
+
 NAND
 ----
 
doc/arch/powerpc/index.rst +1 -0
index bfeeb1ed2bb..0663b305af3 100644
@@ -9,3 +9,4 @@ PowerPC
 
    powerpc
    boot
+   pbl
doc/arch/powerpc/pbl.rst new file +145 -0

145 lines not on this page · raw message

doc/arch/powerpc/powerpc.rst +1 -0
index 0f1f0148252..8ce28569ebe 100644
@@ -159,6 +159,7 @@ More reading
 ------------
 
 * :doc:`/arch/powerpc/boot`
+* :doc:`/arch/powerpc/pbl`
 * doc/README.pblimage
 * doc/README.ramboot-ppc85xx
 * doc/README.mpc85xx-sd-spi-boot
Signature · 1 line
2.47.3
#4 lore raw

PATCH v2 4/4 doc: arch/powerpc: add a booting and porting guide

In reply to Bradley Morgan

Nothing explains what runs between reset and the prompt, and porting a board is scattered over whatever README a sibling board happens to have. Add a page with the boot flow, booting a kernel and the file by file porting steps.

---
 doc/arch/powerpc/index.rst   |  1 +
 doc/arch/powerpc/porting.rst | 78 ++++++++++++++++++++++++++++++++++++
 doc/arch/powerpc/powerpc.rst |  4 +-
 3 files changed, 82 insertions(+), 1 deletion(-)
 create mode 100644 doc/arch/powerpc/porting.rst
doc/arch/powerpc/index.rst +1 -0
index 0663b305af3..66bffaa9270 100644
@@ -10,3 +10,4 @@ PowerPC
    powerpc
    boot
    pbl
+   porting
doc/arch/powerpc/porting.rst new file +78 -0

78 lines not on this page · raw message

doc/arch/powerpc/powerpc.rst +3 -1
index 8ce28569ebe..8ee4f19870b 100644
@@ -153,13 +153,15 @@ Four things:
 
 * a dts in arch/powerpc/dts/ if OF_CONTROL is used
 
-No magic here, other architectures do the same.
+No magic here, other architectures do the same. The long version, with
+the files and the commands, is in :doc:`/arch/powerpc/porting`.
 
 More reading
 ------------
 
 * :doc:`/arch/powerpc/boot`
 * :doc:`/arch/powerpc/pbl`
+* :doc:`/arch/powerpc/porting`
 * doc/README.pblimage
 * doc/README.ramboot-ppc85xx
 * doc/README.mpc85xx-sd-spi-boot
Signature · 1 line
2.47.3
#5 lore raw
In reply to Bradley Morgan
Quoted 10 lines · Bradley Morgan

There is almost nothing in doc/arch/ for powerpc, so this adds a folder like the x86 one, with four pages:

- an overview: what the port is, the cpu families, the boards, how to build it, the config options people ask about

- the mpc85xx boot images: the NOR, RAMBOOT and NAND layouts, and the CONFIG_SYS_MPC85XX_NO_RESETVEC and SPL/TPL knobs

[...]

Applied to next at u-boot-ppc, Thanks!

[1/4] doc: arch/powerpc: add an overview

      https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/e6a37f4dfeea
[2/4] doc: arch/powerpc: document the mpc85xx boot images
      https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/3287ff140823
[3/4] doc: arch/powerpc: add a PBL guide
      https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/b74d2c1efaac
[4/4] doc: arch/powerpc: add a booting and porting guide
      https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/0851db824add

--- Thanks!

#6 lore raw
Quoted 14 lines · Bradley Morgan
Quoted 10 lines · Bradley Morgan

There is almost nothing in doc/arch/ for powerpc, so this adds a folder like the x86 one, with four pages:

- an overview: what the port is, the cpu families, the boards, how to build it, the config options people ask about

- the mpc85xx boot images: the NOR, RAMBOOT and NAND layouts, and the CONFIG_SYS_MPC85XX_NO_RESETVEC and SPL/TPL knobs

[...]

Applied to next at u-boot-ppc, Thanks!

Quoted 8 lines

[1/4] doc: arch/powerpc: add an overview

      https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/e6a37f4dfeea
[2/4] doc: arch/powerpc: document the mpc85xx boot images
      https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/3287ff140823
[3/4] doc: arch/powerpc: add a PBL guide
      https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/b74d2c1efaac
[4/4] doc: arch/powerpc: add a booting and porting guide
      https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/0851db824add

For non-critical changes, please wait at least a few days. I'm hoping that for the documentation stuff you're doing that Heinrich will have a chance to look at them, for example.

Signature · 1 line
Tom
#7 lore raw
Quoted 24 lines · Tom Rini
Quoted 2 lines · Bradley Morgan
Quoted 1 line · Bradley Morgan

There is almost nothing in doc/arch/ for powerpc, so this adds a

folder

Quoted 5 lines
Quoted 5 lines

like the x86 one, with four pages:

- an overview: what the port is, the cpu families, the boards, how to build it, the config options people ask about

Quoted 9 lines
Quoted 4 lines

- the mpc85xx boot images: the NOR, RAMBOOT and NAND layouts, and the CONFIG_SYS_MPC85XX_NO_RESETVEC and SPL/TPL knobs

[...]

Applied to next at u-boot-ppc, Thanks!

[1/4] doc: arch/powerpc: add an overview

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/e6a37f4dfeea

Quoted 2 lines

[2/4] doc: arch/powerpc: document the mpc85xx boot images

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/3287ff140823

Quoted 2 lines

[3/4] doc: arch/powerpc: add a PBL guide

Quoted 8 lines

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/b74d2c1efaac

Quoted 2 lines

[4/4] doc: arch/powerpc: add a booting and porting guide

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/0851db824add

For non-critical changes, please wait at least a few days. I'm hoping that for the documentation stuff you're doing that Heinrich will have a chance to look at them, for example.

Hi, don't panic, I'll drop them if there is issues.

Also, remind me, is Heinrich the Hitachi guy? I don't remember.

I'll CC him in future patches if you like.

Quoted 2 lines

--- Thanks!

#8 lore raw

Hi Bradley,

Quoted 28 lines · Bradley Morgan
Quoted 27 lines · Tom Rini
Quoted 2 lines · Bradley Morgan
Quoted 1 line · Bradley Morgan

There is almost nothing in doc/arch/ for powerpc, so this adds a

folder

Quoted 5 lines
Quoted 5 lines

like the x86 one, with four pages:

- an overview: what the port is, the cpu families, the boards, how to build it, the config options people ask about

Quoted 9 lines
Quoted 4 lines

- the mpc85xx boot images: the NOR, RAMBOOT and NAND layouts, and the CONFIG_SYS_MPC85XX_NO_RESETVEC and SPL/TPL knobs

[...]

Applied to next at u-boot-ppc, Thanks!

[1/4] doc: arch/powerpc: add an overview

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/e6a37f4dfeea

Quoted 2 lines

[2/4] doc: arch/powerpc: document the mpc85xx boot images

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/3287ff140823

Quoted 2 lines

[3/4] doc: arch/powerpc: add a PBL guide

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/b74d2c1efaac

Quoted 2 lines

[4/4] doc: arch/powerpc: add a booting and porting guide

Quoted 8 lines
Quoted 5 lines

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/0851db824add

For non-critical changes, please wait at least a few days. I'm hoping that for the documentation stuff you're doing that Heinrich will have a chance to look at them, for example.

Hi, don't panic, I'll drop them if there is issues.

I do not review patches that were already merged, so you guarantee yourself at least one fewer pair of eyes on your patches. Dropping commits you've said you've merged should really be last resort, and should be explicitly and publicly communicated, with changes made to their state in patchwork as well, otherwise we are going to lose patches and people think some patches they found on the mailing list were merged.

There is almost nothing that requires merging that fast, *especially without reviews*. And if something requires merging that fast, a lot of eyes should be on it. We've had a case like that a few months ago with the critical vulnerability for FIT image verification for example and we still didn't merge that fast.

Merging without reviews could be seen as a way to introduce vulnerabilities in the project. The contributor rules still apply when sending patches even if you are a custodian. There's some grey area when you're contributing to some area where nobody reviews or maintains, but usually Tom eventually gets to those I believe. PPC is one of those grey areas because there are so few contributors and until now no active custodian as far as I understood, so I'm not sure what we are expecting as a workflow here to be honest. We'll figure something out on the way I guess.

You also sent a v1 at 1:49pm UTC today, then a v2 about an hour later, and merged a few minutes after. Please wait a few days between versions so people can review the latest version and the ML doesn't get spammed. If you found issues in your v1 and don't want people to waste time on some parts you're going to modify anyway in a v2, you can answer to your own mail and specify what you're going to replace (i.e. doing a review of your own code).

Quoted 2 lines

Also, remind me, is Heinrich the Hitachi guy? I don't remember.

$ grep Heinrich MAINTAINERS
M:	Heinrich Schuchardt <[email protected]>
M:	Heinrich Schuchardt <[email protected]>
R:	Heinrich Schuchardt <[email protected]>

Cheers,
Quentin

#9 lore raw
Quoted 44 lines · Quentin Schulz

Hi Bradley,

Quoted 13 lines · Bradley Morgan
Quoted 12 lines · Tom Rini
Quoted 2 lines · Bradley Morgan
Quoted 1 line · Bradley Morgan

There is almost nothing in doc/arch/ for powerpc, so this adds a

folder

Quoted 8 lines
Quoted 8 lines

like the x86 one, with four pages:

- an overview: what the port is, the cpu families, the boards, how to build it, the config options people ask about

- the mpc85xx boot images: the NOR, RAMBOOT and NAND layouts, and the CONFIG_SYS_MPC85XX_NO_RESETVEC and SPL/TPL knobs

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 1 line

[...]

Applied to next at u-boot-ppc, Thanks!

[1/4] doc: arch/powerpc: add an overview

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/e6a37f4dfeea

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

[2/4] doc: arch/powerpc: document the mpc85xx boot images

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/3287ff140823

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

[3/4] doc: arch/powerpc: add a PBL guide

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/b74d2c1efaac

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines

[4/4] doc: arch/powerpc: add a booting and porting guide

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/0851db824add

Quoted 7 lines
Quoted 4 lines

For non-critical changes, please wait at least a few days. I'm hoping that for the documentation stuff you're doing that Heinrich will have a chance to look at them, for example.

Hi, don't panic, I'll drop them if there is issues.

Quoted 6 lines

I do not review patches that were already merged, so you guarantee yourself at least one fewer pair of eyes on your patches. Dropping commits you've said you've merged should really be last resort, and should be explicitly and publicly communicated, with changes made to their state in patchwork as well, otherwise we are going to lose patches and people think some patches they found on the mailing list were merged.

Understood.

Quoted 6 lines

There is almost nothing that requires merging that fast, *especially without reviews*. And if something requires merging that fast, a lot of eyes should be on it. We've had a case like that a few months ago with the critical vulnerability for FIT image verification for example and we still didn't merge that fast.

Ack.

Quoted 10 lines

Merging without reviews could be seen as a way to introduce vulnerabilities in the project. The contributor rules still apply when sending patches even if you are a custodian. There's some grey area when you're contributing to some area where nobody reviews or maintains, but usually Tom eventually gets to those I believe. PPC is one of those grey areas because there are so few contributors and until now no active custodian as far as I understood, so I'm not sure what we are expecting as a workflow here to be honest. We'll figure something out on the way I guess.

Yeah, no reviewers sadly. So in in a hole on the ground here, hmm, maybe another guy could be reviewer too, 1 M one R entry.

Quoted 8 lines

You also sent a v1 at 1:49pm UTC today, then a v2 about an hour later, and merged a few minutes after. Please wait a few days between versions so people can review the latest version and the ML doesn't get spammed. If you found issues in your v1 and don't want people to waste time on some parts you're going to modify anyway in a v2, you can answer to your own mail and specify what you're going to replace (i.e. doing a review of your own code).

I did a Self-NAK.

Quoted 8 lines
Quoted 3 lines

Also, remind me, is Heinrich the Hitachi guy? I don't remember.

$ grep Heinrich MAINTAINERS
M:	Heinrich Schuchardt <[email protected]>
M:	Heinrich Schuchardt <[email protected]>
R:	Heinrich Schuchardt <[email protected]>

AHH. Makes sense, cheers

Quoted 4 lines

Cheers,
Quentin

--- Thanks!

#10 lore raw
In reply to Quentin Schulz

Hi Quentin,

Quoted 29 lines · Quentin Schulz

Hi Bradley,

Quoted 26 lines · Bradley Morgan
Quoted 25 lines · Tom Rini
Quoted 2 lines · Bradley Morgan
Quoted 1 line · Bradley Morgan

There is almost nothing in doc/arch/ for powerpc, so this adds a

folder

Quoted 5 lines
Quoted 5 lines

like the x86 one, with four pages:

- an overview: what the port is, the cpu families, the boards, how to build it, the config options people ask about

Quoted 8 lines
Quoted 4 lines

- the mpc85xx boot images: the NOR, RAMBOOT and NAND layouts, and the CONFIG_SYS_MPC85XX_NO_RESETVEC and SPL/TPL knobs

[...]

Applied to next at u-boot-ppc, Thanks!

[1/4] doc: arch/powerpc: add an overview

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/e6a37f4dfeea

Quoted 1 line

[2/4] doc: arch/powerpc: document the mpc85xx boot images

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/3287ff140823

Quoted 1 line

[3/4] doc: arch/powerpc: add a PBL guide

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/b74d2c1efaac

Quoted 1 line

[4/4] doc: arch/powerpc: add a booting and porting guide

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/0851db824add

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

For non-critical changes, please wait at least a few days. I'm hoping that for the documentation stuff you're doing that Heinrich will have a chance to look at them, for example.

Hi, don't panic, I'll drop them if there is issues.

I do not review patches that were already merged, so you guarantee yourself at least one fewer pair of eyes on your patches. Dropping commits you've said you've merged should really be last resort, and should be explicitly and publicly communicated, with changes made to their state in patchwork as well, otherwise we are going to lose patches and people think some patches they found on the mailing list were merged.

+1

Quoted 1 line

There is almost nothing that requires merging that fast, *especially without reviews*. And if something requires merging that fast, a lot of eyes should be on it. We've had a case like that a few months ago with the critical vulnerability for FIT image verification for example and we still didn't merge that fast.

+1 !

Quoted 1 line

Merging without reviews could be seen as a way to introduce vulnerabilities in the project. The contributor rules still apply when sending patches even if you are a custodian. There's some grey area when you're contributing to some area where nobody reviews or maintains, but usually Tom eventually gets to those I believe. PPC is one of those grey areas because there are so few contributors and until now no active custodian as far as I understood, so I'm not sure what we are expecting as a workflow here to be honest. We'll figure something out on the way I guess.

+1

Quoted 1 line

You also sent a v1 at 1:49pm UTC today, then a v2 about an hour later, and merged a few minutes after. Please wait a few days between versions so people can review the latest version and the ML doesn't get spammed. If you found issues in your v1 and don't want people to waste time on some parts you're going to modify anyway in a v2, you can answer to your own mail and specify what you're going to replace (i.e. doing a review of your own code).

Thats a no go from my side!

You can't send your patches after you've already sent them an hour ago.

No human can review your patches within an hour!

Give people time!

Most of them are not paid for this!

Quoted 11 lines
Quoted 3 lines

Also, remind me, is Heinrich the Hitachi guy? I don't remember.

$ grep Heinrich MAINTAINERS
M:    Heinrich Schuchardt <[email protected]>
M:    Heinrich Schuchardt <[email protected]>
R:    Heinrich Schuchardt <[email protected]>

Cheers,
Quentin

bye,
Heiko

Signature · 5 lines
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Geschäftsführer : Stefano Babic
#11 lore raw

Hi,

Quoted 49 lines · Heiko Schocher

Hi Quentin,

Quoted 29 lines · Quentin Schulz

Hi Bradley,

Quoted 26 lines · Bradley Morgan
Quoted 25 lines · Tom Rini
Quoted 2 lines · Bradley Morgan
Quoted 1 line · Bradley Morgan

There is almost nothing in doc/arch/ for powerpc, so this adds a

folder

Quoted 5 lines
Quoted 5 lines

like the x86 one, with four pages:

- an overview: what the port is, the cpu families, the boards, how to build it, the config options people ask about

Quoted 8 lines
Quoted 4 lines

- the mpc85xx boot images: the NOR, RAMBOOT and NAND layouts, and the CONFIG_SYS_MPC85XX_NO_RESETVEC and SPL/TPL knobs

[...]

Applied to next at u-boot-ppc, Thanks!

[1/4] doc: arch/powerpc: add an overview

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/e6a37f4dfeea

Quoted 1 line

[2/4] doc: arch/powerpc: document the mpc85xx boot images

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/3287ff140823

Quoted 1 line

[3/4] doc: arch/powerpc: add a PBL guide

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/b74d2c1efaac

Quoted 1 line

[4/4] doc: arch/powerpc: add a booting and porting guide

https://git.u-boot-project.org/u-boot/custodians/u-boot-ppc/-/commit/0851db824add

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

For non-critical changes, please wait at least a few days. I'm hoping that for the documentation stuff you're doing that Heinrich will have a chance to look at them, for example.

Hi, don't panic, I'll drop them if there is issues.

I do not review patches that were already merged, so you guarantee yourself at least one fewer pair of eyes on your patches. Dropping commits you've said you've merged should really be last resort, and should be explicitly and publicly communicated, with changes made to their state in patchwork as well, otherwise we are going to lose patches and people think some patches they found on the mailing list were merged.

+1

Quoted 1 line

There is almost nothing that requires merging that fast, *especially without reviews*. And if something requires merging that fast, a lot of eyes should be on it. We've had a case like that a few months ago with the critical vulnerability for FIT image verification for example and we still didn't merge that fast.

+1 !

Quoted 1 line

Merging without reviews could be seen as a way to introduce vulnerabilities in the project. The contributor rules still apply when sending patches even if you are a custodian. There's some grey area when you're contributing to some area where nobody reviews or maintains, but usually Tom eventually gets to those I believe. PPC is one of those grey areas because there are so few contributors and until now no active custodian as far as I understood, so I'm not sure what we are expecting as a workflow here to be honest. We'll figure something out on the way I guess.

Quoted 7 lines

+1

Quoted 1 line

You also sent a v1 at 1:49pm UTC today, then a v2 about an hour later, and merged a few minutes after. Please wait a few days between versions so people can review the latest version and the ML doesn't get spammed. If you found issues in your v1 and don't want people to waste time on some parts you're going to modify anyway in a v2, you can answer to your own mail and specify what you're going to replace (i.e. doing a review of your own code).

Thats a no go from my side!

You can't send your patches after you've already sent them an hour ago.

Sorry, typo. I meant: You can't merge your own patches that fast.

bye,
Heiko

Quoted 21 lines

No human can review your patches within an hour!

Give people time!

Most of them are not paid for this!

Quoted 11 lines
Quoted 3 lines

Also, remind me, is Heinrich the Hitachi guy? I don't remember.

$ grep Heinrich MAINTAINERS
M:    Heinrich Schuchardt <[email protected]>
M:    Heinrich Schuchardt <[email protected]>
R:    Heinrich Schuchardt <[email protected]>

Cheers,
Quentin

bye,
Heiko

Signature · 5 lines
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Geschäftsführer : Stefano Babic