Skip to contentSkip to conversation

spapr/docs: Add a few words about x-vof

RFC PATCH Applied Alexey Kardashevskiy 3 participants 7 messages May 6, 2022 – May 13, 2022 PowerPC

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 spapr/docs: Add a few words about x-vof

The alternative small firmware needs a few words of what it can and absolutely cannot do; this adds those words.

---
 docs/system/ppc/pseries.rst | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
docs/system/ppc/pseries.rst +28 -0
index d9b65ad4e850..4c98a94f9add 100644
@@ -32,14 +32,42 @@ Missing devices
 Firmware
 ========
 
+The pSeries platform in QEMU comes with 2 firmwares:
+
 `SLOF <https://github.com/aik/SLOF>`_ (Slimline Open Firmware) is an
 implementation of the `IEEE 1275-1994, Standard for Boot (Initialization
 Configuration) Firmware: Core Requirements and Practices
 <https://standards.ieee.org/standard/1275-1994.html>`_.
 
+SLOF performs bus scanning, PCI resource allocation, provides the client
+interface to boot from block devices and network.
+
 QEMU includes a prebuilt image of SLOF which is updated when a more recent
 version is required.
 
+VOF (Virtual Open Firmware) is a minimalistic firmware to work with
+``-machine pseries,x-vof=on``. When enabled, the firmware acts as a slim
+shim and QEMU implements parts of the IEEE 1275 Open Firmware interface.
+
+VOF does not have device drivers, does not do PCI resource allocation and
+relies on ``-kernel`` used with Linux kernels recent enough (v5.4+)
+to PCI resource assignment. It is ideal to use with petitboot.
+
+Booting via ``-kernel`` supports the following:
++-------------------+-------------------+------------------+
+| kernel            | pseries,x-vof=off | pseries,x-vof=on |
++===================+===================+==================+
+| vmlinux BE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| vmlinux LE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| zImage.pseries BE |     x             |     ✓¹           |
++-------------------+-------------------+------------------+
+| zImage.pseries LE |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+Notes:
+¹ must set kernel-addr=0
+
 Build directions
 ================
 
Signature · 1 line
2.30.2
#1 lore raw
Quoted 39 lines · Alexey Kardashevskiy

The alternative small firmware needs a few words of what it can and absolutely cannot do; this adds those words.

---
  docs/system/ppc/pseries.rst | 28 ++++++++++++++++++++++++++++
  1 file changed, 28 insertions(+)
docs/system/ppc/pseries.rst +15 -0
index d9b65ad4e850..4c98a94f9add 100644
@@ -32,14 +32,42 @@ Missing devices
  Firmware
  ========
 
+The pSeries platform in QEMU comes with 2 firmwares:
+
  `SLOF <https://github.com/aik/SLOF>`_ (Slimline Open Firmware) is an
  implementation of the `IEEE 1275-1994, Standard for Boot (Initialization
  Configuration) Firmware: Core Requirements and Practices
  <https://standards.ieee.org/standard/1275-1994.html>`_.
 
+SLOF performs bus scanning, PCI resource allocation, provides the client
+interface to boot from block devices and network.
+
  QEMU includes a prebuilt image of SLOF which is updated when a more recent
  version is required.
 
+VOF (Virtual Open Firmware) is a minimalistic firmware to work with
+``-machine pseries,x-vof=on``. When enabled, the firmware acts as a slim
+shim and QEMU implements parts of the IEEE 1275 Open Firmware interface.
+
+VOF does not have device drivers, does not do PCI resource allocation and
+relies on ``-kernel`` used with Linux kernels recent enough (v5.4+)
+to PCI resource assignment. It is ideal to use with petitboot.
+
+Booting via ``-kernel`` supports the following:
++-------------------+-------------------+------------------+

docs/system/ppc/pseries.rst Missing devices · line 67

Quoted 10 lines
docs/system/ppc/pseries.rst +10 -0
+| kernel            | pseries,x-vof=off | pseries,x-vof=on |
++===================+===================+==================+
+| vmlinux BE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| vmlinux LE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| zImage.pseries BE |     x             |     ✓¹           |
++-------------------+-------------------+------------------+
+| zImage.pseries LE |     ✓             |     ✓            |
++-------------------+-------------------+------------------+

You need an empty line at the start and at the end of the table. Otherwise it'll be rendered as regular text.

docs/system/ppc/pseries.rst Missing devices · line 68

Quoted 1 line
docs/system/ppc/pseries.rst +1 -0
+Notes:

I also don't believe you need the "Notes:" addendum here. It's clear that you're making an observation about the zImage.pseries BE and x-vof=on case.

