Bug 89644 - [BSW/SKL]igt/gem_cs_prefetch causes *ERROR* Hangcheck timer elapsed... render ring idle
Summary: [BSW/SKL]igt/gem_cs_prefetch causes *ERROR* Hangcheck timer elapsed... render...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: cprigent
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 07:51 UTC by lu hua
Modified: 2016-10-11 11:45 UTC (History)
2 users (show)

See Also:
i915 platform: BSW/CHT, SKL
i915 features: GEM/Other


Attachments
dmesg (124.42 KB, text/plain)
2015-03-18 07:51 UTC, lu hua
no flags Details

Description lu hua 2015-03-18 07:51:44 UTC
Created attachment 114428 [details]
dmesg

==System Environment==
--------------------------
Regression: not sure, I am unable to find good commit

no-working platforms: BSW

==kernel==
--------------------------
drm-intel-nightly/3753ea527e539d3358a6368e77cb29ecb2e71c42
commit 3753ea527e539d3358a6368e77cb29ecb2e71c42
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Mar 17 22:36:04 2015 +0100

    drm-intel-nightly: 2015y-03m-17d-21h-35m-20s UTC integration manifest

==Bug detailed description==
-----------------------------
It causes <3>[   95.780262] [drm:i915_hangcheck_elapsed [i915]] *ERROR* Hangcheck timer elapsed... render ring idle on BSW. Test the latest drm-intel-nightly and drm-intel-next-queued kernel. Test kernel: 2015_01_18/drm-intel-nightly/be0b52082364f73b6ffa2841ec4ded2ddecfa881, it also has this issue..

output:
IGT-Version: 1.10-g505645c (x86_64) (Linux: 4.0.0-rc4_drm-intel-nightly_3753ea_20150318+ x86_64)
gem_cs_prefetch: 100%
Test suceeded, cleanup up - this might take a while.
SUCCESS (67.727s)
Comment 1 ye.tian 2015-03-26 02:51:26 UTC
This issue stilll exist the latest kernel(nightly).
output:
--------------
IGT-Version: 1.10-g4d2577e (x86_64) (Linux: 4.0.0-rc5_drm-intel-nightly_d85122_20150326+ x86_64)
gem_cs_prefetch: 100%
Test suceeded, cleanup up - this might take a while.
SUCCESS (80.825s)

<3>[ 1599.451289] [drm:i915_hangcheck_elapsed [i915]] *ERROR* Hangcheck timer elapsed... render ring idle
Comment 2 lu hua 2015-05-26 01:58:45 UTC
It also happens on SKL.
Comment 3 cprigent 2015-08-03 22:29:54 UTC
Bug scrub:
Hua, how do you reproduce it? Please provide the steps.
Comment 4 lu hua 2015-08-04 00:41:54 UTC
==Reproduce steps==
---------------------------- 
1. ./gem_cs_prefetch
Comment 5 Rami 2015-11-20 16:31:50 UTC
Test is skip on BSW with the last setup:

Hardware:
Platform: Braswell M 
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping: 4)
SoC : BSW C0
QDF : K6XC
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All Feature Reworks: F28, F32, F33, F35, F37
Optional reworks : O-01a; O-02, O-03 

