All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Leif Lindholm <leif.lindholm@linaro.org>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Hongbo Zhang" <hongbo.zhang@linaro.org>,
	"Andrew Jones" <drjones@redhat.com>,
	"Radoslaw Biernacki" <radoslaw.biernacki@linaro.org>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	qemu-arm <qemu-arm@nongnu.org>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [Qemu-devel] [PATCH v2 2/2] hw/arm: Add Arm Enterprise machine type
Date: Thu, 30 Aug 2018 15:29:02 +0200	[thread overview]
Message-ID: <CAKv+Gu9r+1OBOSUBW_KpDEEoKyc=iwW4zVEe04-_JUnJtSGupQ@mail.gmail.com> (raw)
In-Reply-To: <20180830100233.nr6fm3npy57zl4xx@bivouac.eciton.net>

On 30 August 2018 at 12:02, Leif Lindholm <leif.lindholm@linaro.org> wrote:
> On Thu, Aug 30, 2018 at 09:39:33AM +0100, Peter Maydell wrote:
>> On 30 August 2018 at 09:31, Leif Lindholm <leif.lindholm@linaro.org> wrote:
>> > On Thu, Aug 30, 2018 at 03:07:29PM +0800, Hongbo Zhang wrote:
>> >> @Ard, @Leif, is there any possibility to remove all the DT nodes?
>> >> On real hardware, how does UEFI find the memory size and CPU number?
>> >
>> > Usually by asking some form of SCP/PMU.
>> > So until we have rock-solid multi-cpu-instance (making terms up here,
>> > there may be a proper name already?) support upstream, we need to take
>> > shortcuts.
>>
>> I would expect that you'd want a "faked-on-the-QEMU end" SCP
>> communications endpoint to start with anyway. We have one of
>> those for vexpress, for instance.
>
> Ah, I wasn't aware we did!
>
> In that case - sure, that is probably the more sensible solution.
> Does it emulate SCMI?
>

The purpose of the SBSA/SBBR qemu machine is prototyping the
interactions between rich firmware and the OS for things like RAS,
secure variable storage for UEFI or capsule update.

How exactly the firmware figures out how many CPUs and how much memory
we are running with is out of scope for this, and so I don't think
there is a need to build something from scratch here: DT will do just
fine, given that both EDK2 and ARM-TF have working DT code for these
things.

fw_cfg, on the other hand, is unsuitable for us. Generating ACPI
tables in a different way from actual bare metal is not a good idea,
given that things like RAS interact with ACPI as well, and fw_cfg is
also exposed to the OS in the default mach-virt configuration. So we
could tweak fw_cfg to be more suitable, but I think that does not
improve the usefulness of our prototype at all.

