Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/vkms: Update testing with IGT IGT_DEVICE

VKMS is no longer in the platform bus, instead, it is in the faux bus.

In addition, when present, IGT picks hardware drivers instead of virtual
drivers, like VKMS or vgem, if they are not forced.

Update the documentation to use IGT_FORCE_DRIVER instead of IGT_DEVICE.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Link: https://lore.kernel.org/r/20251024110014.4614-2-jose.exposito89@gmail.com
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>

authored by

José Expósito and committed by
Louis Chauvet
b63300ac edcdd000

+8 -11
+8 -11
Documentation/gpu/vkms.rst
··· 159 159 160 160 sudo systemctl isolate graphical.target 161 161 162 - Once you are in text only mode, you can run tests using the --device switch 163 - or IGT_DEVICE variable to specify the device filter for the driver we want 164 - to test. IGT_DEVICE can also be used with the run-tests.sh script to run the 162 + Once you are in text only mode, you can run tests using the IGT_FORCE_DRIVER 163 + variable to specify the device filter for the driver we want to test. 164 + IGT_FORCE_DRIVER can also be used with the run-tests.sh script to run the 165 165 tests for a specific driver:: 166 166 167 - sudo ./build/tests/<name of test> --device "sys:/sys/devices/platform/vkms" 168 - sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/<name of test> 169 - sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./scripts/run-tests.sh -t <name of test> 167 + sudo IGT_FORCE_DRIVER="vkms" ./build/tests/<name of test> 168 + sudo IGT_FORCE_DRIVER="vkms" ./scripts/run-tests.sh -t <name of test> 170 169 171 170 For example, to test the functionality of the writeback library, 172 171 we can run the kms_writeback test:: 173 172 174 - sudo ./build/tests/kms_writeback --device "sys:/sys/devices/platform/vkms" 175 - sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/kms_writeback 176 - sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./scripts/run-tests.sh -t kms_writeback 173 + sudo IGT_FORCE_DRIVER="vkms" ./build/tests/kms_writeback 174 + sudo IGT_FORCE_DRIVER="vkms" ./scripts/run-tests.sh -t kms_writeback 177 175 178 176 You can also run subtests if you do not want to run the entire test:: 179 177 180 - sudo ./build/tests/kms_flip --run-subtest basic-plain-flip --device "sys:/sys/devices/platform/vkms" 181 - sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/kms_flip --run-subtest basic-plain-flip 178 + sudo IGT_FORCE_DRIVER="vkms" ./build/tests/kms_flip --run-subtest basic-plain-flip 182 179 183 180 Testing With KUnit 184 181 ==================