Closed hrw closed 7 months ago
Hello @hrw,
Thanks for the query, it did lead to a good discussion on our side.
For the main intent of your query "When S-EL2 is enabled, how the stage1 and stage 2 SMMU requirements are checked in BSA-ACS"
BSA does not mandate either Stage 1 or Stage 2 but does mandate certain requirements if these are supported. If Secure-EL2 is implemented then an SMMUv3.2 is supported, which implies that both SMMU Stage 1 and Stage 2 are implemented. In this case, rule B_SMMU_21 applies for BSA.
Also, the BSA test for B_SMMU_08/18, should also include the SMMU version check when PE supports S-EL2.
Thanks, Chetan
Hello @hrw,
Required changes as discussed above are merged in the ACS.
Thanks, ACS team
sbsa-ref with neoverse-n2 on recent QEMU:
*** Starting SMMU tests ***
Operating System View:
301 : All SMMUs have same Arch Revision : Result: PASS
302 : Check SMMU Granule Support : Result: PASS
303 : Check SMMU Large Physical Addr Support
Checkpoint -- 1 : Result: SKIPPED
304 : Check SMMU S-EL2 & stage1 support : Result: PASS
Hypervisor View:
352 : Check SMMU S-EL2 & stage2 support
SMMUv3.1 not providing Stage2 functionality
Failed on PE - 0
Checkpoint -- 2 : Result: FAIL
354 : SMMUv3 Integration compliance : Result: PASS
One or more SMMU tests failed or were skipped.
Emulated SMMU v3.1 has either Stage1 or Stage2 but not both at same time. It is one of remaining blockers for SBSA level 3 compliance (looking at (S)BSA ACS test results).
Hi @hrw,
Please let us know if any further help required for this issue from ACS team.
Thanks, ACS team
When Secure-EL2 is implemented, B_SMMU_08, B_SMMU_16, B_SMMU_17, B_SMMU_18 tests (304, 352) are skipped.
For B_SMMU_08 BSA 1.0C says:
And B_SMMU_16:
B_SMMU_17:
B_SMMU_18:
I start to wonder which stage functionality is required when Secure-EL2 is implemented.
Would say that stage1 due to _08 and stage2 due to _16/17 but ACS do not check for any of them when SEL2 is enabled.