Skip to content

Conversation

@gontumukkala-balaji
Copy link
Contributor

Change-Id: I6c2d43af40b1c76f835decf790e06151bf82d657

* Moved `ID_AA64ZFR0_EL1.SVEver` check before Armv9 family check to avoid false failures
* Validates `SVEver > 0` directly to confirm FEAT\_SVE2 or greater is present

Signed-off-by: Balaji Gontumukkala <balaji.gontumukkala@arm.com>
Change-Id: I6c2d43af40b1c76f835decf790e06151bf82d657
@chetan-rathore chetan-rathore merged commit 520bef0 into ARM-software:main Sep 4, 2025
13 checks passed
/* For Armv9, the ID_AA64ZFR0_EL1.SVEver, bits [3:0] value 0b0000 is not permitted */
/* ID_AA64ZFR0_EL1.SVEver > 0 indicates FEAT_SVE2 or grater is implemented*/
/* If PE implements SVE2, it's a pass. No need to check architecture family, as
* SVE2 is required from v9 onwards. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rewrite that comment.

ArmArm L.b, page A2-158:

FEAT_SVE2 is OPTIONAL from Armv9.0.

It is completely legal to have Armv9.0 cpu without any SVE. In such case ID_AA64ZFR0_EL1 register should not be present.

On the other side, BSA 1.2 mandates SVE2 for Armv9 cpus:

Implementation of SVE is optional. Implementation of SVE2 (FEAT_SVE2) is required for PEs that are based on the Armv9 architecture (see FEAT_SVE2 in [3]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test 16 ("Check SVE2 for v9 PE") skips when SMBIOS value is wrong

3 participants