Bug 107161

Summary: [CI][SKL+] kms_draw_crc, kms_flip,tiling,... - igt_debugfs-DEBUG: CRC mismatch at index 0:
Product: DRI Reporter: Tomi Sarvela <tomi.p.sarvela>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED WORKSFORME 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:
i915 platform: BXT, CFL, GLK, KBL, SKL i915 features:

Description Tomi Sarvela 2018-07-09 07:51:06 UTC
Intel-GFX-CI is finding a lot of CRC mismatches after one wide filter was made more specific to its case. This issue can be seen on hosts from gen SKL forwards (SKL, KBL, APL, CFL, GLK)

and is found with tests

igt@kms_draw_crc@draw-method-xrgb2101010-render-untiled
igt@kms_draw_crc@draw-method-xrgb2101010-render-xtiled
igt@kms_draw_crc@draw-method-xrgb2101010-render-ytiled
igt@kms_draw_crc@draw-method-xrgb8888-render-untiled
igt@kms_draw_crc@draw-method-xrgb8888-render-xtiled

igt@kms_flip_tiling@flip-to-x-tiled
igt@kms_flip_tiling@flip-to-y-tiled
igt@kms_flip_tiling@flip-x-tiled
igt@kms_flip_tiling@flip-y-tiled

igt@kms_plane@pixel-format-pipe-a-planes

igt@kms_pwrite_crc

Example error output:

https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4543/shard-glk3/igt@kms_draw_crc@draw-method-xrgb8888-render-xtiled.html

(kms_draw_crc:1380) igt_debugfs-CRITICAL: Test assertion failure function igt_assert_crc_equal, file ../lib/igt_debugfs.c:370:
(kms_draw_crc:1380) igt_debugfs-CRITICAL: Failed assertion: !mismatch
Subtest draw-method-xrgb8888-render-xtiled failed.
**** DEBUG ****
(kms_draw_crc:1380) DEBUG: Test requirement passed: !(method == IGT_DRAW_MMAP_WC && !gem_mmap__has_wc(drm_fd))
(kms_draw_crc:1380) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(kms_draw_crc:1380) ioctl_wrappers-DEBUG: Test requirement passed: has_modifiers
(kms_draw_crc:1380) DEBUG: Test requirement passed: format_is_supported(formats[format_index], tiling)
(kms_draw_crc:1380) igt_fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x0, size=0)
(kms_draw_crc:1380) igt_fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_draw_crc:1380) igt_fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x100000000000001, size=0)
(kms_draw_crc:1380) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(kms_draw_crc:1380) igt_fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(!rendercopy)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(rect->x % (32 / buf->bpp) != 0 || rect->y % (32 / buf->bpp) != 0 || rect->w % (32 / buf->bpp) != 0 || rect->h % (32 / buf->bpp) != 0)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(!rendercopy)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(rect->x % (32 / buf->bpp) != 0 || rect->y % (32 / buf->bpp) != 0 || rect->w % (32 / buf->bpp) != 0 || rect->h % (32 / buf->bpp) != 0)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(!rendercopy)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(rect->x % (32 / buf->bpp) != 0 || rect->y % (32 / buf->bpp) != 0 || rect->w % (32 / buf->bpp) != 0 || rect->h % (32 / buf->bpp) != 0)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(!rendercopy)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(rect->x % (32 / buf->bpp) != 0 || rect->y % (32 / buf->bpp) != 0 || rect->w % (32 / buf->bpp) != 0 || rect->h % (32 / buf->bpp) != 0)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(!rendercopy)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: !(rect->x % (32 / buf->bpp) != 0 || rect->y % (32 / buf->bpp) != 0 || rect->w % (32 / buf->bpp) != 0 || rect->h % (32 / buf->bpp) != 0)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_draw-DEBUG: Test requirement passed: gem_get_tiling(fd, buf->handle, &tiling, &swizzle)
(kms_draw_crc:1380) igt_debugfs-DEBUG: CRC mismatch at index 0: 0x17128270 != 0x12eca29
(kms_draw_crc:1380) igt_debugfs-CRITICAL: Test assertion failure function igt_assert_crc_equal, file ../lib/igt_debugfs.c:370:
(kms_draw_crc:1380) igt_debugfs-CRITICAL: Failed assertion: !mismatch
(kms_draw_crc:1380) igt_core-INFO: Stack trace:
(kms_draw_crc:1380) igt_core-INFO:   #0 [__igt_fail_assert+0x180]
(kms_draw_crc:1380) igt_core-INFO:   #1 [igt_assert_crc_equal+0xba]
(kms_draw_crc:1380) igt_core-INFO:   #2 [draw_method_subtest+0x1df]
(kms_draw_crc:1380) igt_core-INFO:   #3 [__real_main316+0xc7]
(kms_draw_crc:1380) igt_core-INFO:   #4 [main+0x44]
(kms_draw_crc:1380) igt_core-INFO:   #5 [__libc_start_main+0xe7]
(kms_draw_crc:1380) igt_core-INFO:   #6 [_start+0x2a]
****  END  ****
Comment 1 Martin Peres 2018-09-14 12:27:12 UTC
This seems to have been fixed, except for some SNB issues which have been filed here: https://bugs.freedesktop.org/show_bug.cgi?id=107932
Comment 2 Lakshmi 2018-10-13 14:06:49 UTC
This issue used to occur in every round IGT/CI_DRM/drm-tip.
Not seen since 1 month 4 weeks. Closing this bug.

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.