Bug 112380

Summary: [CI][SHARDS]igt@gem_ctx_persistence@file - fail - Failed assertion: igt_sysfs_printf(dir, "i915_gem_drop_caches", "0x%" PRIx64, val) > 0
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: ALL i915 features: GEM/Other

Description Lakshmi 2019-11-24 20:06:11 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5301/shard-apl7/igt@gem_ctx_persistence@file.html
Starting subtest: file
(gem_ctx_persistence:9327) igt_debugfs-CRITICAL: Test assertion failure function igt_drop_caches_set, file ../lib/igt_debugfs.c:1060:
(gem_ctx_persistence:9327) igt_debugfs-CRITICAL: Failed assertion: igt_sysfs_printf(dir, "i915_gem_drop_caches", "0x%" PRIx64, val) > 0
(gem_ctx_persistence:9327) igt_debugfs-CRITICAL: Last errno: 9, Bad file descriptor
Subtest file failed.
**** DEBUG ****
(gem_ctx_persistence:9327) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_ctx_persistence:9327) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_ctx_persistence:9327) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_ctx_persistence:9327) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_ctx_persistence:9327) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_ctx_persistence:9327) ioctl_wrappers-DEBUG: Test requirement passed: gem_has_ring(fd, ring)
(gem_ctx_persistence:9327) igt_dummyload-DEBUG: Test requirement passed: nengine
(gem_ctx_persistence:9327) igt_debugfs-DEBUG: Couldn't stat FD for DRM device: Bad file descriptor
(gem_ctx_persistence:9327) igt_debugfs-CRITICAL: Test assertion failure function igt_drop_caches_set, file ../lib/igt_debugfs.c:1060:
(gem_ctx_persistence:9327) igt_debugfs-CRITICAL: Failed assertion: igt_sysfs_printf(dir, "i915_gem_drop_caches", "0x%" PRIx64, val) > 0
(gem_ctx_persistence:9327) igt_debugfs-CRITICAL: Last errno: 9, Bad file descriptor
(gem_ctx_persistence:9327) igt_core-INFO: Stack trace:
(gem_ctx_persistence:9327) igt_core-INFO:   #0 ../lib/igt_core.c:1830 __igt_fail_assert()
(gem_ctx_persistence:9327) igt_core-INFO:   #1 [igt_drop_caches_set+0x66]
(gem_ctx_persistence:9327) igt_core-INFO:   #2 ../tests/i915/gem_ctx_persistence.c:83 flush_delayed_fput()
(gem_ctx_persistence:9327) igt_core-INFO:   #3 ../tests/i915/gem_ctx_persistence.c:364 __real_main694()
(gem_ctx_persistence:9327) igt_core-INFO:   #4 ../tests/i915/gem_ctx_persistence.c:694 main()
(gem_ctx_persistence:9327) igt_core-INFO:   #5 ../csu/libc-start.c:344 __libc_start_main()
(gem_ctx_persistence:9327) igt_core-INFO:   #6 [_start+0x2a]
****  END  ****
Subtest file: FAIL (0.102s)

https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5301/shard-tglb5/igt@gem_ctx_persistence@file.html
Starting subtest: file
(gem_ctx_persistence:1458) igt_debugfs-CRITICAL: Test assertion failure function igt_drop_caches_set, file ../lib/igt_debugfs.c:1060:
(gem_ctx_persistence:1458) igt_debugfs-CRITICAL: Failed assertion: igt_sysfs_printf(dir, "i915_gem_drop_caches", "0x%" PRIx64, val) > 0
(gem_ctx_persistence:1458) igt_debugfs-CRITICAL: Last errno: 9, Bad file descriptor
Subtest file failed.
**** DEBUG ****
(gem_ctx_persistence:1458) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_ctx_persistence:1458) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_ctx_persistence:1458) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_ctx_persistence:1458) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_ctx_persistence:1458) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_ctx_persistence:1458) ioctl_wrappers-DEBUG: Test requirement passed: gem_has_ring(fd, ring)
(gem_ctx_persistence:1458) igt_dummyload-DEBUG: Test requirement passed: nengine
(gem_ctx_persistence:1458) igt_debugfs-DEBUG: Couldn't stat FD for DRM device: Bad file descriptor
(gem_ctx_persistence:1458) igt_debugfs-CRITICAL: Test assertion failure function igt_drop_caches_set, file ../lib/igt_debugfs.c:1060:
(gem_ctx_persistence:1458) igt_debugfs-CRITICAL: Failed assertion: igt_sysfs_printf(dir, "i915_gem_drop_caches", "0x%" PRIx64, val) > 0
(gem_ctx_persistence:1458) igt_debugfs-CRITICAL: Last errno: 9, Bad file descriptor
(gem_ctx_persistence:1458) igt_core-INFO: Stack trace:
(gem_ctx_persistence:1458) igt_core-INFO:   #0 ../lib/igt_core.c:1830 __igt_fail_assert()
(gem_ctx_persistence:1458) igt_core-INFO:   #1 [igt_drop_caches_set+0x66]
(gem_ctx_persistence:1458) igt_core-INFO:   #2 ../tests/i915/gem_ctx_persistence.c:83 flush_delayed_fput()
(gem_ctx_persistence:1458) igt_core-INFO:   #3 ../tests/i915/gem_ctx_persistence.c:364 __real_main694()
(gem_ctx_persistence:1458) igt_core-INFO:   #4 ../tests/i915/gem_ctx_persistence.c:694 main()
(gem_ctx_persistence:1458) igt_core-INFO:   #5 ../csu/libc-start.c:344 __libc_start_main()
(gem_ctx_persistence:1458) igt_core-INFO:   #6 [_start+0x2a]
****  END  ****
Subtest file: FAIL (0.027s)
Comment 1 CI Bug Log 2019-11-24 20:07:05 UTC
The CI Bug Log issue associated to this bug has been updated.

