[Bug 74200] [snb regression] Suspend fails for i915 with [drm] stuck on render ring
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jan 30 13:50:53 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=74200
--- Comment #12 from Chris Wilson <chris at chris-wilson.co.uk> ---
All I can think of is that the macros get confused:
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index ab34163..abe91b8 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -251,7 +251,8 @@ i915_gem_dumb_create(struct drm_file *file,
struct drm_mode_create_dumb *args)
{
/* have to work out size/pitch and return them */
- args->pitch = ALIGN(args->width * DIV_ROUND_UP(args->bpp, 8), 64);
+ args->pitch = args->width * DIV_ROUND_UP(args->bpp, 8);
+ args->pitch = ALIGN(args->pitch, 64);
args->size = args->pitch * args->height;
return i915_gem_create(file, dev, args->size, &args->handle);
}
diff --git a/drivers/gpu/drm/i915/intel_fbdev.c
b/drivers/gpu/drm/i915/intel_fbdev.c
index d6a8a71..f0ef01a 100644
--- a/drivers/gpu/drm/i915/intel_fbdev.c
+++ b/drivers/gpu/drm/i915/intel_fbdev.c
@@ -74,8 +74,8 @@ static int intelfb_alloc(struct drm_fb_helper *helper,
mode_cmd.width = sizes->surface_width;
mode_cmd.height = sizes->surface_height;
- mode_cmd.pitches[0] = ALIGN(mode_cmd.width *
- DIV_ROUND_UP(sizes->surface_bpp, 8), 64);
+ mode_cmd.pitches[0] = mode_cmd.with * DIV_ROUND_UP(sizes->surface_bpp,
8);
+ mode_cmd.pitches[0] = ALIGN(mode_cmd.pitches[0], 64);
mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp,
sizes->surface_depth);
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20140130/0cb59730/attachment-0001.html>
More information about the intel-gfx-bugs
mailing list