Everything else LGTM. If no one else has any comment, and you're ok with these changes I mentioned, I can amend it myself with my R-b.

Thanks,

Daniel

Quoted 5 lines
docs/system/ppc/pseries.rst +2 -0
+¹ must set kernel-addr=0
+
  Build directions
  ================
 
#2 lore raw
Quoted 45 lines · Daniel Henrique Barboza
Quoted 42 lines · Alexey Kardashevskiy

The alternative small firmware needs a few words of what it can and absolutely cannot do; this adds those words.

---
  docs/system/ppc/pseries.rst | 28 ++++++++++++++++++++++++++++

  1 file changed, 28 insertions(+)
docs/system/ppc/pseries.rst +0 -0
index d9b65ad4e850..4c98a94f9add 100644
@@ -32,14 +32,42 @@ Missing devices

  Firmware
  ========

docs/system/ppc/pseries.rst +2 -0
+The pSeries platform in QEMU comes with 2 firmwares:
+

  SLOF <https://github.com/aik/SLOF>_ (Slimline Open Firmware) is an implementation of the `IEEE 1275-1994, Standard for Boot (Initialization Configuration) Firmware: Core Requirements and Practices
  <https://standards.ieee.org/standard/1275-1994.html>`_.

docs/system/ppc/pseries.rst +3 -0
+SLOF performs bus scanning, PCI resource allocation, provides the client
+interface to boot from block devices and network.
+

  QEMU includes a prebuilt image of SLOF which is updated when a more recent version is required.

docs/system/ppc/pseries.rst +5 -0
+VOF (Virtual Open Firmware) is a minimalistic firmware to work with
+``-machine pseries,x-vof=on``. When enabled, the firmware acts as a slim
+shim and QEMU implements parts of the IEEE 1275 Open Firmware interface.
+
+VOF does not have device drivers, does not do PCI resource allocation 

and

docs/system/ppc/pseries.rst +10 -0
+relies on ``-kernel`` used with Linux kernels recent enough (v5.4+)
+to PCI resource assignment. It is ideal to use with petitboot.
+
+Booting via ``-kernel`` supports the following:
++-------------------+-------------------+------------------+
+| kernel            | pseries,x-vof=off | pseries,x-vof=on |
++===================+===================+==================+
+| vmlinux BE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| vmlinux LE        |     ✓             |     ✓            |
Quoted 8 lines
Quoted 5 lines

++-------------------+-------------------+------------------+
+| zImage.pseries BE |     x             |     ✓¹           |
++-------------------+-------------------+------------------+
+| zImage.pseries LE |     ✓             |     ✓            |
++-------------------+-------------------+------------------+

You need an empty line at the start and at the end of the table. Otherwise it'll be rendered as regular text.

How do you build htmls from these btw?

Quoted 5 lines
Quoted 2 lines

+Notes:

I also don't believe you need the "Notes:" addendum here. It's clear that you're making an observation about the zImage.pseries BE and x-vof=on case.

But only this combination needs kernel-addr=0, other images do not need that with SLOF or VOF.

Quoted 3 lines

Everything else LGTM. If no one else has any comment, and you're ok with these changes I mentioned, I can amend it myself with my R-b.

I'll probably repost after the other patch with kernel-addr is merged into your tree. Thanks,

Quoted 13 lines

Thanks,

Daniel

Quoted 4 lines

+¹ must set kernel-addr=0
+
  Build directions
  ================

Signature · 1 line
Alexey
#3 lore raw
Quoted 56 lines · Alexey Kardashevskiy
Quoted 44 lines · Daniel Henrique Barboza
Quoted 41 lines · Alexey Kardashevskiy

The alternative small firmware needs a few words of what it can and absolutely cannot do; this adds those words.

---
  docs/system/ppc/pseries.rst | 28 ++++++++++++++++++++++++++++

  1 file changed, 28 insertions(+)
docs/system/ppc/pseries.rst +0 -0
index d9b65ad4e850..4c98a94f9add 100644
@@ -32,14 +32,42 @@ Missing devices

  Firmware
  ========

docs/system/ppc/pseries.rst +2 -0
+The pSeries platform in QEMU comes with 2 firmwares:
+

  SLOF <https://github.com/aik/SLOF>_ (Slimline Open Firmware) is an implementation of the `IEEE 1275-1994, Standard for Boot (Initialization Configuration) Firmware: Core Requirements and Practices
  <https://standards.ieee.org/standard/1275-1994.html>`_.

docs/system/ppc/pseries.rst +3 -0
+SLOF performs bus scanning, PCI resource allocation, provides the client
+interface to boot from block devices and network.
+

  QEMU includes a prebuilt image of SLOF which is updated when a more recent version is required.

