Bug 104779 - [IGT] igt@gvt_basic@invalid-placeholder-test *ERROR* i915 GVT-g loading failed due to Graphics virtualization is not yet supported with GuC submission
Summary: [IGT] igt@gvt_basic@invalid-placeholder-test *ERROR* i915 GVT-g loading faile...
Status: CLOSED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-24 22:55 UTC by Humberto Israel Perez Rodriguez
Modified: 2018-09-11 13:18 UTC (History)
3 users (show)

See Also:
i915 platform: KBL, SKL
i915 features: display/Other, firmware/guc


Attachments

Description Humberto Israel Perez Rodriguez 2018-01-24 22:55:23 UTC
Test case
===============================
igt@gvt_basic@invalid-placeholder-test

Description
===============================
Before to run case mentioned above, the i915 module is enable in the kernel, and after to run the same test case there is not i915 module loaded in the kernel causing that the following test cases that will be tested with piglit framework they will be marked as skip since there is not gpu found in the system.

Platforms affected :
- SKL
- KBL

firwmwares affected:
- guc version 9.33

Note : this test only affect with the system with the FW loaded.


stdout
================================
IGT-Version: 1.20-gb64c093 (x86_64) (Linux: 4.15.0-rc7-drm-intel-qa-ww2-commit-353fa2d+ x86_64)
Reloading i915 with enable_gvt=1

Test requirement not met in function __real_main29, file gvt_basic.c:34:
Test requirement: igt_gvt_load_module()
Last errno: 2, No such file or directory
Subtest invalid-placeholder-test: SKIP

environment
=================================
PIGLIT_SOURCE_DIR="/home/gfx/intel-graphics/intel-gpu-tools/piglit" PIGLIT_PLATFORM="mixed_glx_egl"


command
==================================
/home/gfx/intel-graphics/intel-gpu-tools/tests/gvt_basic --run-subtest invalid-placeholder-test 


dmesg
==================================
	
[  558.607193] Setting dangerous option enable_guc - tainting kernel
[  558.609931] [drm:intel_gvt_init [i915]] *ERROR* i915 GVT-g loading failed due to Graphics virtualization is not yet supported with GuC submission
[  558.683235] i915 0000:00:02.0: [drm:i915_driver_load [i915]] Device initialization failed (-5)
[  558.683240] i915 0000:00:02.0: Please file a bug at https://bugs.freedesktop.org/enter_bug.cgi?product=DRI against DRM/Intel providing the dmesg log by booting with drm.debug=0xf
[  558.683271] i915: probe of 0000:00:02.0 failed with error -5


kernel information
=================================
commit ef2011c6380601730d0083e77c386aaa2d8c6673
Author:     Chris Wilson <chris@chris-wilson.co.uk>
AuthorDate: Wed Jan 24 09:45:56 2018 +0000
Commit:     Chris Wilson <chris@chris-wilson.co.uk>
CommitDate: Wed Jan 24 09:45:56 2018 +0000

    drm-tip: 2018y-01m-24d-09h-45m-08s UTC integration manifest


graphic user space
===================================
Component: drm
    tag: libdrm-2.4.89-17-g1cc1774
    commit: 1cc17744b988106b4fe71ee9d3d17b651d6adb40

Component: cairo
    tag: 1.15.8-115-g1cbebaf
    commit: 1cbebafe89610329a252b4cc076cd2dccf6e56aa

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.21-31-gec7d716
    commit: ec7d71660694157af698741eac3764203bf338ec

Component: piglit
    tag: piglit-v1
    commit: 736496667329bf73a706aebec6f8287078df79ae



this will be represented in numbers like this :
===============================================
- Currently in KBL we have 1967 skip test cases and 1766 of them are because there is not gpu found in the system (88.78%) of the execution.

- Currently in SKL we have 3173 skip test cases and 1766 of them are because there is not gpu found in the system (55.65% of the execution)