Software:
Linux distribution: Ubuntu 15.04 LTS 64 bits 
BIOS : BRAS.X64.B084.R00.1508310642
TXE FW : 2.0.0.2073
Ksc : 1.08
kernel  drm-intel-nightly: 2015y-11m-12d-15h-35m-53s UTC integration manifest
commit 4c2531304c0a2f36f6b2cce2add5b5b2bd3fd893
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Nov 12 17:36:12 2015 +0200
cairo: (HEAD, tag: 1.14.2) 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d from git://git.freedesktop.org/git/cairo
drm: (HEAD, tag: libdrm-2.4.65, tag: 2.4.65) c3496167637e35cf8a52d5e7e53a412e79d80db0 from git://git.freedesktop.org/git/mesa/drm
intel-driver: (HEAD, tag: 1.6.1, origin/v1.6-branch) 35858c69166b845c59ca32e19a3dbb0b758df209 from git://git.freedesktop.org/git/vaapi/intel-driver
libva: (HEAD, tag: libva-1.6.1, origin/v1.6-branch) 613eb962b45fbbd1526d751e88e0d8897af6c0e0 from git://git.freedesktop.org/git/vaapi/libva
mesa: (HEAD, tag: mesa-11.0.5) ee57c22141c42d9b511a7dfa5971c4428cd1c6e7 from git://git.freedesktop.org/git/mesa/mesa
xf86-video-intel: (HEAD, tag: 2.99.917) baec802b21387d04aebb10ac29e719a1800c5aa0 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
xserver: (HEAD, tag: xorg-server-1.17.2) 2123f7682d522619f101b05fb75efa75dabbe371 from git://git.freedesktop.org/git/xorg/xserver

* Tools *
intel-gpu-tools: (HEAD, origin/master, origin/HEAD, master) b718f50f92cf7ed825c90ff54940cb155d110a2c from git://git.freedesktop.org/git/xorg/app/intel-gpu-tools

Actual result:
==============
IGT-Version: 1.12-gb718f50 (x86_64) (Linux: 4.4.0-rc1-nightly+ x86_64)
Test requirement not met in function __real_main75, file gem_cs_prefetch.c:96:
Test requirement: !(intel_get_total_ram_mb() < (aper_size / (1024*1024)) * 3 / 2)
not enough mem to run test
SKIP (0.004s)
Comment 6 Jairo Miramontes 2016-01-05 23:10:59 UTC
I am not seeing this happening on SKL, not getting those hangcheck messages with the following configuration:

Result: 

IGT-Version: 1.13-g2db78a4 (x86_64) (Linux: 4.4.0-rc3-testing+ x86_64)
Test suceeded, cleanup up - this might take a while.
SUCCESS (0.019s)

[   63.239493] gem_cs_prefetch: executing
[   63.239622] [drm:i915_gem_open]
[   63.240372] [drm:i915_gem_open]
[   63.258040] gem_cs_prefetch (1110): drop_caches: 3
[   63.258526] gem_cs_prefetch: exiting, ret=0
[   63.259002] [drm:skl_update_scaler_plane] Updating scaler for [PLANE:18] scaler_user index 0.0
[   63.259004] [drm:skl_update_scaler_plane] Updating scaler for [PLANE:23] scaler_user index 1.3



==Hardware==
Platform: SKY LAKE Y A0
CPU: Intel(R) Core(TM) m3-6Y30 CPU @ 0.8GHz 4MB (family: 6, model: 78
stepping: 3)
MCP: SKL-Y  D1  2+2 (ou ULX-D1)
QDF: QYV3
CPU: SKL D0
Chipset PCH: Sunrise Point LP C1
CRB: SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06 Software Linux distribution: Ubuntu 14.04 LTS 64 bits
BIOS: 93.2
ME FW: 11.0.0.1149
Ksc (EC FW): 1.15



==Software==
Linux distribution: Ubuntu 15.10 64 bits 
BIOS : 104.1
kernel  drm-intel-nightly: 2015y-12m-04d-16h-35m-07s UTC integration manifest
commit 91587c722c28c4116dedbfbf08aa874377bc76f8
cairo: (HEAD, tag: 1.14.6) 9d3191da6fae7dfd914c3516d6ba369c9ba1a576 from git://git.freedesktop.org/git/cairo
drm: (HEAD, tag: libdrm-2.4.66) b38a4b2326c1be5702f5cb73a53c0ed74c12d510 from git://git.freedesktop.org/git/mesa/drm
intel-driver: (HEAD, tag: 1.6.2) 683edeedfdfd769807c18ed3797223f82b7aa0cc from git://git.freedesktop.org/git/vaapi/intel-driver
libva: (HEAD, tag: libva-1.6.2) 304bc13e244f9d5e185a0d8a87fcf3a3eb5a8bd8 from git://git.freedesktop.org/git/vaapi/libva
mesa: (HEAD, tag: mesa-11.0.8) 261daab6b4f7a1cff143bebcd632ad5a2cdafa74 from git://git.freedesktop.org/git/mesa/mesa
xf86-video-intel: (HEAD, tag: 2.99.917) 8e987511f0f190115e2587a94922b766d4f8719af rom git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
xserver: (HEAD, tag: xorg-server-1.18.0) 43fb888bd01cf9d3d277e77a52a3d0c93ccff8bd from git://git.freedesktop.org/git/xorg/xserver
Comment 7 Chris Wilson 2016-01-28 10:23:46 UTC
commit 7c17d377374ddbcfb7873366559fc4ed8b296e11
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Jan 20 15:43:35 2016 +0200

    drm/i915: Use ordered seqno write interrupt generation on gen8+ execlists