docs/system/ppc/pseries.rst +15 -0
+VOF (Virtual Open Firmware) is a minimalistic firmware to work with
+``-machine pseries,x-vof=on``. When enabled, the firmware acts as a slim
+shim and QEMU implements parts of the IEEE 1275 Open Firmware interface.
+
+VOF does not have device drivers, does not do PCI resource allocation and
+relies on ``-kernel`` used with Linux kernels recent enough (v5.4+)
+to PCI resource assignment. It is ideal to use with petitboot.
+
+Booting via ``-kernel`` supports the following:
++-------------------+-------------------+------------------+
+| kernel            | pseries,x-vof=off | pseries,x-vof=on |
++===================+===================+==================+
+| vmlinux BE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| vmlinux LE        |     ✓             |     ✓            |
Quoted 8 lines
Quoted 5 lines

++-------------------+-------------------+------------------+
+| zImage.pseries BE |     x             |     ✓¹           |
++-------------------+-------------------+------------------+
+| zImage.pseries LE |     ✓             |     ✓            |
++-------------------+-------------------+------------------+

You need an empty line at the start and at the end of the table. Otherwise it'll be rendered as regular text.

Quoted 1 line

How do you build htmls from these btw?

Install python3-sphinx python3-sphinx-rtd-theme
run configure with --enable-docs
check the result in build/docs/manual/system/arm/

C.

#4 lore raw
In reply to Alexey Kardashevskiy
Quoted 56 lines · Alexey Kardashevskiy
Quoted 44 lines · Daniel Henrique Barboza
Quoted 41 lines · Alexey Kardashevskiy

The alternative small firmware needs a few words of what it can and absolutely cannot do; this adds those words.

---
  docs/system/ppc/pseries.rst | 28 ++++++++++++++++++++++++++++

  1 file changed, 28 insertions(+)
docs/system/ppc/pseries.rst +0 -0
index d9b65ad4e850..4c98a94f9add 100644
@@ -32,14 +32,42 @@ Missing devices

  Firmware
  ========

docs/system/ppc/pseries.rst +2 -0
+The pSeries platform in QEMU comes with 2 firmwares:
+

  SLOF <https://github.com/aik/SLOF>_ (Slimline Open Firmware) is an implementation of the `IEEE 1275-1994, Standard for Boot (Initialization Configuration) Firmware: Core Requirements and Practices
  <https://standards.ieee.org/standard/1275-1994.html>`_.

docs/system/ppc/pseries.rst +3 -0
+SLOF performs bus scanning, PCI resource allocation, provides the client
+interface to boot from block devices and network.
+

  QEMU includes a prebuilt image of SLOF which is updated when a more recent version is required.

docs/system/ppc/pseries.rst +15 -0
+VOF (Virtual Open Firmware) is a minimalistic firmware to work with
+``-machine pseries,x-vof=on``. When enabled, the firmware acts as a slim
+shim and QEMU implements parts of the IEEE 1275 Open Firmware interface.
+
+VOF does not have device drivers, does not do PCI resource allocation and
+relies on ``-kernel`` used with Linux kernels recent enough (v5.4+)
+to PCI resource assignment. It is ideal to use with petitboot.
+
+Booting via ``-kernel`` supports the following:
++-------------------+-------------------+------------------+
+| kernel            | pseries,x-vof=off | pseries,x-vof=on |
++===================+===================+==================+
+| vmlinux BE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| vmlinux LE        |     ✓             |     ✓            |
Quoted 8 lines
Quoted 5 lines

++-------------------+-------------------+------------------+
+| zImage.pseries BE |     x             |     ✓¹           |
++-------------------+-------------------+------------------+
+| zImage.pseries LE |     ✓             |     ✓            |
++-------------------+-------------------+------------------+

You need an empty line at the start and at the end of the table. Otherwise it'll be rendered as regular text.

Quoted 1 line

How do you build htmls from these btw?

Had to do this yesterday because I changed machines recently. In a Fedora 35 system I did this:

sudo dnf install python3-sphinx
sudo dnf install python-sphinx_rtd_theme-doc
pip install sphinx_rtd_theme

(not sure if all steps are needed)

Then the generated docs will be under build/docs/manual .

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

+Notes:

I also don't believe you need the "Notes:" addendum here. It's clear that you're making an observation about the zImage.pseries BE and x-vof=on case.

But only this combination needs kernel-addr=0, other images do not need that with SLOF or VOF.

I mentioned about the "Notes:" string. We can remove it and leave just the

