Hi Varun,
One forthcoming feature in development that may prove useful in this space is support for the Errata Management specification (aka Errata ABI) that can be seen here https://developer.arm.com/Architectures/Secure%20Monitor%20Calling%20Convent...
Work is on going and support for this is hoped to be available later this year.
If you have other needs for other runtime interrogation of the EL3 image feel free to elaborate for discussion.
Joanna
From: Varun Wadekar vwadekar@nvidia.com Date: Thursday, 12 January 2023 at 09:40 To: Joanna Farley Joanna.Farley@arm.com, Sandrine Bailleux Sandrine.Bailleux@arm.com Cc: tfa-lts@lists.trustedfirmware.org tfa-lts@lists.trustedfirmware.org, tf-a@lists.trustedfirmware.org tf-a@lists.trustedfirmware.org Subject: RE: [TF-A] Re: Query BL31 version from NWd Hi Joanna,
The use case right now is to identify and log the firmware version. Eventually, this information will be used to ensure that the platform is using a feature/errata/bug fix.
-Varun
From: Joanna Farley Joanna.Farley@arm.com Sent: Wednesday, 11 January 2023 3:03 PM To: Varun Wadekar vwadekar@nvidia.com; Sandrine Bailleux Sandrine.Bailleux@arm.com Cc: tfa-lts@lists.trustedfirmware.org; tf-a@lists.trustedfirmware.org Subject: Re: [TF-A] Re: Query BL31 version from NWd
External email: Use caution opening links or attachments
Hi Varun,
Can you allude to the use case here you need this information for? Just so we can flush out any other information needed. With the reference of LTS I was thinking the platform was trying to find out if a security fix is supported or a hardware erratum mitigation was available. Is that the type of use case we are talking about here? Anything else?
Thanks
Joanna
From: Varun Wadekar via TF-A <tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org> Date: Wednesday, 11 January 2023 at 14:33 To: Sandrine Bailleux <Sandrine.Bailleux@arm.commailto:Sandrine.Bailleux@arm.com> Cc: tfa-lts@lists.trustedfirmware.orgmailto:tfa-lts@lists.trustedfirmware.org <tfa-lts@lists.trustedfirmware.orgmailto:tfa-lts@lists.trustedfirmware.org>, tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org> Subject: [TF-A] Re: Query BL31 version from NWd Hi Sandrine,
This is a good start. Can you help define the SMC FID and the return value for this use case?
Please consider the requirement to return a 3-digit value (x.y.z) to support LTS versions too.
Thanks.
-----Original Message----- From: Sandrine Bailleux <sandrine.bailleux@arm.commailto:sandrine.bailleux@arm.com> Sent: Wednesday, 11 January 2023 8:50 AM To: Varun Wadekar <vwadekar@nvidia.commailto:vwadekar@nvidia.com> Cc: tfa-lts@lists.trustedfirmware.orgmailto:tfa-lts@lists.trustedfirmware.org; tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org Subject: Re: [TF-A] Query BL31 version from NWd
External email: Use caution opening links or attachments
Hello Varun,
Happy New Year to you too!
This sounds like a reasonable idea to me.
JFYI we introduced an interface to query TF-A semantic version in the following patch:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.truste...https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.trustedfirmware.org%2FTF-A%2Ftrusted-firmware-a.git%2Fcommit%2F%3Fid%3Ddddf4283b043ad0a81d27bd5bb2f0c647c511e11&data=05%7C01%7Cvwadekar%40nvidia.com%7Ce9a3d0e30c954499faeb08daf3e5039b%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638090462192025132%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=GN8g%2Bs5gHTuPzo5F7a0v1I6jfs1QbX4l%2FVmF%2Fh%2BB3gA%3D&reserved=0
This is available for any BLx image, not just BL31. At the time, it was just meant to be used internally within TF-A so it's missing the SMC handler to return this information to normal world.
Best regards, Sandrine
On 1/10/23 23:42, Varun Wadekar via TF-A wrote:
Hi,
Happy new year!
For NVIDIA Tegra platforms, we need the capability to query the BL31 version (e.g. 2.7, 2.8, 2.8.x) from the NWd at runtime. I could not find an FID that returns this value.
I propose we introduce a new runtime service in bl31 that returns the version_string to the NWd to support this requirement.
Thoughts?
-Varun
-- TF-A mailing list -- tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.orgmailto:tf-a-leave@lists.trustedfirmware.org