Skip to content

Commit b63300a

Browse files
JoseExpositoFomys
authored andcommitted
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>
1 parent edcdd00 commit b63300a

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

Documentation/gpu/vkms.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,26 +159,23 @@ To return to graphical mode, do::
159159

160160
sudo systemctl isolate graphical.target
161161

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
165165
tests for a specific driver::
166166

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>
170169

171170
For example, to test the functionality of the writeback library,
172171
we can run the kms_writeback test::
173172

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
177175

178176
You can also run subtests if you do not want to run the entire test::
179177

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
182179

183180
Testing With KUnit
184181
==================

0 commit comments

Comments
 (0)