+¹ must set kernel-addr=0

Since it's clear that you're making a note about that item in the table.

Quoted 7 lines
Quoted 5 lines

Everything else LGTM. If no one else has any comment, and you're ok with these changes I mentioned, I can amend it myself with my R-b.

I'll probably repost after the other patch with kernel-addr is merged into your tree. Thanks,

I already picked it (just waiting some tests to finish). But feel free to send a v2 if you want to play around generating the docs to see how your patch looks like in the finished HTML.

Thanks,

Daniel

Quoted 16 lines
Quoted 15 lines

Thanks,

Daniel

Quoted 4 lines

+¹ must set kernel-addr=0
+
  Build directions
  ================

#5 lore raw
Quoted 65 lines · Daniel Henrique Barboza
Quoted 60 lines · Alexey Kardashevskiy
Quoted 48 lines · Daniel Henrique Barboza
Quoted 45 lines · Alexey Kardashevskiy

The alternative small firmware needs a few words of what it can and absolutely cannot do; this adds those words.

---
  docs/system/ppc/pseries.rst | 28 ++++++++++++++++++++++++++++

  1 file changed, 28 insertions(+)
docs/system/ppc/pseries.rst +0 -0
index d9b65ad4e850..4c98a94f9add 100644
@@ -32,14 +32,42 @@ Missing devices

  Firmware
  ========

docs/system/ppc/pseries.rst +2 -0
+The pSeries platform in QEMU comes with 2 firmwares:
+

  SLOF <https://github.com/aik/SLOF>_ (Slimline Open Firmware) is an implementation of the `IEEE 1275-1994, Standard for Boot (Initialization Configuration) Firmware: Core Requirements and Practices
  <https://standards.ieee.org/standard/1275-1994.html>`_.
+SLOF performs bus scanning, PCI resource allocation, provides the client

docs/system/ppc/pseries.rst +2 -0
+interface to boot from block devices and network.
+

  QEMU includes a prebuilt image of SLOF which is updated when a more recent version is required.
+VOF (Virtual Open Firmware) is a minimalistic firmware to work with +``-machine pseries,x-vof=on``. When enabled, the firmware acts as a slim
+shim and QEMU implements parts of the IEEE 1275 Open Firmware interface.

docs/system/ppc/pseries.rst +2 -0
+
+VOF does not have device drivers, does not do PCI resource 

allocation and

docs/system/ppc/pseries.rst +10 -0
+relies on ``-kernel`` used with Linux kernels recent enough (v5.4+)
+to PCI resource assignment. It is ideal to use with petitboot.
+
+Booting via ``-kernel`` supports the following:
++-------------------+-------------------+------------------+
+| kernel            | pseries,x-vof=off | pseries,x-vof=on |
++===================+===================+==================+
+| vmlinux BE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| vmlinux LE        |     ✓             |     ✓            |
Quoted 8 lines
Quoted 5 lines

++-------------------+-------------------+------------------+
+| zImage.pseries BE |     x             |     ✓¹           |
++-------------------+-------------------+------------------+
+| zImage.pseries LE |     ✓             |     ✓            |
++-------------------+-------------------+------------------+

You need an empty line at the start and at the end of the table. Otherwise it'll be rendered as regular text.

Quoted 1 line

How do you build htmls from these btw?

Quoted 7 lines

Had to do this yesterday because I changed machines recently. In a Fedora 35 system I did this:

sudo dnf install python3-sphinx
sudo dnf install python-sphinx_rtd_theme-doc
pip install sphinx_rtd_theme

I only needed the last one, compiles htmls now. I was trying to figure out in Makefiles where is that "html" target and I just could not :)

Quoted 28 lines

(not sure if all steps are needed)

Then the generated docs will be under build/docs/manual .

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

+Notes:

I also don't believe you need the "Notes:" addendum here. It's clear that you're making an observation about the zImage.pseries BE and x-vof=on case.

But only this combination needs kernel-addr=0, other images do not need that with SLOF or VOF.

I mentioned about the "Notes:" string. We can remove it and leave just the

+¹ must set kernel-addr=0

Since it's clear that you're making a note about that item in the table.

Quoted 3 lines
Quoted 3 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Everything else LGTM. If no one else has any comment, and you're ok with these changes I mentioned, I can amend it myself with my R-b.

I'll probably repost after the other patch with kernel-addr is merged into your tree. Thanks,

I already picked it (just waiting some tests to finish). But feel free to send a v2 if you want to play around generating the docs to see how your patch looks like in the finished HTML.

Nah, the changes you made are fine so I am not planning on posting another version. Thanks for fixing it up.

Quoted 23 lines

