[Intel-xe] [PATCH 1/5] drm/xe: Introduce new selftests framework

Luis Chamberlain mcgrof at kernel.org
Tue Mar 21 18:59:03 UTC 2023


On Fri, Mar 17, 2023 at 09:26:15AM -0700, Lucas De Marchi wrote:
> linux-modules recently started using kdevops
> (https://github.com/mcgrof/kdevops) for testing. I didn't have time yet
> to give it a deeper look yet, but it's something we could think about.
> Adding Luis here. Maybe he has more input on this. Or a demo recorded he
> can point to.

I have live demo scheduled next week March 29 at 9am PST. It will cover
mostly what is *already* supported, but I can give hints as to how to
extend things further. Although initial support for kernel selftests is
present, adding kunit tests is pretty trivial.

PCI-passthrough is also supported, it generates dynamic kconfig content
based on your target system. Ie, it will scrape your lspci output and
then convert things into kconfig like language so you can pick and
choose what you want to PCI-passthrough onto a guest. So if you wanted
to test kunit-live and optionally kunit-mock both could be done. I'd
just make each a new make target.

make kunit-drm-mock-xe
make kunit-drm-live-xe

For instance could be targets.

The PCI passthrough documentation:

https://github.com/mcgrof/kdevops/blob/master/docs/libvirt-pcie-passthrough.md

If anyone wants to attend next week's demo let me know. Since it will be
focused on what we support already it will cover mostly fstests, blktests,
selftests, and CXL support.

  Luis


More information about the Intel-xe mailing list