Comment 8 cprigent 2016-02-25 17:11:36 UTC
Tested 30 times on BSW and SKL, I don't see "*ERROR* Hangcheck timer elapsed... render ring idl" in kernel log.

Result is skip on BSW and pass on SKL.


Platform: Braswell M
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping: 4)
SoC : BSW D0
QDF : K6XC
CRB : BRASWELL RVP Fab2

Platform: SKY LAKE Y A0 QUAL
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78 stepping: 3)
MCP : SKL-Y D1 2+2 (ou ULX-D1)
QDF : QJK9
CPU : SKL D0
Chipset PCH: Sunrise Point LP C0
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2

Software
Linux OS: Ubuntu 15.04 64 bits
BIOS : BRAS.X64.B088.R00.1510270350
TXE FW : 2.0.0.2093
Ksc : 1.08
  kernel 4.5.0-rc5 08fc1b1 from from http://cgit.freedesktop.org/drm-intel
  commit 08fc1b101049694778bff7559e1d05250d2e7072
  Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
  Date: Mon Feb 22 19:31:15 2016 +0200
  drm-intel-nightly: 2016y-02m-22d-17h-30m-27s UTC integration manifest
drm: tag libdrm-2.4.66 9b77443 from http://cgit.freedesktop.org/mesa/drm/
IGT 1.13 babcf40 from https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
One eDP connected
Comment 9 cprigent 2016-02-25 17:11:45 UTC
So closed
Comment 10 Luis Botello 2016-04-21 22:27:22 UTC
All subtests are SKIP on BSW with the following configuration:

Software Configuration
================================================
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.6.0-rc3_d9131d6 from http://cgit.freedesktop.org/drm-intel/
commit d9131d62d18ba94fb3ca019f1156c22b5f4ce23c
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Fri Apr 15 14:54:26 2016 +0100
drm-intel-nightly: 2016y-04m-15d-13h-53m-44s UTC integration manifestdrm: tag libdrm-2.4.66-33-gf884af9
      libdrm 2.4.67-25 cc9a53f from git://git.freedesktop.org/git/mesa/drm
mesa 11.1.2 7bcd827 from git://git.freedesktop.org/git/mesa/mesa
cairo 1.15.2 db8a7f1 from git://git.freedesktop.org/git/cairo
xorg/xserver 1.18.0-274 8437955 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-634 81029be from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
vaapi/libva 1.7.0-1 2339d10 from git://git.freedesktop.org/git/vaapi/libva
vaapi/intel-driver 1.7.0-8 2c1bec0 from git://git.freedesktop.org/git/vaapi/intel-driver
intel-gpu-tool 1.14 7bd2ac6 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
rendercheck master 44032a7 from http://anongit.freedesktop.org/git/xorg/app/rendercheck.git



