Bug 107813 - [CI][DRMTIP] igt@gem_eio@suspend - fail - Failed assertion: igt_sysfs_set(power_dir, "state", suspend_state_name[state]), Last errno: 16, Device or resource busy
Summary: [CI][DRMTIP] igt@gem_eio@suspend - fail - Failed assertion: igt_sysfs_set(pow...
Status: CLOSED NOTOURBUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-03 15:08 UTC by Martin Peres
Modified: 2019-01-31 13:11 UTC (History)
2 users (show)

See Also:
i915 platform: BYT, CFL
i915 features: power/suspend-resume


Attachments

Description Martin Peres 2018-09-03 15:08:11 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_97/fi-cfl-8109u/igt@gem_eio@suspend.html

(gem_eio:2635) igt_aux-CRITICAL: Test assertion failure function suspend_via_sysfs, file ../lib/igt_aux.c:794:
(gem_eio:2635) igt_aux-CRITICAL: Failed assertion: igt_sysfs_set(power_dir, "state", suspend_state_name[state])
(gem_eio:2635) igt_aux-CRITICAL: Last errno: 16, Device or resource busy
Subtest suspend failed.
Comment 1 Chris Wilson 2018-09-03 15:12:53 UTC
<3>[  253.907711] pci_pm_suspend(): hcd_pci_suspend+0x0/0x20 returns -16

with no further information.
Comment 2 Lakshmi 2018-10-23 12:36:55 UTC
Chris, This issue happened again, where should it be reported?
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_129/fi-cfl-8109u/igt@gem_eio@suspend.html
Comment 3 Chris Wilson 2018-10-23 12:39:57 UTC
That was xhci that timed out during suspend.
Comment 4 Lakshmi 2018-12-19 14:14:35 UTC
This failure is on SKL
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_154/fi-skl-6600u/igt@gem_exec_suspend@basic-s4-devices.html

Starting subtest: suspend
(gem_eio:2131) igt_aux-CRITICAL: Test assertion failure function suspend_via_sysfs, file ../lib/igt_aux.c:794:
(gem_eio:2131) igt_aux-CRITICAL: Failed assertion: igt_sysfs_set(power_dir, "state", suspend_state_name[state])
(gem_eio:2131) igt_aux-CRITICAL: Last errno: 16, Device or resource busy
Subtest suspend failed.
**** DEBUG ****
(gem_eio:2131) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_eio:2131) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_eio:2131) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_eio:2131) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_eio:2131) igt_core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_eio:2131) igt_aux-DEBUG: Test requirement passed: (power_dir = open("/sys/power", O_RDONLY)) >= 0
(gem_eio:2131) igt_aux-DEBUG: Test requirement passed: get_supported_suspend_states(power_dir) & (1 << state)
(gem_eio:2131) igt_aux-DEBUG: Test requirement passed: test == SUSPEND_TEST_NONE || faccessat(power_dir, "pm_test", R_OK | W_OK, 0) == 0
(gem_eio:2131) DEBUG: Disabling GPU reset
(gem_eio:2131) DEBUG: Test requirement passed: fd >= 0
(gem_eio:2131) DEBUG: Test requirement passed: i915_reset_control(false)
(gem_eio:2131) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_eio:2131) igt_core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_eio:2131) igt_aux-DEBUG: Test requirement passed: (power_dir = open("/sys/power", O_RDONLY)) >= 0
(gem_eio:2131) igt_aux-DEBUG: Test requirement passed: get_supported_suspend_states(power_dir) & (1 << state)
(gem_eio:2131) igt_aux-DEBUG: Test requirement passed: test == SUSPEND_TEST_NONE || faccessat(power_dir, "pm_test", R_OK | W_OK, 0) == 0
(gem_eio:2131) igt_aux-CRITICAL: Test assertion failure function suspend_via_sysfs, file ../lib/igt_aux.c:794:
(gem_eio:2131) igt_aux-CRITICAL: Failed assertion: igt_sysfs_set(power_dir, "state", suspend_state_name[state])
(gem_eio:2131) igt_aux-CRITICAL: Last errno: 16, Device or resource busy
(gem_eio:2131) igt_core-INFO: Stack trace:
(gem_eio:2131) igt_core-INFO:   #0 ../lib/igt_core.c:1467 __igt_fail_assert()
(gem_eio:2131) igt_core-INFO:   #1 ../lib/igt_aux.c:795 suspend_via_sysfs()
(gem_eio:2131) igt_core-INFO:   #2 ../lib/igt_aux.c:867 igt_system_suspend_autoresume()
(gem_eio:2131) igt_core-INFO:   #3 ../tests/i915/gem_eio.c:352 test_suspend()
(gem_eio:2131) igt_core-INFO:   #4 ../tests/i915/gem_eio.c:767 __real_main740()
(gem_eio:2131) igt_core-INFO:   #5 ../tests/i915/gem_eio.c:740 main()
(gem_eio:2131) igt_core-INFO:   #6 ../csu/libc-start.c:344 __libc_start_main()
(gem_eio:2131) igt_core-INFO:   #7 [_start+0x2a]
****  END  ****
Subtest suspend: FAIL (5.923s)

