Bug 81898

Summary: [BDW GT3 Bisected] Glxgears show black after start gnome-session in the default setting of X server
Product: xorg Reporter: yaoming <ming.yao>
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: RESOLVED DUPLICATE QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: blocker    
Priority: high CC: chris, ming.yao
Version: git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
Xorg.0.log
none
glxinfo none

Description yaoming 2014-07-30 05:44:46 UTC
The glxgears show black when X on and gnome-session started.
It is problem of Xf86.
The first bad commit is:

commit 1618d6cfa63e31ebaedadf575dcbdf5b07451bde
Author:     Chris Wilson <chris@chris-wilson.co.uk>
AuthorDate: Fri May 30 12:14:40 2014 +0100
Commit:     Chris Wilson <chris@chris-wilson.co.uk>
CommitDate: Mon Jun 2 08:32:10 2014 +0100

    sna/gen8: Set GT level

    We use the GT level to decide how favourable it is to use the GPU in
    various circumstances, now set it.

Signed-off-by: Chris Wilson chris@chris-wilson.co.uk
Comment 1 Chris Wilson 2014-07-30 05:55:42 UTC
Bisect result is misleading. Please move that commit earlier in bdw enabling and rebisect. You managed to include no information here, please attach the usual logs (dmesg, Xorg.0.log and glxinfo).
Comment 2 yaoming 2014-07-31 02:55:58 UTC
[BDW Bisected] Glxgears issue
----------------------------------------------

==System Environment==
--------------------------
Platform: BDW
 Libdrm:(master)libdrm-2.4.54-9-g8fc62ca8ac010659023bb63c4759eb683de4f9af
 Mesa:(master)84e0a5c406f2a8f060352eaa4b5c138e3f1a5a86
 Xserver:(master)xorg-server-1.15.99.902-97-gdb2e708f31a162c6c66643d3559dd5f3e21ee06b
 Xf86_video_intel:(master)2.99.911-225-gffbe0aa1851c35cc2403633ca493e9fc6a471fd4
 Cairo:(master)ead5c7909f3db1d0d81121fc2775c458871891b2
 Libva:(staging)35e70cb9b9c77dfb99fb370e319ed501f0c31b17
 Libva_intel_driver:(staging)fbbe401aa28a0b3859d587ef08f0df15a2f7c8f2
 Kernel:(drm-intel-nightly) 164a4cb4c1431a0689f85507868356fae24da638

Bug detailed description:
----------------------------------------------
The problem exists both on gnome-session and Raw X.
And it show different issues with SNA on and off: glxgears show black when SNA on and very jitter when SNA off.
It’s Xf86 regression, bisecting show that the first bad commit is:

commit 1618d6cfa63e31ebaedadf575dcbdf5b07451bde
Author:     Chris Wilson <chris@chris-wilson.co.uk>
AuthorDate: Fri May 30 12:14:40 2014 +0100
Commit:     Chris Wilson <chris@chris-wilson.co.uk>
CommitDate: Mon Jun 2 08:32:10 2014 +0100

    sna/gen8: Set GT level

    We use the GT level to decide how favourable it is to use the GPU in
    various circumstances, now set it.

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


Reproduce steps:
---------------------------------------------
1.	xinit &
2.	gnome-session &
3.      glxgears &
Comment 3 Chris Wilson 2014-07-31 05:45:33 UTC
As said, that bisect is misleading and you still haven't provided the basic information.
Comment 4 yaoming 2014-07-31 06:33:31 UTC
Created attachment 103724 [details]
dmesg
Comment 5 yaoming 2014-07-31 06:34:04 UTC
Created attachment 103725 [details]
Xorg.0.log
Comment 6 yaoming 2014-07-31 06:34:37 UTC
Created attachment 103726 [details]
glxinfo
Comment 7 Chris Wilson 2014-07-31 06:41:25 UTC
xf86-video-intel 2.99.911?
Comment 8 Chris Wilson 2014-07-31 06:42:26 UTC

*** This bug has been marked as a duplicate of bug 81583 ***
Comment 9 yaoming 2014-08-08 08:52:40 UTC
==Bisect results==
----------------------------
Bisect shows 1618d6cfa63e31ebaedadf575dcbdf5b07451bde is the first bad commit

    commit 1618d6cfa63e31ebaedadf575dcbdf5b07451bde
    Author:     Chris Wilson <chris@chris-wilson.co.uk>
    AuthorDate: Fri May 30 12:14:40 2014 +0100
    Commit:     Chris Wilson <chris@chris-wilson.co.uk>
    CommitDate: Mon Jun 2 08:32:10 2014 +0100

        sna/gen8: Set GT level

        We use the GT level to decide how favourable it is to use the GPU in
        various circumstances, now set it.

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

when run "X &" then "glxgears &"=> the glxgears show normal,
when run "X &" then "gnome-session & "then "glxgears &"=> the glxgears show black.

