public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Nick Hoath <nicholas.hoath@intel.com>, intel-gfx@lists.freedesktop.org
Cc: daniel.vetter@ffwll.ch
Subject: Re: [PATCH 4/4] drm/i915: Subsume intel_ctx_submit_request in to drm_i915_gem_request
Date: Thu, 29 Jan 2015 15:42:03 +0000	[thread overview]
Message-ID: <54CA54CB.8090808@linux.intel.com> (raw)
In-Reply-To: <1421327439-13166-5-git-send-email-nicholas.hoath@intel.com>


On 01/15/2015 01:10 PM, Nick Hoath wrote:
>   void intel_execlists_retire_requests(struct intel_engine_cs *ring)
>   {
> -	struct intel_ctx_submit_request *req, *tmp;
> +	struct drm_i915_gem_request *req, *tmp;
>   	struct drm_i915_private *dev_priv = ring->dev->dev_private;
>   	unsigned long flags;
>   	struct list_head retired_list;
> @@ -776,7 +771,7 @@ void intel_execlists_retire_requests(struct intel_engine_cs *ring)
>   	spin_unlock_irqrestore(&ring->execlist_lock, flags);
>
>   	list_for_each_entry_safe(req, tmp, &retired_list, execlist_link) {
> -		struct intel_context *ctx = req->request->ctx;
> +		struct intel_context *ctx = req->ctx;
>   		struct drm_i915_gem_object *ctx_obj =
>   				ctx->engine[ring->id].state;
>
> @@ -784,9 +779,8 @@ void intel_execlists_retire_requests(struct intel_engine_cs *ring)
>   			intel_lr_context_unpin(ring, ctx);
>   		intel_runtime_pm_put(dev_priv);
>   		i915_gem_context_unreference(ctx);
> -		i915_gem_request_unreference(req->request);
> +		i915_gem_request_unreference(req);
>   		list_del(&req->execlist_link);

It looks like the this req unreference can be the last one in which case 
list_del explodes. I don't know if it was intended that it cannot be the 
last unreference, but I have a log which proves it can be. :)

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2015-01-29 15:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-15 13:10 [PATCH 0/4] drm/i915: Untangle execlist tracking Nick Hoath
2015-01-15 13:10 ` [PATCH 1/4] drm/i915: execlist request keeps ptr/ref to gem_request Nick Hoath
2015-01-15 13:10 ` [PATCH 2/4] drm/i915: Removed duplicate members from submit_request Nick Hoath
2015-01-15 13:10 ` [PATCH 3/4] drm/i915: Remove FIXME_lrc_ctx backpointer Nick Hoath
2015-01-15 13:10 ` [PATCH 4/4] drm/i915: Subsume intel_ctx_submit_request in to drm_i915_gem_request Nick Hoath
2015-01-16  7:23   ` shuang.he
2015-01-29 15:42   ` Tvrtko Ursulin [this message]
2015-01-16  9:48 ` [PATCH 0/4] drm/i915: Untangle execlist tracking Daniel, Thomas
2015-01-20  9:41   ` Daniel Vetter
  -- strict thread matches above, loose matches on Subject: below --
2015-01-12 15:33 Nick Hoath
2015-01-12 15:33 ` [PATCH 4/4] drm/i915: Subsume intel_ctx_submit_request in to drm_i915_gem_request Nick Hoath
2015-01-12 21:19   ` shuang.he
2014-12-22  9:37 [PATCH 0/4] drm/i915: Untangle execlist tracking Nick Hoath
2014-12-22  9:37 ` [PATCH 4/4] drm/i915: Subsume intel_ctx_submit_request in to drm_i915_gem_request Nick Hoath
2014-12-16 12:32 [PATCH 0/4] drm/i915: Untangle execlist tracking Nick Hoath
2014-12-16 12:32 ` [PATCH 4/4] drm/i915: Subsume intel_ctx_submit_request in to drm_i915_gem_request Nick Hoath
2014-12-16 17:49   ` shuang.he
2014-12-17 20:39   ` Daniel Vetter
2014-12-17 20:42     ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54CA54CB.8090808@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=nicholas.hoath@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox