Bug 110936

Summary: [CI][DRMTIP] igt@drm_read@short-buffer-block - fail - Failed assertion: ret == 0, error: -22 != 0
Product: DRI Reporter: Lakshmi <lakshminarayana.vudum>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: RESOLVED MOVED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard: ReadyForDev
i915 platform: HSW i915 features:

Description Lakshmi 2019-06-18 05:38:57 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_309/fi-hsw-4770r/igt@drm_read@short-buffer-block.html

(drm_read:1185) igt_kms-CRITICAL: Failed assertion: ret == 0
(drm_read:1185) igt_kms-CRITICAL: Last errno: 22, Invalid argument
(drm_read:1185) igt_kms-CRITICAL: error: -22 != 0
Test drm_read failed.
**** DEBUG ****
(drm_read:1185) igt_core-INFO: IGT-Version: 1.23-g3b91c82b (x86_64) (Linux: 5.2.0-rc4-gfbe8f94e9478-drmtip_309+ x86_64)
(drm_read:1185) drmtest-DEBUG: Test requirement passed: !(fd<0)
(drm_read:1185) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(drm_read:1185) igt_kms-DEBUG: VT: graphics mode set (mode was 0x0)
(drm_read:1185) igt_kms-DEBUG: display: init {
(drm_read:1185) igt_kms-DEBUG: display:     HDMI-A-1: Selecting pipe None
(drm_read:1185) igt_kms-DEBUG: display:     DP-1: Selecting pipe None
(drm_read:1185) igt_kms-DEBUG: display:     HDMI-A-2: Selecting pipe None
(drm_read:1185) igt_kms-DEBUG: display:     HDMI-A-2: Selecting pipe None
(drm_read:1185) igt_kms-DEBUG: display: }
(drm_read:1185) igt_fb-DEBUG: igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
(drm_read:1185) igt_fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=4096)
(drm_read:1185) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
(drm_read:1185) igt_fb-DEBUG: Test requirement passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS
(drm_read:1185) igt_kms-DEBUG: display: HDMI-A-1: set_pipe(A)
(drm_read:1185) igt_kms-DEBUG: display: HDMI-A-1: Selecting pipe A
(drm_read:1185) igt_kms-DEBUG: Test requirement passed: plane_idx >= 0 && plane_idx < pipe->n_planes
(drm_read:1185) igt_kms-DEBUG: display: A.0: plane_set_fb(88)
(drm_read:1185) igt_kms-DEBUG: display: A.0: plane_set_size (1024x768)
(drm_read:1185) igt_kms-DEBUG: display: A.0: fb_set_position(0,0)
(drm_read:1185) igt_kms-DEBUG: display: A.0: fb_set_size(1024x768)
(drm_read:1185) igt_kms-DEBUG: display: commit {
(drm_read:1185) igt_kms-DEBUG: Pipe A: Setting property "CTM" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe A: Setting property "GAMMA_LUT" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe A: Setting property "DEGAMMA_LUT" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe A: Setting property "MODE_ID" to 0x59/89
(drm_read:1185) igt_kms-DEBUG: Pipe A: Setting property "ACTIVE" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: A.0, fb 88
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "SRC_W" to 0x4000000/67108864
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "SRC_H" to 0x3000000/50331648
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "CRTC_W" to 0x400/1024
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "CRTC_H" to 0x300/768
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "FB_ID" to 0x58/88
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "CRTC_ID" to 0x2a/42
(drm_read:1185) igt_kms-DEBUG: plane A.0: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: A.1, fb 0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "SRC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "SRC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "CRTC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "CRTC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "FB_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "COLOR_ENCODING" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.1: Setting property "COLOR_RANGE" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: A.2, fb 0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "SRC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "SRC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "CRTC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "CRTC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "FB_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane A.2: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: Pipe B: Setting property "CTM" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe B: Setting property "GAMMA_LUT" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe B: Setting property "DEGAMMA_LUT" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe B: Setting property "MODE_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe B: Setting property "ACTIVE" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: B.0, fb 0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "SRC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "SRC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "CRTC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "CRTC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "FB_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.0: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: B.1, fb 0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "SRC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "SRC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "CRTC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "CRTC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "FB_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "COLOR_ENCODING" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.1: Setting property "COLOR_RANGE" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: B.2, fb 0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "SRC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "SRC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "CRTC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "CRTC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "FB_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane B.2: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: Pipe C: Setting property "CTM" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe C: Setting property "GAMMA_LUT" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe C: Setting property "DEGAMMA_LUT" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe C: Setting property "MODE_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: Pipe C: Setting property "ACTIVE" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: C.0, fb 0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "SRC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "SRC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "CRTC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "CRTC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "FB_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.0: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: C.1, fb 0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "SRC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "SRC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "CRTC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "CRTC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "FB_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "COLOR_ENCODING" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.1: Setting property "COLOR_RANGE" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: display:     populating plane data: C.2, fb 0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "SRC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "SRC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "SRC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "SRC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "CRTC_X" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "CRTC_Y" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "CRTC_W" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "CRTC_H" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "FB_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: plane C.2: Setting property "rotation" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: display:     HDMI-A-1: preparing atomic, pipe: A
(drm_read:1185) igt_kms-DEBUG: HDMI-A-1: Setting property "CRTC_ID" to 0x2a/42
(drm_read:1185) igt_kms-DEBUG: HDMI-A-1: Setting property "Broadcast RGB" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: display:     DP-1: preparing atomic, pipe: None
(drm_read:1185) igt_kms-DEBUG: DP-1: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: DP-1: Setting property "Broadcast RGB" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: display:     HDMI-A-2: preparing atomic, pipe: None
(drm_read:1185) igt_kms-DEBUG: HDMI-A-2: Setting property "CRTC_ID" to 0x0/0
(drm_read:1185) igt_kms-DEBUG: HDMI-A-2: Setting property "Broadcast RGB" to 0x1/1
(drm_read:1185) igt_kms-DEBUG: display: }
(drm_read:1185) igt_kms-CRITICAL: Test assertion failure function do_display_commit, file ../lib/igt_kms.c:3499:
(drm_read:1185) igt_kms-CRITICAL: Failed assertion: ret == 0
(drm_read:1185) igt_kms-CRITICAL: Last errno: 22, Invalid argument
(drm_read:1185) igt_kms-CRITICAL: error: -22 != 0
(drm_read:1185) igt_core-INFO: Stack trace:
(drm_read:1185) igt_core-INFO:   #0 ../lib/igt_core.c:1514 __igt_fail_assert()
(drm_read:1185) igt_core-INFO:   #1 ../lib/igt_kms.c:3499 do_display_commit()
(drm_read:1185) igt_core-INFO:   #2 ../lib/igt_kms.c:3605 igt_display_commit2()
(drm_read:1185) igt_core-INFO:   #3 ../tests/drm_read.c:285 __real_main253()
(drm_read:1185) igt_core-INFO:   #4 ../tests/drm_read.c:253 main()
(drm_read:1185) igt_core-INFO:   #5 ../csu/libc-start.c:344 __libc_start_main()
(drm_read:1185) igt_core-INFO:   #6 [_start+0x2a]
****  END  ****
Comment 1 CI Bug Log 2019-06-18 05:39:55 UTC
The CI Bug Log issue associated to this bug has been updated.

