[Bug 64610] [845g regression] Suspend does not work on 845g with kernel 3.8.0-rc6

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 24 04:12:12 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=64610

--- Comment #9 from Chris Wilson <chris at chris-wilson.co.uk> ---
Can you please try:

diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c
b/drivers/gpu/drm/i915/inte
index 1d5d613..d1b3cc1 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -1715,7 +1715,9 @@ int intel_init_render_ring_buffer(struct drm_device *dev)
                struct drm_i915_gem_object *obj;
                int ret;

-               obj = i915_gem_alloc_object(dev, I830_BATCH_LIMIT);
+               obj = i915_gem_object_create_stolen(dev, I830_BATCH_LIMIT);
+               if (obj == NULL)
+                       obj = i915_gem_alloc_object(dev, I830_BATCH_LIMIT);
                if (obj == NULL) {
                        DRM_ERROR("Failed to allocate batch bo\n");
                        return -ENOMEM;

Though I suspect we may need a SRC_COLOR command to clear the ring->private on
every ring init.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20130624/960c58b1/attachment.html>


More information about the intel-gfx-bugs mailing list