Bug 19268 - UXA broken with VT switching
Summary: UXA broken with VT switching
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other All
: high major
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 18858
  Show dependency treegraph
 
Reported: 2008-12-23 18:39 UTC by Eric Anholt
Modified: 2009-01-06 11:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Eric Anholt 2008-12-23 18:39:15 UTC
since aae4008096399a0e84abc7c016b35092caf9db25 of the 2D driver, VT switching back in with UXA triggers a kernel BUG.  The BUG is legit, it seems -- objects got pinned while dev_priv->mm.suspended, which we overlooked when planning the GTT lookaside hack in userland.  Switching back to EXA or reverting the commit works around it.

Marking it as a 2D blocker, as the kernel fix will likely result in userland needing fixing.
Comment 1 Eric Anholt 2008-12-23 18:47:53 UTC
kernel half of the fix posted to intel-gfx.
Comment 2 Gordon Jin 2008-12-23 19:18:20 UTC
That commit is only on master branch, not on xf86-video-intel-2.6-branch, so not in the release (candidate) yet.

Since Eric will be on vacation, I'm assigning it to Zhenyu.
Comment 3 Gordon Jin 2008-12-26 00:50:45 UTC
For reference, aae4008096399a0e84abc7c016b35092caf9db25 fixed bug#19010,19014,19074.
Comment 4 Eric Anholt 2008-12-31 11:33:55 UTC
commit 1f61e97904dfe5f8c08bb9f284cfdfe878f7e541
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Wed Dec 31 22:56:57 2008 +0800

    UXA: Fallback to dri_bo_map() if pin failed
    
    This fixes VT switch issue with UXA after Eric's
    aae4008096399a0e84abc7c016b35092caf9db25 on 2D side.
Comment 5 Michael Fu 2009-01-05 18:07:38 UTC
"after the patch, there are still bad wrong render results after VT switch" - zhenyu

reopen this bug...
Comment 6 Gordon Jin 2009-01-05 18:44:09 UTC
Since the kernel BUG has been fixed by Eric, and the remaining issue is just rendering, I'm decreasing the severity so this won't block Q4 release.
Comment 7 Eric Anholt 2009-01-06 11:27:03 UTC
commit 342120be0956bfc12822d1ffbfbd8aaabf3e922f
Author: Eric Anholt <eric@anholt.net>
Date:   Mon Jan 5 23:21:07 2009 -0800

    Fix pin leakage with EXA GTT-mapping shortcut, and crash with UXA on KMS.


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.