### New filters associated

* HSW: igt@drm_read@short-buffer-block - fail - Failed assertion: ret == 0, error: -22 != 0
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_309/fi-hsw-4770r/igt@drm_read@short-buffer-block.html
  - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_310/fi-hsw-4770r/igt@drm_read@short-buffer-block.html
Comment 2 Chris Wilson 2019-07-12 14:27:53 UTC
It tried to initialise the crtc for driving the vblanks, and failed:

<7>[  150.028986] [drm:drm_mode_addfb2] [FB:88]
<7>[  150.046806] [drm:intel_atomic_check [i915]] [CONNECTOR:68:HDMI-A-1] Limiting display bpp to 24 instead of EDID bpp 24, requested bpp 36, max platform bpp 36
<7>[  150.046843] [drm:intel_hdmi_compute_config [i915]] picking bpc to 8 for HDMI output
<7>[  150.046897] [drm:intel_hdmi_compute_config [i915]] forcing pipe bpp to 24 for HDMI
<7>[  150.046947] [drm:intel_atomic_check [i915]] hw max bpp: 24, pipe bpp: 24, dithering: 0
<7>[  150.046978] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_hdisplay (expected 1024, found 1920)
<7>[  150.047009] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_htotal (expected 1344, found 2200)
<7>[  150.047041] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_hblank_start (expected 1024, found 1920)
<7>[  150.047072] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_hblank_end (expected 1344, found 2200)
<7>[  150.047102] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_hsync_start (expected 1048, found 2008)
<7>[  150.047133] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_hsync_end (expected 1184, found 2052)
<7>[  150.047163] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_vdisplay (expected 768, found 1080)
<7>[  150.047194] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_vtotal (expected 806, found 1125)
<7>[  150.047225] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_vblank_start (expected 768, found 1080)
<7>[  150.047255] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_vblank_end (expected 806, found 1125)
<7>[  150.047285] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_vsync_start (expected 771, found 1084)
<7>[  150.047315] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_vsync_end (expected 777, found 1089)
<7>[  150.047346] [drm:pipe_config_err [i915]] mismatch in base.adjusted_mode.crtc_clock (expected 65000, found 148500)
<7>[  150.047377] [drm:pipe_config_err [i915]] mismatch in port_clock (expected 65000, found 148500)
<7>[  150.047383] [drm:drm_atomic_helper_check_plane_state] Plane must cover entire CRTC
<7>[  150.047387] [drm:drm_rect_debug_print] dst: 1024x768+0+0
Comment 3 Martin Peres 2019-11-29 19:10:04 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/316.

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.