Bug 111694

Summary: [CI][DRMTIP] igt@kms_hdmi_inject@inject-audio - fail - Failed assertion: glob("/proc/asound/card*/" ELD_PREFIX "*", GLOB_NOSORT, NULL, &glob_buf) == 0, glob failed
Product: DRI Reporter: Lakshmi <lakshminarayana.vudum>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: RESOLVED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: not set    
Priority: not set CC: intel-gfx-bugs
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: BDW, G45, IVB, KBL, SKL, TGL i915 features: display/Other

Description Lakshmi 2019-09-16 11:15:04 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_369/fi-bdw-gvtdvm/igt@kms_hdmi_inject@inject-audio.html

Starting subtest: inject-audio
(kms_hdmi_inject:1026) igt_eld-CRITICAL: Test assertion failure function eld_is_supported, file ../lib/igt_eld.c:277:
(kms_hdmi_inject:1026) igt_eld-CRITICAL: Failed assertion: glob("/proc/asound/card*/" ELD_PREFIX "*", GLOB_NOSORT, NULL, &glob_buf) == 0
(kms_hdmi_inject:1026) igt_eld-CRITICAL: glob failed
Subtest inject-audio failed.

https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_370/fi-tgl-u2/igt@kms_hdmi_inject@inject-audio.html
Starting subtest: inject-audio
(kms_hdmi_inject:1023) igt_eld-CRITICAL: Test assertion failure function eld_is_supported, file ../lib/igt_eld.c:277:
(kms_hdmi_inject:1023) igt_eld-CRITICAL: Failed assertion: glob("/proc/asound/card*/" ELD_PREFIX "*", GLOB_NOSORT, NULL, &glob_buf) == 0
(kms_hdmi_inject:1023) igt_eld-CRITICAL: glob failed
Subtest inject-audio failed.
Comment 1 CI Bug Log 2019-09-16 11:17:05 UTC
The CI Bug Log issue associated to this bug has been updated.

### New filters associated

* ELK IVB BDW SKL KBL TGL: igt@kms_hdmi_inject@inject-audio - fail - Failed assertion: glob(&quot;/proc/asound/card*/&quot; ELD_PREFIX &quot;*&quot;, GLOB_NOSORT, NULL, &amp;glob_buf) == 0, glob failed
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_369/fi-bdw-gvtdvm/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_369/fi-elk-e7500/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_369/fi-ivb-3770/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_369/fi-kbl-x1275/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_369/fi-skl-gvtdvm/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_369/fi-tgl-u/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_369/fi-tgl-u2/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_370/fi-bdw-gvtdvm/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_370/fi-elk-e7500/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_370/fi-ivb-3770/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_370/fi-kbl-x1275/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_370/fi-skl-gvtdvm/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_370/fi-tgl-u/igt@kms_hdmi_inject@inject-audio.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_370/fi-tgl-u2/igt@kms_hdmi_inject@inject-audio.html
Comment 2 Chris Wilson 2019-09-16 12:18:35 UTC
commit 8a611399226cfa248f91f80d263b84b7f13cabee (origin/master, origin/HEAD)
Author: Simon Ser <simon.ser@intel.com>
Date:   Fri Sep 13 13:23:40 2019 +0300

    lib/igt_eld: fix eld_is_supported failing if not supported
    
    When glob(3) doesn't find any results, it returns GLOB_NOMATCH. I've been
    confused by GLOB_NOCHECK's description and thought it would return 0.
    
    Instead of failing on the assert, return that ELDs aren't supported in case
    there's no match.
    
    While at it, also include glob's return value in the assert message.
    
    Signed-off-by: Simon Ser <simon.ser@intel.com>
    Fixes: 3374cd0b048f ("lib/igt_eld: introduce eld_is_supported")
    Cc: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Comment 3 CI Bug Log 2019-10-16 11:44:43 UTC
The CI Bug Log issue associated to this bug has been archived.

New failures matching the above filters will not be associated to this bug anymore.

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.