public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Marcin Juszkiewicz" <marcin.juszkiewicz@linaro.org>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: devel@edk2.groups.io, Leif Lindholm <quic_llindhol@quicinc.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Sami Mujawar <sami.mujawar@arm.com>
Subject: Re: [edk2-devel] [PATCH edk2-platforms 2/2] SbsaQemu: set CPU model in SMBIOS
Date: Fri, 12 Jul 2024 12:58:20 +0200	[thread overview]
Message-ID: <1983882b-4d38-48f0-840b-d1551164c203@linaro.org> (raw)
In-Reply-To: <CAMj1kXFtCUHWEN32Ag8H-CUtb+hEgp2h=t5zzrVKXiQGxomqjw@mail.gmail.com>

On 12.07.2024 12:01, Ard Biesheuvel wrote:
>> SbsaQemu platform have several cpu models available. Since start it
>> reported "arm-virt" one in SMBIOS instead of real one.
>>
>> This change replaces it with the real cpu model like Cortex-A57,
>> Neoverse-N2 etc.
>>
>> Requires change in EDK2 to make PcdProcessorVersion dynamic.
>>
>> Signed-off-by: Marcin Juszkiewicz<marcin.juszkiewicz@linaro.org>
> I am going to make the same remark as I did before in a different
> context: how is it guaranteed that the code that sets the PCD executes
> before the code that consumes it?
> 
> Making PCDs dynamic is usually not the solution here, unless they are
> set in the PEI phase and consumed in the DXE phase or after.
> 
> The EFI SMBIOS protocol has an 'update string' method that you can
> call from a platform driver. That might be a better fit here, and the
> PCD can remain fixed, and carry a fallback default value.

Thanks. Will take a look.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119910): https://edk2.groups.io/g/devel/message/119910
Mute This Topic: https://groups.io/mt/107179083/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2024-07-12 10:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-12  9:23 [edk2-devel] [PATCH 0/2] Set CPU model in SMBIOS Marcin Juszkiewicz
2024-07-12  9:23 ` [edk2-devel] [PATCH 1/2] ArmPkg: make PcdProcessorVersion dynamic Marcin Juszkiewicz
2024-07-12  9:23 ` [edk2-devel] [PATCH edk2-platforms 2/2] SbsaQemu: set CPU model in SMBIOS Marcin Juszkiewicz
2024-07-12 10:01   ` Ard Biesheuvel
2024-07-12 10:58     ` Marcin Juszkiewicz [this message]
2024-07-15  3:24     ` Nhi Pham via groups.io
2024-07-15  8:24       ` Ard Biesheuvel

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-list 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=1983882b-4d38-48f0-840b-d1551164c203@linaro.org \
    --to=devel@edk2.groups.io \
    /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