Running IGT tool

I am trying to run IGT tool on Intel KBL NUC but all test cases are failing with below error

shiva@shiva /usr/libexec/igt-gpu-tools $ ./i915_query
IGT-Version: 1.23-NO-GIT (x86_64) (Linux: 5.0.9-741.native x86_64)
Test requirement not met in function drm_open_driver, file …/lib/drmtest.c:371:
Test requirement: !(fd<0)
No known gpu found for chipset flags 0x1 (intel)
Last errno: 2, No such file or directory
Subtest query-garbage: SKIP
Subtest query-garbage-items: SKIP
Subtest query-topology-kernel-writes: SKIP
Subtest query-topology-unsupported: SKIP
Subtest query-topology-coherent-slice-mask: SKIP
Subtest query-topology-matches-eu-total: SKIP
Subtest query-topology-known-pci-ids: SKIP

before running test i had executed below steps
systemctl | grep -i getty

systemctl | grep -i gdm

sudo systemctl stop serial-getty@ttyS0.service

sudo systemctl disable serial-getty@ttyS0.service

sudo systemctl stop getty.target

sudo systemctl stop gdm

sudo systemctl stop gdm.service

sudo systemctl stop gdm.path

sudo systemctl disable gdm.service

sudo systemctl disable gdm.path

I get:

$ sudo /usr/libexec/igt-gpu-tools/i915_query 
IGT-Version: 1.23-NO-GIT (x86_64) (Linux: 5.1.7-776.native x86_64)
Subtest query-garbage: SUCCESS (0.000s)
Subtest query-garbage-items: SUCCESS (0.000s)
Subtest query-topology-kernel-writes: SUCCESS (0.000s)
Test requirement not met in function __real_main480, file ../tests/i915_query.c:505:
Test requirement: !query_topology_supported(fd)
Subtest query-topology-unsupported: SKIP (0.000s)
Subtest query-topology-coherent-slice-mask: SUCCESS (0.000s)
Subtest query-topology-matches-eu-total: SUCCESS (0.000s)
Subtest query-topology-known-pci-ids: SUCCESS (0.000s)

As non-root, I get Operation not permitted errors, as is to be expected.

I am trying to run IGT tool on intel KBL NUC but its failed with below error

shiva@shiva /usr/libexec/igt-gpu-tools $ sudo ./kms_rotation_crc
IGT-Version: 1.23-NO-GIT (x86_64) (Linux: 5.0.9-741.native x86_64)
Test requirement not met in function igt_device_set_master, file …/lib/igt_device.c:52:
Test requirement: __igt_device_set_master(fd) == 0
Can’t become DRM master, please check if no other DRM client is running.
Subtest primary-rotation-90: SKIP
Subtest primary-rotation-180: SKIP
Subtest primary-rotation-270: SKIP
Subtest sprite-rotation-90: SKIP
Subtest sprite-rotation-180: SKIP
Subtest sprite-rotation-270: SKIP
Subtest cursor-rotation-180: SKIP
Subtest sprite-rotation-90-pos-100-0: SKIP
Subtest bad-pixel-format: SKIP
Subtest bad-tiling: SKIP
Subtest primary-x-tiled-reflect-x-0: SKIP
Subtest primary-x-tiled-reflect-x-180: SKIP
Subtest primary-y-tiled-reflect-x-0: SKIP
Subtest primary-y-tiled-reflect-x-90: SKIP
Subtest primary-y-tiled-reflect-x-180: SKIP
Subtest primary-y-tiled-reflect-x-270: SKIP
Subtest primary-yf-tiled-reflect-x-0: SKIP
Subtest primary-yf-tiled-reflect-x-90: SKIP
Subtest primary-yf-tiled-reflect-x-180: SKIP
Subtest primary-yf-tiled-reflect-x-270: SKIP
Subtest exhaust-fences: SKIP

before running i had executed below steps
systemctl | grep -i getty

systemctl | grep -i gdm

sudo systemctl stop serial-getty@ttyS0.service

sudo systemctl disable serial-getty@ttyS0.service

sudo systemctl stop getty.target

sudo systemctl stop gdm

sudo systemctl stop gdm.service

sudo systemctl stop gdm.path

sudo systemctl disable gdm.service

sudo systemctl disable gdm.path

How can i check who is holding DRM master ?

Thanks,
Shiva

@shivasku I’ve merged the second thread created on IGT into this one.

Do we have any proper procedure to run igt-gpu-tools on bare metal clear Linux ?

there are multiple issues are observed, sometimes I am getting “No known GPU found” and sometimes “Can’t become DRM master, please check if no other DRM client is running

Installed version: 30440
sudo /usr/libexec/igt-gpu-tools/i915_query
IGT-Version: 1.23-NO-GIT (x86_64) (Linux: 5.1.17-796.native x86_64)
Test requirement not met in function drm_open_driver, file …/lib/drmtest.c:371:
Test requirement: !(fd<0)
No known gpu found for chipset flags 0x1 (intel)
Last errno: 2, No such file or directory
Subtest query-garbage: SKIP
Subtest query-garbage-items: SKIP
Subtest query-topology-kernel-writes: SKIP
Subtest query-topology-unsupported: SKIP
Subtest query-topology-coherent-slice-mask: SKIP
Subtest query-topology-matches-eu-total: SKIP
Subtest query-topology-known-pci-ids: SKIP

This seems an issue with the tool, the hardware, or the kernel driver - Nothing particularly about ClearLinux from a quick glance that could influence this… We’ll need to poke some other teams about this issue and see if they can help - this may take a bit.