qtest/riscv-iommu-test: add init queues test
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Wed, 16 Oct 2024 20:40:35 +0000 (17:40 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 31 Oct 2024 03:51:24 +0000 (13:51 +1000)
commitd4f7804bac1bc67d49c78477baae36d070cd85d1
tree1b349e4e69f452c5a91c3219938f8c451e4ab9e2
parenta7aa525b93c3f7a847cd2185b71aef97a17ec3d5
qtest/riscv-iommu-test: add init queues test

Add an additional test to further exercise the IOMMU where we attempt to
initialize the command, fault and page-request queues.

These steps are taken from chapter 6.2 of the RISC-V IOMMU spec,
"Guidelines for initialization". It emulates what we expect from the
software/OS when initializing the IOMMU.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20241016204038.649340-12-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
tests/qtest/libqos/riscv-iommu.h
tests/qtest/riscv-iommu-test.c