Is this NOTOURBUG or need a separate bug?
Comment 5 Lakshmi 2018-12-19 14:17:27 UTC
Also, 
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_154/fi-skl-6600u/igt@gem_eio@suspend.html

Starting subtest: suspend
(gem_eio:2173) igt_aux-CRITICAL: Test assertion failure function suspend_via_sysfs, file ../lib/igt_aux.c:794:
(gem_eio:2173) igt_aux-CRITICAL: Failed assertion: igt_sysfs_set(power_dir, "state", suspend_state_name[state])
(gem_eio:2173) igt_aux-CRITICAL: Last errno: 16, Device or resource busy
Subtest suspend failed.
**** DEBUG ****
(gem_eio:2173) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_eio:2173) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_eio:2173) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_eio:2173) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_eio:2173) igt_core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_eio:2173) igt_aux-DEBUG: Test requirement passed: (power_dir = open("/sys/power", O_RDONLY)) >= 0
(gem_eio:2173) igt_aux-DEBUG: Test requirement passed: get_supported_suspend_states(power_dir) & (1 << state)
(gem_eio:2173) igt_aux-DEBUG: Test requirement passed: test == SUSPEND_TEST_NONE || faccessat(power_dir, "pm_test", R_OK | W_OK, 0) == 0
(gem_eio:2173) igt_aux-CRITICAL: Test assertion failure function suspend_via_sysfs, file ../lib/igt_aux.c:794:
(gem_eio:2173) igt_aux-CRITICAL: Failed assertion: igt_sysfs_set(power_dir, "state", suspend_state_name[state])
(gem_eio:2173) igt_aux-CRITICAL: Last errno: 16, Device or resource busy
(gem_eio:2173) igt_core-INFO: Stack trace:
(gem_eio:2173) igt_core-INFO:   #0 ../lib/igt_core.c:1467 __igt_fail_assert()
(gem_eio:2173) igt_core-INFO:   #1 ../lib/igt_aux.c:795 suspend_via_sysfs()
(gem_eio:2173) igt_core-INFO:   #2 ../lib/igt_aux.c:867 igt_system_suspend_autoresume()
(gem_eio:2173) igt_core-INFO:   #3 ../tests/i915/gem_eio.c:347 test_suspend()
(gem_eio:2173) igt_core-INFO:   #4 ../tests/i915/gem_eio.c:767 __real_main740()
(gem_eio:2173) igt_core-INFO:   #5 ../tests/i915/gem_eio.c:740 main()
(gem_eio:2173) igt_core-INFO:   #6 ../csu/libc-start.c:344 __libc_start_main()
(gem_eio:2173) igt_core-INFO:   #7 [_start+0x2a]
****  END  ****
Comment 6 Chris Wilson 2018-12-19 14:18:38 UTC
(In reply to Lakshmi from comment #4)
> This failure is on SKL
> https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_154/fi-skl-6600u/
> igt@gem_exec_suspend@basic-s4-devices.html

Same usb/xhci bug. NOTOURBUG, but I guess we do have some xhci maintainers somewhere that could be motivated to fix their driver.
Comment 7 CI Bug Log 2019-01-31 13:11:33 UTC
A CI Bug Log filter associated to this bug has been updated:

{- SKL CFL: igt@gem_eio@suspend|Hilbernate - fail - Failed assertion: igt_sysfs_set(power_dir, &quot;state&quot;, suspend_state_name[state]) -}
{+ SKL CFL: igt@gem_eio@suspend|Hilbernate - fail - Failed assertion: igt_sysfs_set(power_dir, &quot;state&quot;, suspend_state_name[state]) +}

New failures caught by the filter:

* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_199/fi-byt-j1900/igt@gem_eio@suspend.html


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.