Summary: | glxgears and other GL applications crash with "intel_do_flush_locked failed: Invalid argument" | ||
---|---|---|---|
Product: | Mesa | Reporter: | Samuel Rødal <srodal> |
Component: | Drivers/DRI/i965 | Assignee: | Kenneth Graunke <kenneth> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | medium | ||
Version: | 8.0 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Samuel Rødal
2012-02-29 04:36:31 UTC
commit c25e5300cba7628b58df93ead14ebc3cc32f338c Author: Kenneth Graunke <kenneth@whitecape.org> Date: Fri Jan 20 03:33:40 2012 -0800 i965: Fix border color on Sandybridge and Ivybridge. ... looks like Ken botched checking for older kernels that don't allow relocs beyond the end of the buffer. Thanks Daniel, I had no idea that was a new kernel feature. Fixed in Mesa master by: commit b2ace06cbbbb1021e2d7ace12a985c6406821939 Author: Kenneth Graunke <kenneth@whitecape.org> Date: Wed Feb 29 12:32:41 2012 -0800 i965: Fix Gen6+ dynamic state upper bound on older kernels. Kernels prior to 271d81b84171d84723357ae6d172ec16b0d8139c (March 2011) don't support relocations outside of the target buffer object. Rather than guarding this with a I915_PARAM_HAS_RELAXED_DELTA check, just smash the bound to 0xfffff001 like we do on Ironlake. This effectively gives us no upper bound check, just like we did prior to commit 271d81b84171d84723357ae6d172ec16b0d8139c. Daniel Vetter would also like to mention that this relies on the guard page at the end of the GTT. NOTE: This is a candidate for release branches. Fixes a regression since 271d81b84171d84723357ae6d172ec16b0d8139c. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46766 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> I'll cherry-pick it to 8.0 in a few days, barring any problems. Oops. This got cherry-picked a while ago as commit 3d036f3f0aa7360c58d76b3f5114e1cf8c32260c. Closing. |
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.