At some point, it would be nice if we could get UEFI to receive its
platform description from ARM-TF in a generic manner, and it would be
good for EDK2 and ARM-TF to align on this. So even if we decide that
SCMI is more suitable way to convey this information from QEMU to the
guest firmware, I would object to implementing the client side of that
in UEFI, given that it should be ARM-TF that provides this
information.

  reply	other threads:[~2018-08-30 13:36 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-25  5:30 [Qemu-devel] [PATCH v2 1/2] hw/arm: check fw_cfg return value before using it Hongbo Zhang
2018-07-25  5:30 ` [Qemu-devel] [PATCH v2 2/2] hw/arm: Add Arm Enterprise machine type Hongbo Zhang
2018-07-25  7:20   ` Shannon Zhao
2018-07-25  8:37     ` Hongbo Zhang
2018-07-25  8:48   ` Daniel P. Berrangé
2018-07-25  9:01     ` Ard Biesheuvel
2018-07-25  9:09       ` Hongbo Zhang
2018-07-25  9:13         ` Ard Biesheuvel
2018-07-25  9:17           ` Hongbo Zhang
2018-07-25  9:20             ` Ard Biesheuvel
2018-07-25  9:40               ` Andrew Jones
2018-07-25  9:47                 ` Ard Biesheuvel
2018-07-25 10:10                   ` Andrew Jones
2018-07-25 10:33                 ` Hongbo Zhang
2018-07-25 11:03                   ` Andrew Jones
2018-07-25  9:05     ` Hongbo Zhang
2018-07-25  9:18       ` Daniel P. Berrangé
2018-07-25  9:43         ` Hongbo Zhang
2018-07-25  9:54   ` Andrew Jones
2018-07-25 10:22     ` Hongbo Zhang
2018-07-25 10:53       ` Dr. David Alan Gilbert
2018-07-26  7:35         ` Hongbo Zhang
2018-07-26  7:44           ` Ard Biesheuvel
2018-07-26  9:19             ` Peter Maydell
2018-07-25 11:26       ` Andrew Jones
2018-07-26  9:22         ` Hongbo Zhang
2018-07-26 10:28           ` Andrew Jones
2018-07-26 10:35             ` Ard Biesheuvel
2018-07-26 11:11               ` Andrew Jones
2018-07-26 11:15                 ` Ard Biesheuvel
2018-07-26 11:41                   ` Andrew Jones
2018-07-26 12:10                     ` Peter Maydell
2018-07-26 12:35                       ` Andrew Jones
2018-07-26 12:43                         ` Peter Maydell
2018-07-27  6:31                           ` Hongbo Zhang
2018-08-03  9:21                           ` Hongbo Zhang
2018-08-03  9:23                             ` Peter Maydell
2018-08-03  9:26                               ` Ard Biesheuvel
2018-08-03  9:37                                 ` Andrew Jones
2018-08-03 13:44                                   ` Laszlo Ersek
2018-08-03 14:39                                     ` Andrew Jones
2018-08-03 14:50                                       ` Laszlo Ersek
2018-08-03  9:39                                 ` Peter Maydell
2018-08-03  9:52                                   ` Hongbo Zhang
2018-07-25 10:46     ` Hongbo Zhang
2018-07-25 11:44       ` Andrew Jones
2018-07-25 12:19         ` Peter Maydell
2018-07-25 12:29           ` Ard Biesheuvel
2018-07-25 12:36             ` Peter Maydell
2018-07-25 12:57             ` Andrew Jones
2018-07-25 12:47           ` Daniel P. Berrangé
2018-07-25 12:59             ` Andrew Jones
2018-07-25 13:03               ` Ard Biesheuvel
2018-07-25 13:38                 ` Andrew Jones
2018-07-25 13:46                   ` Ard Biesheuvel
2018-07-25 14:08                     ` Andrew Jones
2018-07-26  9:46                       ` Hongbo Zhang
2018-07-26 10:33                         ` Andrew Jones
2018-07-26 10:27           ` Hongbo Zhang
2018-07-26 10:17         ` Hongbo Zhang
2018-07-26 10:46           ` Andrew Jones
2018-07-26 10:52             ` Peter Maydell
2018-07-26 10:56               ` Ard Biesheuvel
2018-07-26 11:13                 ` Andrew Jones
2018-07-26 12:23                   ` Laszlo Ersek
2018-07-26 12:49                     ` Daniel P. Berrangé
2018-07-27  9:30                       ` Hongbo Zhang
2018-07-25 10:50     ` Dr. David Alan Gilbert
2018-07-25 11:36       ` Andrew Jones
2018-07-25 16:15         ` Igor Mammedov
2018-07-26  9:55           ` Hongbo Zhang
2018-07-26 10:59             ` Andrew Jones
2018-08-17 13:37   ` Peter Maydell
2018-08-29  9:17     ` Hongbo Zhang
2018-08-29 13:42       ` Andrew Jones
2018-08-30  7:07         ` Hongbo Zhang
2018-08-30  8:31           ` Leif Lindholm
2018-08-30  8:39             ` Peter Maydell
2018-08-30 10:02               ` Leif Lindholm
2018-08-30 13:29                 ` Ard Biesheuvel [this message]
2018-08-30 13:52                   ` Leif Lindholm
2018-08-30 16:36                   ` Peter Maydell
2018-08-30 16:43                     ` Ard Biesheuvel
2018-08-31  7:20                   ` Hongbo Zhang
2018-08-31  8:42                     ` Andrew Jones
2018-08-31 11:50                       ` Hongbo Zhang
2018-09-05 10:08                   ` Hongbo Zhang
2018-09-05 12:02                     ` Andrew Jones
2018-09-05 14:09                       ` Hongbo Zhang
2018-09-05 15:00                         ` Andrew Jones
2018-09-09 10:29                           ` Hongbo Zhang
2018-07-25  9:00 ` [Qemu-devel] [PATCH v2 1/2] hw/arm: check fw_cfg return value before using it Peter Maydell
2018-07-25  9:22   ` Hongbo Zhang
2018-07-30 18:07 ` Peter Maydell
2018-08-01  9:57   ` Hongbo Zhang

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='CAKv+Gu9r+1OBOSUBW_KpDEEoKyc=iwW4zVEe04-_JUnJtSGupQ@mail.gmail.com' \
    --to=ard.biesheuvel@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=drjones@redhat.com \
    --cc=hongbo.zhang@linaro.org \
    --cc=leif.lindholm@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=radoslaw.biernacki@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.