VKMS configfs tests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest41 patches 12 repliesIn review
- v341 patches 35 repliesSuperseded
- v243 patches 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 39 patches | 40 replies | Superseded |
Changes in v4 from the cover letter
- Rebased on the latest master branch
- Added reviewed-by tags (Louis)
- Added missing "static" to some consts (Kamil)
- Updated copyright year (Kamil)
- Using #include <limits.h> instead of <linux/limits.h> (Kamil)
- Sorted alphabetically includes (Kamil)
- Dropped VKMS tests from the testplan (Kamil and Karthik)
- Link to v3: https://lore.kernel.org/igt-dev/[email protected]/
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/41 | lib/drmtest: Add VKMS as a known driver typelib/ lib/ | +26 | 2 replies | |
| 2/41 | lib/vkms: Add minimal VKMS library and test device default fileslib/ lib/ lib/ +4 more | +388 | 5 replies | |
| 3/41 | lib/vkms: Allow to enable/disable VKMS deviceslib/ lib/ tests/ | +123 | 0 replies | |
| 4/41 | tests/vkms_configfs: Test device invalid valuestests/ | +60 | 0 replies | |
| 5/41 | lib/vkms: Test plane default fileslib/ lib/ tests/ | +113 | 2 replies | |
| 6/41 | lib/vkms: Test plane default valueslib/ lib/ tests/ | +71 | 0 replies | |
| 7/41 | lib/vkms: Test plane invalid valueslib/ lib/ tests/ | +74 | 0 replies | |
| 8/41 | tests/vkms_configfs: Test plane valid valuestests/ | +31 | 0 replies | |
| 9/41 | lib/vkms: Test CRTC default fileslib/ lib/ tests/ | +60 | 0 replies | |
| 10/41 | lib/vkms: Test CRTC default valueslib/ lib/ tests/ | +56 | 0 replies | |
| 11/41 | lib/vkms: Test CRTC invalid valueslib/ lib/ tests/ | +46 | 0 replies | |
| 12/41 | tests/vkms_configfs: Test CRTC valid valuestests/ | +25 | 0 replies | |
| 13/41 | lib/vkms: Test encoder default fileslib/ lib/ tests/ | +60 | 0 replies | |
| 14/41 | lib/vkms: Test connector default fileslib/ lib/ tests/ | +64 | 0 replies | |
| 15/41 | lib/vkms: Test connector default valueslib/ lib/ tests/ | +57 | 0 replies | |
| 16/41 | lib/vkms: Test connector invalid valueslib/ lib/ tests/ | +76 | 2 replies | |
| 17/41 | tests/vkms_configfs: Test connector valid valuestests/ | +31 | 0 replies | |
| 18/41 | lib/vkms: Test attaching planes to CRTCslib/ lib/ tests/ | +204 | 0 replies | |
| 19/41 | lib/vkms: Test attaching encoders to CRTCslib/ lib/ tests/ | +118 | 0 replies | |
| 20/41 | lib/vkms: Test attaching connectors to encoderslib/ lib/ tests/ | +127 | 0 replies | |
| 21/41 | lib/igt_device_scan: Allow to find device by sysnamelib/ lib/ | +24 | 0 replies | |
| 22/41 | tests/vkms_configfs: Test enablement without pipeline itemstests/ | +39 | 0 replies | |
| 23/41 | lib/vkms: Create VKMS device from static configlib/ lib/ tests/ | +171 | 0 replies | |
| 24/41 | tests/vkms_configfs: Test adding too many planestests/ | +57 | 0 replies | |
| 25/41 | tests/vkms_configfs: Test not adding a primary planetests/ | +51 | 0 replies | |
| 26/41 | tests/vkms_configfs: Test adding multiple primary planestests/ | +56 | 0 replies | |
| 27/41 | tests/vkms_configfs: Test adding multiple cursor planestests/ | +61 | 0 replies | |
| 28/41 | tests/vkms_configfs: Test adding a plane without possible CRTCstests/ | +51 | 0 replies | |
| 29/41 | tests/vkms_configfs: Test enabling a device without CRTCstests/ | +42 | 0 replies | |
| 30/41 | tests/vkms_configfs: Test enabling a device with too many CRTCstests/ | +54 | 0 replies | |
| 31/41 | tests/vkms_configfs: Test enabling a device without encoderstests/ | +42 | 0 replies | |
| 32/41 | tests/vkms_configfs: Test enabling a device with too many encoderstests/ | +55 | 0 replies | |
| 33/41 | tests/vkms_configfs: Test adding an encoder without possible CRTCstests/ | +44 | 0 replies | |
| 34/41 | tests/vkms_configfs: Test adding a CRTC without encoderstests/ | +51 | 0 replies | |
| 35/41 | tests/vkms_configfs: Test enabling a device without connectorstests/ | +39 | 0 replies | |
| 36/41 | tests/vkms_configfs: Test enabling a device with too many connectorstests/ | +52 | 0 replies | |
| 37/41 | lib/vkms: Test changing enabled device planeslib/ lib/ tests/ | +168 | 0 replies | |
| 38/41 | lib/vkms: Test changing enabled device CRTCslib/ lib/ tests/ | +68 | 0 replies | |
| 39/41 | lib/vkms: Test changing enabled device encoderslib/ lib/ tests/ | +75 | 0 replies | |
| 40/41 | lib/vkms: Test changing enabled device connectorslib/ lib/ tests/ | +77 | 0 replies | |
| 41/41 | tests/vkms_configfs: Test connector hot-plugtests/ | +84 | 0 replies |
Reviews trailers per patch
All 41 patches have a Reviewed-by or Acked-by.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH i-g-t v4 00/41] VKMS configfs tests
Hi everyone,
This series add tests for the VKMS + configfs work Louis Chauvet and I are doing in the kernel.
This new functionality allows to configure one or more VKMS instances without having to reload the driver using configfs.
For more details, have a look to the kernel patchset and the documentation in "vkms.rst" (not merged yet). [1]
There was a previous attempt to implement this tests [2] and I kept copyright were required.
Massive thank you to Louis Chauvet who is doing a fenomenal work reviewing this (very long) series of patches.
Best wishes,
José Expósito
[1] https://lore.kernel.org/dri-devel/[email protected]/
[2] https://lists.freedesktop.org/archives/igt-dev/2023-September/060717.html
Changes in v4:
- Rebased on the latest master branch
- Added reviewed-by tags (Louis)
- Added missing "static" to some consts (Kamil)
- Updated copyright year (Kamil)
- Using #include <limits.h> instead of <linux/limits.h> (Kamil)
- Sorted alphabetically includes (Kamil)
- Dropped VKMS tests from the testplan (Kamil and Karthik)
- Link to v3: https://lore.kernel.org/igt-dev/[email protected]/
Changes in v3:
- Rebased on the latest master branch
- Link to v2: https://lore.kernel.org/igt-dev/[email protected]/
Changes in v2:
- Applied review comments by Louis Chauvet:
- Added missing references to DRIVER_VKMS in drmtest.c
- Loading vkms with drm_load_module(DRIVER_VKMS) in igt_fixture
- Documented igt_is_mountpoint()
- Checked the return value of snprintf() and fprintf()
- Removed unnecessary empty items ({ {} }) in items in igt_vkms_config_t
- Added new tests testing the valid values for planes, CRTCs and connectors
- Remove code duplication generating configfs paths by adding helpers
- Using udev instead of drmGetDevices() to find VKMS devices in a new patch "lib/igt_device_scan: Allow to find device by name". This change is required to support the faux bus. See:
https://lists.freedesktop.org/archives/igt-dev/2025-February/086510.html
- Rebased on the latest "master"
- Link to v1: https://lists.freedesktop.org/archives/igt-dev/2025-February/086071.html
José Expósito (41):
lib/drmtest: Add VKMS as a known driver type
lib/vkms: Add minimal VKMS library and test device default files lib/vkms: Allow to enable/disable VKMS devices tests/vkms_configfs: Test device invalid values
lib/vkms: Test plane default files
lib/vkms: Test plane default values
lib/vkms: Test plane invalid values
tests/vkms_configfs: Test plane valid values
lib/vkms: Test CRTC default files
lib/vkms: Test CRTC default values
lib/vkms: Test CRTC invalid values
tests/vkms_configfs: Test CRTC valid values
lib/vkms: Test encoder default files
lib/vkms: Test connector default files
lib/vkms: Test connector default values
lib/vkms: Test connector invalid values tests/vkms_configfs: Test connector valid values lib/vkms: Test attaching planes to CRTCs
lib/vkms: Test attaching encoders to CRTCs
lib/vkms: Test attaching connectors to encoders lib/igt_device_scan: Allow to find device by sysname tests/vkms_configfs: Test enablement without pipeline items lib/vkms: Create VKMS device from static config tests/vkms_configfs: Test adding too many planes tests/vkms_configfs: Test not adding a primary plane tests/vkms_configfs: Test adding multiple primary planes tests/vkms_configfs: Test adding multiple cursor planes tests/vkms_configfs: Test adding a plane without possible CRTCs tests/vkms_configfs: Test enabling a device without CRTCs tests/vkms_configfs: Test enabling a device with too many CRTCs tests/vkms_configfs: Test enabling a device without encoders tests/vkms_configfs: Test enabling a device with too many encoders tests/vkms_configfs: Test adding an encoder without possible CRTCs tests/vkms_configfs: Test adding a CRTC without encoders tests/vkms_configfs: Test enabling a device without connectors tests/vkms_configfs: Test enabling a device with too many connectors lib/vkms: Test changing enabled device planes
lib/vkms: Test changing enabled device CRTCs
lib/vkms: Test changing enabled device encoders
lib/vkms: Test changing enabled device connectors tests/vkms_configfs: Test connector hot-plug
lib/drmtest.c | 21 + lib/drmtest.h | 6 +- lib/igt_device_scan.c | 22 + lib/igt_device_scan.h | 2 + lib/igt_vkms.c | 1003 ++++++++++++++++++ lib/igt_vkms.h | 132 +++ lib/meson.build | 1 + meson.build | 8 + tests/meson.build | 2 + tests/vkms/meson.build | 13 + tests/vkms/vkms_configfs.c | 1962 ++++++++++++++++++++++++++++++++++++ 11 files changed, 3171 insertions(+), 1 deletion(-) create mode 100644 lib/igt_vkms.c create mode 100644 lib/igt_vkms.h create mode 100644 tests/vkms/meson.build create mode 100644 tests/vkms/vkms_configfs.c
base-commit: dfce662f38d1e272363d37a9cfbcbfee379fa851
Signature · 1 line
2.50.1