Bug 12900
Summary: | [intel 855GM] problems with tiled output in various circumstances | ||
---|---|---|---|
Product: | Drivers | Reporter: | Daniel Vetter (daniel) |
Component: | Video(DRI - non Intel) | Assignee: | drivers_video-dri |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | alan, jbarnes, remi |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.29-rc8 | Subsystem: | |
Regression: | Yes | Bisected commit-id: |
Description
Daniel Vetter
2009-03-20 07:59:39 UTC
Hi Jesse, I started at the patch for a while, reverted various chunks and finally found the problem. When I reverted the following lines (on top of recent -linus), everything (glxgears in kms and non-kms ddx) works again: --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -186,12 +186,12 @@ #define FENCE_REG_830_0 0x2000 #define I830_FENCE_START_MASK 0x07f80000 #define I830_FENCE_TILING_Y_SHIFT 12 -#define I830_FENCE_SIZE_BITS(size) ((get_order(size >> 19) - 1) << 8) +#define I830_FENCE_SIZE_BITS(size) ((ffs((size) >> 19) - 1) << 8) #define I830_FENCE_PITCH_SHIFT 4 #define I830_FENCE_REG_VALID (1<<0) #define I915_FENCE_START_MASK 0x0ff00000 -#define I915_FENCE_SIZE_BITS(size) ((get_order(size >> 20) - 1) << 8) +#define I915_FENCE_SIZE_BITS(size) ((ffs((size) >> 20) - 1) << 8) #define FENCE_REG_965_0 0x03000 #define I965_FENCE_PITCH_SHIFT 2 I'm using this now with kms to write this comment, so it seems to not have any bad effects. Does that help in tracking down the root cause of these tiling problems? -Daniel Can you please close this out? I try to keep even drm/i915 bugs at freedesktop.org just to save me some web surfing. |