Bug 65157

Summary: [SNB/IVB/HSW Bisected]igt/gem_reg_read not support
Product: DRI Reporter: lu hua <huax.lu>
Component: DRM/IntelAssignee: Imre Deak <imre.deak>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: medium CC: yangweix.shui
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description lu hua 2013-05-30 05:23:33 UTC
System Environment:
--------------------------
Platform: Sandybridge/Ivybridge/Haswell
Kernel: (drm-intel-fixes)3598706b52cb45ba0a9e8aa99ce5ac59140f2b8b

Bug detailed description:
-------------------------
It becomes not support on drm-intel-fixes and drm-intel-next-queued kernel.
It caused by igt commit 1cb4f90946289457c3b92773f2ce96b0b03e4a22.
commit 1cb4f90946289457c3b92773f2ce96b0b03e4a22
Author:     Imre Deak <imre.deak@intel.com>
AuthorDate: Tue May 28 17:35:32 2013 +0300
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Tue May 28 18:32:32 2013 +0200

    tests/lib: make sure the GPU is idle at test start and exit

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64270

    v2:
    - Make sure also that the GPU is idle at start and error exit of any
      test using drm_open_any(). (Daniel)
    v3:
    - actually call gem_quiescent_gpu() at exit

    Signed-off-by: Imre Deak <imre.deak@intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>


# echo $?
77

dmesg:
[ 8185.849621] [drm:i915_driver_open],
[ 8185.849636] [drm:intel_crtc_set_config], [CRTC:3] [FB:30] #connectors=1 (x y) (0 0)
[ 8185.849642] [drm:intel_modeset_stage_output_state], [CONNECTOR:18:HDMI-A-3] to [CRTC:3]
[ 8185.849645] [drm:intel_crtc_set_config], [CRTC:5] [NOFB]
[ 8185.849647] [drm:intel_modeset_stage_output_state], [CONNECTOR:18:HDMI-A-3] to [CRTC:3]
[ 8185.849653] [drm:i915_driver_open],
[ 8185.849908] [drm:i915_getparam], Unknown parameter 22
[ 8185.849927] [drm:i915_driver_open],
[ 8185.849933] [drm:i915_driver_open],
[ 8185.849970] [drm:i915_getparam], Unknown parameter 22
[ 8185.850122] [drm:intel_crtc_set_config], [CRTC:3] [FB:30] #connectors=1 (x y) (0 0)
[ 8185.850125] [drm:intel_modeset_stage_output_state], [CONNECTOR:18:HDMI-A-3] to [CRTC:3]
[ 8185.850127] [drm:intel_crtc_set_config], [CRTC:5] [NOFB]
[ 8185.850129] [drm:intel_modeset_stage_output_state], [CONNECTOR:18:HDMI-A-3] to [CRTC:3]


Reproduce steps:
----------------
1. ./gem_reg_read
Comment 1 Chris Wilson 2013-05-30 07:41:21 UTC
commit 2e1c11546a4aa69c1e774aaa653bb9d84552e133
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu May 30 08:37:48 2013 +0100

    gem_reg_read: Only check errno after a definite error
    
    As upon success, errno is invalid and may give spurious false results.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65157
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 2 lu hua 2013-05-31 01:18:43 UTC
Verified.Fixed.
Comment 3 Elizabeth 2017-10-06 14:46:18 UTC
Closing old verified.

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.