Bug 85060 - [BDW] Desktop (font/texts) is corrupted after running SynMark test(s)
Summary: [BDW] Desktop (font/texts) is corrupted after running SynMark test(s)
Status: VERIFIED DUPLICATE of bug 84958
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on: 84958
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-15 13:44 UTC by Eero Tamminen
Modified: 2014-11-20 17:11 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Screenshot of broken gnome-terminal (4.55 KB, image/png)
2014-11-06 16:34 UTC, Eero Tamminen
no flags Details

Description Eero Tamminen 2014-10-15 13:44:16 UTC
Everything seems to work OK in GL composited Ubuntu Unity desktop, but desktop is messed up (all text is invisible/garbage) after running SynMark2 tests (e.g. OglDrv* ones) if one uses non-compositing window manager or non-GL composting window manager.

If one triggers GPU reset from sysfs:
    echo 1 > /sys/kernel/debug/dri/0/i915_wedged

The problem goes away.

Comment from Chris:
---------------------------
The DRI clients operate in an isolated hardware context(s), but X uses the global context.  This means that either mesa is corrupting surface outside of its GTT  e.g. through the global GTT, of which there are still reports in bugzilla) or that X is not setting up all the state that it uses when rendering. The   escription of how the GPU reset fixes things suggests the latter.
---------------------------

Not sure whether this is related to bug 84958, both seem to have been on BDW  "always".
Comment 1 Chris Wilson 2014-10-24 16:38:26 UTC
Try

diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c
index 73ab488..e5206df 100644
--- a/src/mesa/drivers/dri/i965/intel_blit.c
+++ b/src/mesa/drivers/dri/i965/intel_blit.c
@@ -316,7 +316,7 @@ intelEmitCopyBlit(struct brw_context *brw,
       if (src_offset & 4095)
         return false;
    }
-   if ((dst_y_tiled || src_y_tiled) && brw->gen < 6)
+   if (dst_y_tiled || src_y_tiled)
       return false;
 
    /* do space check before going any further */
Comment 2 Eero Tamminen 2014-11-04 15:12:14 UTC
This issue is triggered by running a program suffering from bug 84958 and test-cases that don't trigger bug 84958 don't seem to cause this.  -> adding dependency

(In reply to Chris Wilson from comment #1)
> -   if ((dst_y_tiled || src_y_tiled) && brw->gen < 6)
> +   if (dst_y_tiled || src_y_tiled)
>        return false;

This didn't affect the issue.
Comment 3 Chris Wilson 2014-11-06 11:16:14 UTC
Eero, do you have a moment to see if the recent couple of BDW fixes resolve this corruption as well?
Comment 4 Eero Tamminen 2014-11-06 16:00:37 UTC
(In reply to Chris Wilson from comment #3)
> Eero, do you have a moment to see if the recent couple of BDW fixes resolve
> this corruption as well?

Unfortunately, when trying this, I still got the frame update stop issue on F0.

Not sure whether it's due to test setup. We verified bug 84958 with Ubuntu 14.04 slim + unity setup (with no panels), on two different BDW machines, this I tried to verify with X, icewm, gnome-terminal combo with which I had originally encountered it.

These setups are on different disks, but I've run them on same machine, so machine shouldn't be a problem.  I'm not able to run Unity on the failing setup with latest X etc (X crashes when Unity comes up) to check whether (Unity/compiz) compositor would there hide bug 84958.  On the slim+unity setup, stopping slim [1] freezes all keyboard input on the machine for some reason (haven't had time to debug that more yet), so I couldn't try there things without compositor to see whether that reveals the bug again.

I'll try to get both setups working tomorrow.

[1] haven't been able to get our own X running with Ubuntu lightdm, that's why slim session manager is used instead.  lightdm removes LD_LIBRARY_PATH etc from environment, but fixing that and few other issues still doesn't produce working desktop, unlike with slim.
Comment 5 Eero Tamminen 2014-11-06 16:34:34 UTC
Created attachment 109051 [details]
Screenshot of broken gnome-terminal
Comment 6 Eero Tamminen 2014-11-20 17:11:42 UTC
Was able to test plain X also with lightdm setup.   There this works.  Same thing after updating to Ubuntu 14.10.  Setting as DUP of bug 84958.

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


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.