Here is its parents commit:
    commit bb49222a514b1d6041f3d9530a22f5701377118b
    Author:     Chris Wilson <chris@chris-wilson.co.uk>
    AuthorDate: Mon Jun 2 08:25:52 2014 +0100
    Commit:     Chris Wilson <chris@chris-wilson.co.uk>
    CommitDate: Mon Jun 2 08:32:10 2014 +0100

        sna: Add DBG hints for using inplace CPU mmappings

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

when run "X &" then "glxgears &"=> the glxgears show normal,
when run "X &" then "gnome-session & "then "glxgears &"=> the glxgears show normal.

All my testing results based on the default Xserver setting(SNA on).
Comment 10 Chris Wilson 2014-08-08 08:57:24 UTC

*** This bug has been marked as a duplicate of bug 81583 ***
Comment 11 Chris Wilson 2014-08-08 08:58:01 UTC
The bisect is misleading as that commit only changes the priorities of code paths, to bisect properly you would rearrange the commits and bisect through the bdw code changes.
Comment 12 yaoming 2014-08-11 04:18:51 UTC
(In reply to comment #11)
> The bisect is misleading as that commit only changes the priorities of code
> paths, to bisect properly you would rearrange the commits and bisect through
> the bdw code changes.

I don't know much about Rendercheck.
I test Rendercheck on my bisect results(both on bad and good commit).It all shows like this:

[root@x-bdwmedia xf86-video-intel]# rendercheck -t blend,composite -f a8r8g8b8
rendercheck 1.4
Render extension version 0.11
Window format: r8g8b8
Ignoring server-supported format: a8
Found server-supported format: a8r8g8b8
Ignoring server-supported format: x8r8g8b8
Ignoring server-supported format: b8g8r8a8
Ignoring server-supported format: b8g8r8x8
Ignoring server-supported format: r8g8b8
Ignoring server-supported format: b8g8r8
Ignoring server-supported format: r5g5b5
Ignoring server-supported format: b5g5r5
Ignoring server-supported format: x1r5g5b5
Ignoring server-supported format: x1b5g5r5
Ignoring server-supported format: r5g6b5
Ignoring server-supported format: b5g6r5
Ignoring server-supported format: x8b8g8r8
Ignoring server-supported format: x2r10g10b10
Ignoring server-supported format: x2b10g10r10
Beginning blend test on a8r8g8b8
Src blend test error of 255.0000 at (0, 0) --
           R     G     B     A
got:       0.000 0.000 0.000 0.000
expected:  1.000 1.000 1.000 1.000
src color: 1.00 1.00 1.00 1.00 (a8r8g8b8)
dst color: 1.00 1.00 1.00 1.00
src: 1x1R a8r8g8b8, dst: a8r8g8b8
Beginning blend test on r8g8b8 window
Src blend test error of 255.0000 at (0, 0) --
           R     G     B     A
got:       0.000 0.000 0.000 1.000
expected:  1.000 1.000 1.000 1.000
src color: 1.00 1.00 1.00 1.00 (a8r8g8b8)
dst color: 1.00 1.00 1.00 1.00
src: 1x1R a8r8g8b8, dst: r8g8b8 window
Beginning composite mask test on a8r8g8b8
Src composite test error of 255.0000 at (0, 0) --
           R     G     B     A
got:       0.000 0.000 0.000 0.000
expected:  1.000 1.000 1.000 1.000
src color: 1.00 1.00 1.00 1.00
msk color: 1.00 1.00 1.00 1.00
dst color: 1.00 1.00 1.00 1.00
src: 1x1R a8r8g8b8, mask: 1x1R a8r8g8b8, dst: a8r8g8b8
Beginning composite mask test on r8g8b8 window
Src composite test error of 255.0000 at (0, 0) --
           R     G     B     A
got:       0.000 0.000 0.000 1.000
expected:  1.000 1.000 1.000 1.000
src color: 1.00 1.00 1.00 1.00
msk color: 1.00 1.00 1.00 1.00
dst color: 1.00 1.00 1.00 1.00
src: 1x1R a8r8g8b8, mask: 1x1R a8r8g8b8, dst: r8g8b8 window
0 tests passed of 4 total
Successful Groups:

So I think the bisect results only applies to gnome+glxears, but not Rendercheck
Comment 13 Gordon Jin 2014-08-12 06:58:48 UTC
(In reply to comment #12)
> So I think the bisect results only applies to gnome+glxears, but not
> Rendercheck

so reopening dup.
Comment 14 Chris Wilson 2014-08-12 07:24:43 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > So I think the bisect results only applies to gnome+glxears, but not
> > Rendercheck
> 
> so reopening dup.

Nope, that just supports it.

*** This bug has been marked as a duplicate of bug 81853 ***

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.