### New filters associated

* All machines: igt@gem_ctx_persistence@file - fail - Failed assertion: igt_sysfs_printf(dir, &quot;i915_gem_drop_caches&quot;, &quot;0x%&quot; PRIx64, val) &gt; 0
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15396/shard-apl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15396/shard-glk4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15396/shard-iclb4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15396/shard-kbl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15396/shard-skl2/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15396/shard-tglb3/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15397/shard-apl4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15397/shard-glk1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15397/shard-iclb4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15397/shard-kbl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15397/shard-skl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15397/shard-tglb5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7406/shard-apl4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7406/shard-glk5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7406/shard-iclb6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7406/shard-kbl7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7406/shard-skl9/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7407/shard-apl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7407/shard-glk2/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7407/shard-iclb5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7407/shard-kbl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7407/shard-skl2/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7407/shard-tglb4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/shard-apl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/shard-glk3/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/shard-iclb5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/shard-kbl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/shard-skl5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7408/shard-tglb7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15399/shard-apl8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15399/shard-glk3/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15399/shard-iclb3/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15399/shard-kbl7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15399/shard-skl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15399/shard-tglb9/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7409/shard-apl4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7409/shard-glk1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7409/shard-iclb6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7409/shard-kbl2/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7409/shard-skl7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7409/shard-tglb1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5302/shard-apl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5302/shard-glk2/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5302/shard-iclb4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5302/shard-kbl7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5302/shard-skl9/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15403/shard-apl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15403/shard-glk8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15403/shard-iclb5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15403/shard-kbl2/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15403/shard-skl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15403/shard-tglb5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15404/shard-apl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15404/shard-glk1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15404/shard-iclb5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15404/shard-kbl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15404/shard-skl5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15404/shard-tglb9/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15405/shard-apl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15405/shard-glk8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15405/shard-iclb2/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15405/shard-kbl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15405/shard-skl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5357/shard-apl4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5357/shard-glk4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5357/shard-kbl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5357/shard-skl10/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15409/shard-apl6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15409/shard-glk3/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15409/shard-iclb2/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15409/shard-kbl7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15409/shard-skl8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15409/shard-tglb9/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3744/shard-apl4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3744/shard-glk8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3744/shard-iclb4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3744/shard-kbl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3744/shard-tglb1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5301/shard-apl7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5301/shard-glk5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5301/shard-iclb6/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5301/shard-kbl7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5301/shard-skl3/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5301/shard-tglb5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3749/shard-apl8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3749/shard-glk7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3749/shard-iclb5/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3749/shard-kbl3/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3749/shard-tglb7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7405/shard-apl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7405/shard-glk8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7405/shard-iclb8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7405/shard-kbl7/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7405/shard-skl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7405/shard-tglb8/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3750/shard-apl1/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3750/shard-glk4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3750/shard-iclb4/igt@gem_ctx_persistence@file.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3750/shard-kbl1/igt@gem_ctx_persistence@file.html
Comment 2 Chris Wilson 2019-11-24 22:04:51 UTC
commit 360b11e511d98b6370134cff6e8ec3c434a65aee
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Nov 23 18:44:57 2019 +0000

    i915/gem_ctx_persistence: Use the right fd for flushing delayed fput

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.