[Bug 76671] [PNV/ILK Regression]X will be no response when run all piglit cases
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 27 22:59:31 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=76671
lu hua <huax.lu at intel.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #5 from lu hua <huax.lu at intel.com> ---
(In reply to comment #4)
> I think:
>
> diff --git a/drivers/gpu/drm/i915/i915_gem_context.c
> b/drivers/gpu/drm/i915/i915_gem_context.c
> index 021e21223c9c..91000ff1b626 100644
> --- a/drivers/gpu/drm/i915/i915_gem_context.c
> +++ b/drivers/gpu/drm/i915/i915_gem_context.c
> @@ -506,9 +506,6 @@ int i915_gem_context_enable(struct drm_i915_private
> *dev_priv)
> struct intel_ring_buffer *ring;
> int ret, i;
>
> - if (!HAS_HW_CONTEXTS(dev_priv->dev))
> - return 0;
> -
> /* This is the only place the aliasing PPGTT gets enabled, which means
> * it has to happen before we bail on reset */
> if (dev_priv->mm.aliasing_ppgtt) {
> @@ -833,7 +830,13 @@ int i915_switch_context(struct intel_ring_buffer *ring,
>
> /* We have the fake context */
> if (!HAS_HW_CONTEXTS(ring->dev)) {
> - ring->last_context = to;
> + if (to != ring->last_context) {
> + if (to)
> + i915_gem_context_reference(to);
> + if (ring->last_context)
> + i915_gem_context_unreference(ring->last_context);
> + ring->last_context = to;
> + }
> return 0;
> }
Test this patch, system boot fail.
--
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/20140328/d89fd4f2/attachment.html>
More information about the intel-gfx-bugs
mailing list