Thanks,

Daniel

Quoted 16 lines
Quoted 15 lines

Thanks,

Daniel

Quoted 4 lines

+¹ must set kernel-addr=0
+
  Build directions
  ================

Signature · 1 line
Alexey
#6 lore raw
Quoted 107 lines · Alexey Kardashevskiy
Quoted 61 lines · Daniel Henrique Barboza
Quoted 56 lines · Alexey Kardashevskiy
Quoted 44 lines · Daniel Henrique Barboza
Quoted 41 lines · Alexey Kardashevskiy

The alternative small firmware needs a few words of what it can and absolutely cannot do; this adds those words.

---
  docs/system/ppc/pseries.rst | 28 ++++++++++++++++++++++++++++

  1 file changed, 28 insertions(+)
docs/system/ppc/pseries.rst +0 -0
index d9b65ad4e850..4c98a94f9add 100644
@@ -32,14 +32,42 @@ Missing devices

  Firmware
  ========

docs/system/ppc/pseries.rst +2 -0
+The pSeries platform in QEMU comes with 2 firmwares:
+

  SLOF <https://github.com/aik/SLOF>_ (Slimline Open Firmware) is an implementation of the `IEEE 1275-1994, Standard for Boot (Initialization Configuration) Firmware: Core Requirements and Practices
  <https://standards.ieee.org/standard/1275-1994.html>`_.

docs/system/ppc/pseries.rst +3 -0
+SLOF performs bus scanning, PCI resource allocation, provides the client
+interface to boot from block devices and network.
+

  QEMU includes a prebuilt image of SLOF which is updated when a more recent version is required.

docs/system/ppc/pseries.rst +15 -0
+VOF (Virtual Open Firmware) is a minimalistic firmware to work with
+``-machine pseries,x-vof=on``. When enabled, the firmware acts as a slim
+shim and QEMU implements parts of the IEEE 1275 Open Firmware interface.
+
+VOF does not have device drivers, does not do PCI resource allocation and
+relies on ``-kernel`` used with Linux kernels recent enough (v5.4+)
+to PCI resource assignment. It is ideal to use with petitboot.
+
+Booting via ``-kernel`` supports the following:
++-------------------+-------------------+------------------+
+| kernel            | pseries,x-vof=off | pseries,x-vof=on |
++===================+===================+==================+
+| vmlinux BE        |     ✓             |     ✓            |
++-------------------+-------------------+------------------+
+| vmlinux LE        |     ✓             |     ✓            |
Quoted 8 lines
Quoted 5 lines

++-------------------+-------------------+------------------+
+| zImage.pseries BE |     x             |     ✓¹           |
++-------------------+-------------------+------------------+
+| zImage.pseries LE |     ✓             |     ✓            |
++-------------------+-------------------+------------------+

You need an empty line at the start and at the end of the table. Otherwise it'll be rendered as regular text.

Quoted 1 line

How do you build htmls from these btw?

Quoted 7 lines

Had to do this yesterday because I changed machines recently. In a Fedora 35 system I did this:

sudo dnf install python3-sphinx
sudo dnf install python-sphinx_rtd_theme-doc
pip install sphinx_rtd_theme

I only needed the last one, compiles htmls now. I was trying to figure out in Makefiles where is that "html" target and I just could not :)

Quoted 31 lines

(not sure if all steps are needed)

Then the generated docs will be under build/docs/manual .

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

+Notes:

I also don't believe you need the "Notes:" addendum here. It's clear that you're making an observation about the zImage.pseries BE and x-vof=on case.

But only this combination needs kernel-addr=0, other images do not need that with SLOF or VOF.

I mentioned about the "Notes:" string. We can remove it and leave just the

+¹ must set kernel-addr=0

Since it's clear that you're making a note about that item in the table.

Quoted 6 lines
Quoted 5 lines

Everything else LGTM. If no one else has any comment, and you're ok with these changes I mentioned, I can amend it myself with my R-b.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

I'll probably repost after the other patch with kernel-addr is merged into your tree. Thanks,

I already picked it (just waiting some tests to finish). But feel free to send a v2 if you want to play around generating the docs to see how your patch looks like in the finished HTML.

Nah, the changes you made are fine so I am not planning on posting another version. Thanks for fixing it up.

No problem!

Queued in gitlab.com/danielhb/qemu/tree/ppc-next. Thanks,

Daniel

Quoted 26 lines
Quoted 25 lines

Thanks,

Daniel

Quoted 16 lines
Quoted 15 lines

Thanks,

Daniel

Quoted 4 lines

+¹ must set kernel-addr=0
+
  Build directions
  ================