[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 20/20] tests/functional: extend test_aarch64_virt with vulkan
From: |
Alex Bennée |
Subject: |
Re: [PATCH 20/20] tests/functional: extend test_aarch64_virt with vulkan test |
Date: |
Thu, 12 Dec 2024 12:32:04 +0000 |
User-agent: |
mu4e 1.12.7; emacs 29.4 |
Thomas Huth <thuth@redhat.com> writes:
> On 10/12/2024 21.43, Alex Bennée wrote:
>> Now we have virtio-gpu Vulkan support lets add a test for it.
>> Currently this is using images build by buildroot:
>> https://lists.buildroot.org/pipermail/buildroot/2024-December/768196.html
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
<snip>
>> + self.vm.set_console()
>> + kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
>> + 'console=ttyAMA0 root=/dev/vda')
>> + self.require_accelerator("tcg")
>
> Same, please move to the beginning since it can skip the test.
>
>> + self.vm.add_args("-accel", "tcg")
Actually this could run under KVM if we have it for Aarch64. Can we
represent that?
>> + self.vm.add_args("-cpu", "neoverse-v1,pauth-impdef=on")
I guess in that case we'd use -cpu host as well.
>> + self.vm.add_args("-machine",
>> + "virt,virtualization=on,"
>> + "gic-version=max",
>> + '-kernel', kernel_path,
>> + '-append', kernel_command_line)
>> + self.vm.add_args("-smp", "2", "-m", "2048")
>> + self.vm.add_args("-device",
>> "virtio-gpu-gl-pci,hostmem=4G,blob=on,venus=on")
>> + self.vm.add_args("-display", "egl-headless")
>> + self.vm.add_args("-display", "dbus,gl=on")
>> + self.vm.add_args("-device", "virtio-blk-device,drive=hd0")
>> + self.vm.add_args("-blockdev",
>> +
>> "driver=raw,file.driver=file,node-name=hd0,read-only=on,"
>> + f"file.filename={image_path}")
>> + self.vm.add_args("--snapshot")
>
> Any reason for using double dashes just here and not for the other commands?
>
>> + try:
>> + self.vm.launch()
>> + except VMLaunchFailure as e:
>> + if "old virglrenderer, blob resources unsupported" in e.output:
>> + self.skipTest("No blob support for virtio-gpu")
>> + elif "old virglrenderer, venus unsupported" in e.output:
>> + self.skipTest("No venus support for virtio-gpu")
>> + else:
>> + self.log.info(f"un-handled launch failure: {e.output}")
>
> s/un-handled/unhandled/ ?
>
> Thomas
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [PATCH 08/20] tests/functional: update the ppc32 tuxrun tests, (continued)
- [PATCH 08/20] tests/functional: update the ppc32 tuxrun tests, Alex Bennée, 2024/12/10
- [PATCH 13/20] tests/functional: update the sparc64 tuxrun tests, Alex Bennée, 2024/12/10
- [PATCH 15/20] tests/functional/aarch64: add tests for FEAT_RME, Alex Bennée, 2024/12/10
- [PATCH 16/20] util/qemu-timer: fix indentation, Alex Bennée, 2024/12/10
- [PATCH 14/20] tests/functional: update the x86_64 tuxrun tests, Alex Bennée, 2024/12/10
- [PATCH 20/20] tests/functional: extend test_aarch64_virt with vulkan test, Alex Bennée, 2024/12/10
- [PATCH 19/20] tests/functional: remove hacky sleep from the tests, Alex Bennée, 2024/12/10
- [PATCH 17/20] tests/qtest: move clock_steps to after checks, Alex Bennée, 2024/12/10
- [PATCH 18/20] system/qtest: properly feedback results of clock_[step|set], Alex Bennée, 2024/12/10