IGT-Version: 1.14-g7bd2ac6 (x86_64) (Linux: 4.6.0-rc3-nightly+ x86_64)
Test requirement not met in function intel_require_memory, file intel_os.c:289:
Test requirement: __intel_check_memory(count, size, mode, &required, &total)
Estimated that we need 1,048,576 objects and 4,608 MiB for the test, but only have 3,534 MiB available (RAM) and a maximum of 381,814 objects
[1mSubtest basic-default: SKIP (0.006s)[0m
Test requirement not met in function drm_open_driver_master, file drmtest.c:348:
Test requirement: drmSetMaster(fd) == 0
Can't become DRM master, please check if no other DRM client is running.
Last errno: 22, Invalid argument
[1mSubtest render: SKIP (0.001s)[0m
Test requirement not met in function drm_open_driver_master, file drmtest.c:348:
Test requirement: drmSetMaster(fd) == 0
Can't become DRM master, please check if no other DRM client is running.
Last errno: 22, Invalid argument
[1mSubtest bsd: SKIP (0.000s)[0m
Test requirement not met in function drm_open_driver_master, file drmtest.c:348:
Test requirement: drmSetMaster(fd) == 0
Can't become DRM master, please check if no other DRM client is running.
Last errno: 22, Invalid argument
[1mSubtest bsd1: SKIP (0.000s)[0m
Test requirement not met in function drm_open_driver_master, file drmtest.c:348:
Test requirement: drmSetMaster(fd) == 0
Can't become DRM master, please check if no other DRM client is running.
Last errno: 22, Invalid argument
[1mSubtest bsd2: SKIP (0.000s)[0m
Test requirement not met in function drm_open_driver_master, file drmtest.c:348:
Test requirement: drmSetMaster(fd) == 0
Can't become DRM master, please check if no other DRM client is running.
Last errno: 22, Invalid argument
[1mSubtest blt: SKIP (0.000s)[0m
Test requirement not met in function drm_open_driver_master, file drmtest.c:348:
Test requirement: drmSetMaster(fd) == 0
Can't become DRM master, please check if no other DRM client is running.
Last errno: 22, Invalid argument
[1mSubtest vebox: SKIP (0.000s)[0m
Comment 11 cprigent 2016-10-11 11:45:11 UTC
ERROR Hangcheck timer elapsed is not reproduced.
Tests are skip on BSW and SKL.

Hardware BSW: Acer Desktop
Motherboard: Aspire XC-704
CPU: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz (Family 6, Model 76, Stepping 3)
GPU:  Intel® HD Graphics - Intel Corporation Device 22b1 (rev 21)
Memory card: 1 card 4GB Hynix HMT451S6BFR8APB
HDD: Western Digital WDC WD10EZEX-21M (1TB)
Software:
Bios: R01-A2
Linux distribution: Ubuntu 16.04 64 bits

Platform SKL Skull Canyon: NUC6i7KYK
CPU: Intel® Core(TM) i7-6770HQ CPU @ 2.6GHz (family 6, model 94, stepping 3)
GPU: Intel® IrisTM Pro Graphics 580 - Intel Corporation Sky Lake Integrated Graphics (rev 09)
Motherboard version: H90766-405
Memory: 2 x 4GB card Kingston KVR21S15S8/4
Software
Bios: KYSKLi70.86A.0041.2016.0817.1130 from https://downloadcenter.intel.com/downloads/eula/26210/BIOS-Update-KYSKLi70-86A-?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F26210%2Feng%2FKY0041.bio
Linux distribution: Ubuntu 16.04 64 bits
DMC 1.26 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/skldmcver126.tar_1.bz2
GUC 6.1 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2
External screens: ASUS PB287Q (DP), DELL P2715Qt (HDMI)

Kernel: 4.8.0 f35ed31 from http://cgit.freedesktop.org/drm-intel/
  commit f35ed31aea66b3230c366fcba5f3456ae2cb956e
  Author: Jani Nikula <jani.nikula@intel.com>
  Date:   Mon Oct 10 14:29:09 2016 +0300
  drm-intel-nightly: 2016y-10m-10d-11h-28m-51s UTC integration manifest
libdrm-2.4.71 a44c9c3 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-12.0.0 8b06176 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.901-76 97a8353 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-712 696f58f from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-38 3b7e499 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-133 dd73514 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-59 48a9e1e from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 12 cprigent 2016-10-11 11:45:22 UTC
So closed


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.