On 3/9/26 10:48 AM, Alex Bennée wrote:
This extends the VBSA test to run the linux tests. The sysarch-acs
test suite does provide some pre-built images which is good because
the tests require a patched kernel. However due to the structure of
the image we need to jump one or two hoops to get something useful:

   - download and double decompress (zip then xz) the image
   - navigate grub to launch the Linux Execution Environment
   - shutdown the system once tests are done
   - extract the logs from the MSDOS file system and parse them

It does make the code a bit ugly but it works for me at least. So far
the subset of tests run is limited but that might be solved by adding
some more devices to the PCIe bus to exercise the SMMU behaviour.


If I recall correctly, all TF-A tests concerning SMMU are based on SMMUv3TestEngine device, which unfortunately has a proprietary interface. We would greatly benefit from all this is Arm published that as a specification, and this would remove all the needs for ad hoc SMMU testing. Or we could reverse engineer the interface from how tests exercise it and implement something similar in QEMU to run original Arm tests.

Regards,
Pierrick

Reply via email to