QA contact : humberto.i.perez.rodriguez@intel.com
Comment 1 Chris Wilson 2018-01-24 23:04:48 UTC
It's not a bug in gvt_basic. And igt itself shouldn't be affected by the mere lack of i915.ko loaded before any test starts (we depend on igt loading i915.ko as required). You haven't actually reported the problem, so I presume it is just part of your test framework.
Comment 2 Humberto Israel Perez Rodriguez 2018-01-24 23:37:49 UTC
(In reply to Chris Wilson from comment #1)
> It's not a bug in gvt_basic. And igt itself shouldn't be affected by the
> mere lack of i915.ko loaded before any test starts (we depend on igt loading
> i915.ko as required). You haven't actually reported the problem, so I
> presume it is just part of your test framework.

Hi Chris

i am not sure if this is a bug for that reason i've reported here for a professional opinion, the the lack of i915.ko clearly affect to all other tests  running with piglit framework, for example there are two more tests that does the same :

case 1:
==============================
- igt@drv_module_reload@basic-no-display

stdout:
IGT-Version: 1.20-gb64c093 (x86_64) (Linux: 4.15.0-rc7-drm-intel-qa-ww2-commit-353fa2d+ x86_64)
Reloading i915 with disable_display=1

Subtest basic-no-display: SUCCESS (0.561s)

case 2:
==============================
- igt@drv_module_reload@basic-reload-inject

stdout:
IGT-Version: 1.20-gb64c093 (x86_64) (Linux: 4.15.0-rc7-drm-intel-qa-ww2-commit-353fa2d+ x86_64)
Reloading i915 with inject_load_failure=1

Subtest basic-reload-inject: SUCCESS (0.605s)


the affected test stdout is :
==============================
test case e.g : igt@kms_frontbuffer_tracking@fbc-2p-shrfb-fliptrack 	

IGT-Version: 1.20-gb64c093 (x86_64) (Linux: 4.15.0-rc7-drm-intel-qa-ww2-commit-353fa2d+ x86_64)
Test requirement not met in function drm_open_driver, file 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 fbc-2p-shrfb-fliptrack: SKIP



if there is not a but, could you explain how the mentioned tests are pass  and this test is not , please?
Comment 3 Chris Wilson 2018-01-25 07:38:52 UTC
igt will attempt to load all specified drm drivers if the first attempt to open the chipset fails (__open_driver() from drm_open_driver()). That behaviour is relied upon by igt (and exercised by CI). Look at the debug output and look at dmesg to see what is prevent the module load in that case.
Comment 4 Elizabeth 2018-01-26 21:42:14 UTC
This may be relevant, it's from a FF run in KBL:

[  474.059916] [drm:drm_atomic_state_default_clear] Clearing atomic state 00000000d430c48f
[  474.059925] [drm:__drm_atomic_state_free] Freeing atomic state 00000000d430c48f
[  474.255241] Setting dangerous option enable_guc - tainting kernel
[  474.255800] [drm:i915_driver_load [i915]] Found SunrisePoint LP PCH
[  474.255828] [drm:intel_power_domains_init [i915]] Allowed DC state mask 03
[  474.256387] [drm] Found 64MB of eDRAM
[  474.256489] [drm:i915_driver_load [i915]] ppgtt mode: 3
[  474.256520] [drm:intel_uc_sanitize_options [i915]] enable_guc=3 (submission:yes huc:yes)
[  474.256542] [drm:i915_driver_load [i915]] guc_log_level=0 (enabled:no verbosity:-1)
[  474.256607] [drm:i915_ggtt_probe_hw [i915]] GGTT size = 4078M
[  474.256631] [drm:i915_ggtt_probe_hw [i915]] GMADR size = 256M
[  474.256653] [drm:i915_ggtt_probe_hw [i915]] DSM size = 64M
[  474.256657] [drm] Replacing VGA console driver
[  474.256711] [drm:i915_gem_init_stolen [i915]] Memory reserved for graphics device: 65536K, usable: 64512K
[  474.256744] [drm:intel_opregion_setup [i915]] graphic opregion physical addr: 0x7af86018
[  474.256786] [drm:intel_opregion_setup [i915]] Public ACPI methods supported
[  474.256822] [drm:intel_opregion_setup [i915]] SWSCI supported
[  474.259213] [drm:intel_opregion_setup [i915]] SWSCI GBDA callbacks 00000cb3, SBCB callbacks 00300483
[  474.259237] [drm:intel_opregion_setup [i915]] ASLE supported
[  474.259257] [drm:intel_opregion_setup [i915]] ASLE extension supported
[  474.259278] [drm:intel_opregion_setup [i915]] Found valid VBT in ACPI OpRegion (Mailbox #4)
[  474.259391] [drm:intel_gvt_init [i915]] *ERROR* i915 GVT-g loading failed due to Graphics virtualization is not yet supported with GuC submission
[  474.316918] i915 0000:00:02.0: [drm:i915_driver_load [i915]] Device initialization failed (-5)
[  474.316922] i915 0000:00:02.0: Please file a bug at https://bugs.freedesktop.org/enter_bug.cgi?product=DRI against DRM/Intel providing the dmesg log by booting with drm.debug=0xf
[  474.316957] i915: probe of 0000:00:02.0 failed with error -5
[  474.320468] [IGT] gvt_basic: exiting, ret=77
[  474.321816] snd_hda_intel 0000:00:1f.3: failed to add i915 component master (-19)
[  474.331144] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC283: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:hp
[  474.331146] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  474.331147] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[  474.331148] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[  474.331149] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[  474.331150] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x12
[  474.377290] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec
[  474.378797] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec
[  474.387123] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input45
[  474.387509] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input46
[  474.387831] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input47
Comment 5 Jani Saarinen 2018-03-29 07:10:52 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 6 Elizabeth 2018-04-09 20:39:06 UTC
This is still valid, as support for virtualization with GuC haven't been released. In my humble opinion this test should be skipped if GuC is loaded, that way it wouldn't cause most of the subsequent tests to be skipped.
Comment 7 Jani Saarinen 2018-04-24 06:51:23 UTC
Joonas, any advice from you?


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.