From: Peter Maydell <peter.maydell@linaro.org>
To: Rob Herring <robh@kernel.org>
Cc: "Leif Lindholm" <quic_llindhol@quicinc.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Radoslaw Biernacki" <rad@semihalf.com>,
"Cédric Le Goater" <clg@kaod.org>
Subject: Re: [PATCH v2] hw/arm: add versioning to sbsa-ref machine DT
Date: Tue, 17 May 2022 17:50:39 +0100 [thread overview]
Message-ID: <CAFEAcA_qAVQVCi8x5dAgG-6oi9k1oRR7VQtyRfsQ2+rsS57UTQ@mail.gmail.com> (raw)
In-Reply-To: <CAL_JsqJirHpxC-QXDZUKbJUTgYpac3KyTh7r3v0frWg26F3rzQ@mail.gmail.com>
On Tue, 17 May 2022 at 14:27, Rob Herring <robh@kernel.org> wrote:
>
> On Thu, May 5, 2022 at 6:41 AM Leif Lindholm <quic_llindhol@quicinc.com> wrote:
> >
> > The sbsa-ref machine is continuously evolving. Some of the changes we
> > want to make in the near future, to align with real components (e.g.
> > the GIC-700), will break compatibility for existing firmware.
> >
> > Introduce two new properties to the DT generated on machine generation:
> > - machine-version-major
> > To be incremented when a platform change makes the machine
> > incompatible with existing firmware.
> > - machine-version-minor
> > To be incremented when functionality is added to the machine
> > without causing incompatibility with existing firmware.
> > to be reset to 0 when machine-version-major is incremented.
>
> Where's the binding documentation for this?
>
> We already have a way to version DTs and that's with compatible. I'm
> not completely opposed to a version number though, but I am opposed to
> it not being common. We've rejected vendors (QCom in fact) doing their
> own thing here.
>
>
> > This versioning scheme is *neither*:
> > - A QEMU versioned machine type; a given version of QEMU will emulate
> > a given version of the platform.
> > - A reflection of level of SBSA (now SystemReady SR) support provided.
>
> FYI, it's planned to certify the virt machine for SR-IR which will
> include DT schema validation. Undocumented properties are a problem
> for that.
This isn't the 'virt' machine :-)
This dtb fragment is a purely private communication between
the QEMU model and the sbsa-ref EL3 firmware. We could in
theory equally replace it with a set of hardwired
"board revision" registers. There's a comment in the existing
sources about this:
/*
* Firmware on this machine only uses ACPI table to load OS, these limited
* device tree nodes are just to let firmware know the info which varies from
* command line parameters, so it is not necessary to be fully compatible
* with the kernel CPU and NUMA binding rules.
*/
Kernels running on sbsa-ref won't see a dtb (let alone one with this
version information in it), because firmware will always boot them
with ACPI.
thanks
-- PMM
next prev parent reply other threads:[~2022-05-17 17:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-05 11:39 [PATCH v2] hw/arm: add versioning to sbsa-ref machine DT Leif Lindholm
2022-05-09 9:37 ` Peter Maydell
2022-05-17 13:27 ` Rob Herring
2022-05-17 16:50 ` Peter Maydell [this message]
2022-05-17 20:30 ` Rob Herring
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=CAFEAcA_qAVQVCi8x5dAgG-6oi9k1oRR7VQtyRfsQ2+rsS57UTQ@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=clg@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=quic_llindhol@quicinc.com \
--cc=rad@semihalf.com \
--cc=robh@kernel.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;
as well as URLs for NNTP newsgroup(s).