From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [RFC] [PATCH 6/7] drm/i915: reference count for i915_hw_contexts Date: Thu, 14 Feb 2013 21:55:22 -0800 Message-ID: <20130215055522.GA30113@bwidawsk.net> References: <1359986683-29788-1-git-send-email-mika.kuoppala@intel.com> <1359986683-29788-7-git-send-email-mika.kuoppala@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.chad-versace.us (209-20-75-48.static.cloud-ips.com [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 999BCE5C3C for ; Thu, 14 Feb 2013 21:53:56 -0800 (PST) Content-Disposition: inline In-Reply-To: <1359986683-29788-7-git-send-email-mika.kuoppala@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Mika Kuoppala Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Feb 04, 2013 at 04:04:42PM +0200, Mika Kuoppala wrote: > When using i915_hw_context pointer in request struct, > we need to use reference counts as context might be > released before request processing takes place. > > v2: track i915_hw_context pointers instead of using ctx_ids > (from Chris Wilson) > > Signed-off-by: Mika Kuoppala It's satisfying to me to see this given that Daniel killed my version of this patch so long ago. http://lists.freedesktop.org/archives/intel-gfx/2012-March/015519.html -- Ben Widawsky, Intel Open Source Technology Center