Bug 65532 - [IVB/HSW SNA Bisected]Piglit glx_glx-swap-event_async timeout
Summary: [IVB/HSW SNA Bisected]Piglit glx_glx-swap-event_async timeout
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high major
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-08 06:32 UTC by lu hua
Modified: 2013-06-09 06:50 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description lu hua 2013-06-08 06:32:09 UTC
System Environment:
--------------------------
Arch:           x86_64
Platform:       Ivybridge/Haswell
Libdrm:		(master)libdrm-2.4.45-7-ga0178c00c70f4b47e09ed7564fc2ccde611231a0
Mesa:		(master)f8df73f41c5f4e461dc7de8cd3a7b32b04dfbf2e
Xserver:	(master)xorg-server-1.14.99.1-119-gc21344add2fc589df83b29be5831c36a372201bd
Xf86_video_intel:(master)2.21.9-5-gab47433b20a623bf790acfbf2005a8782d177f64
Cairo:		(master)17dc312221c294b120bd159e01f5f566c6ec4a2d
Libva:		(staging)35f2a712e93d5eeadeafab72aa2a41cfb54512bc
Libva_intel_driver:(staging)3159d525c24212419b136fcf772c20387631b7c8
Kernel:	(drm-intel-nightly) e93a016e97c27dc9325e7a25409228ae54fc14a4

Bug detailed description:
-----------------------------
It happens on Ivybridge/Haswell when enable SNA. It works well with EXA.
Following cases also has this issue:
webglc:
conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgb565.html	
conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba4444.html	
conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba5551.html	
conformance/textures/tex-image-and-sub-image-2d-with-canvas.html	
conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html	
conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444.html	
conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html	
conformance/textures/tex-image-and-sub-image-2d-with-video.html	
conformance/textures/texture-npot-video.html	
conformance/textures/texture-size-cube-maps.html	
conformance/textures/texture-size-limit.html	
conformance/textures/texture-size.html	
conformance/uniforms/out-of-bounds-uniform-array-access.html	
Piglit:
glx_glx-swap-event_async	
glx_glx-swap-singlebuffer	
glx_glx-tfp	
glx_glx-visuals-depth	
glx_glx-visuals-stencil	
spec_EGL_1.4_eglCreateSurface	
spec_EGL_1.4_eglQuerySurface_EGL_BAD_ATTRIBUTE	
spec_EGL_1.4_eglQuerySurface_EGL_BAD_SURFACE	
spec_EGL_1.4_eglQuerySurface_EGL_HEIGHT	
spec_EGL_1.4_eglQuerySurface_EGL_WIDTH	
spec_EGL_NOK_swap_region_basic	
spec_EGL_NOK_texture_from_pixmap_basic	
Piglit_gles2
gles2_shaders_18_else_case	
gles2_shaders_for_33	
gles2_shaders_for_if_continue	
gles2_shaders_prog_vertex	
Ogles1conform:
apfunc.c
bclear.c
bcolor.c
bcorner.c
blend.c
colramp.c
dither.c
divzero.c
linehv.c
linerast.c
logicop.c
l_ac.c
l_al.c
l_am.c
l_ap.c
l_as.c
mask.c
mstack.c
mustpass.c
pntaa.c
pntrast.c
polycull.c
scissor.c
spclear.c
spcorner.c
spfunc.c
spop.c
trirast.c
tritile.c
vorder.c
vpclamp.c
xform.c
xformmix.c
xformn.c
xformvp.c
zbclear.c
zbfunc.c

Bisect shows:9b52c852aaf42dde3a7f29c065e4d5230eac7a64 is the first bad commit
commit 9b52c852aaf42dde3a7f29c065e4d5230eac7a64
Author:     Chris Wilson <chris@chris-wilson.co.uk>
AuthorDate: Thu Jun 6 16:40:01 2013 +0100
Commit:     Chris Wilson <chris@chris-wilson.co.uk>
CommitDate: Thu Jun 6 16:43:24 2013 +0100

    sna/dri: Handle fast double flips across mode changes

    The tricky nature of the double flip is that there is no SwapComplete
    pending and so we must avoid calling it under such circumstances.

    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

output:
The GLX_INTEL_swap_event is supported in current version.

Reproduce steps:
----------------------------
1. enable SNA
2. xinit
3. ./bin/glx-swap-event -auto --async
Comment 1 Chris Wilson 2013-06-08 06:46:23 UTC
Should have been fixed by the time you started the bisect.

commit e85271e516f811c60f440de61995cc5baf469a47
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Jun 7 13:35:48 2013 +0100

    sna/dri: Do not decouple the flip after chaining up a blit
Comment 2 lu hua 2013-06-09 06:50:04 UTC
Verified.Fixed.


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.