Re: [Intel-gfx] [PATCH 6/7] drm/i915: Store last context instead of the obj

2013-04-05 Thread Chris Wilson
On Thu, Apr 04, 2013 at 04:41:53PM -0700, Ben Widawsky wrote: Storing the last context requires refcounting. Mika recently submitted some refcounting patches which leverages our request mechanism. This is insufficient for my needs because we want to know the last context even if the request

Re: [Intel-gfx] [PATCH 6/7] drm/i915: Store last context instead of the obj

2013-04-05 Thread Ben Widawsky
On Fri, Apr 05, 2013 at 08:51:57AM +0100, Chris Wilson wrote: On Thu, Apr 04, 2013 at 04:41:53PM -0700, Ben Widawsky wrote: Storing the last context requires refcounting. Mika recently submitted some refcounting patches which leverages our request mechanism. This is insufficient for my

[Intel-gfx] [PATCH 6/7] drm/i915: Store last context instead of the obj

2013-04-04 Thread Ben Widawsky
Storing the last context requires refcounting. Mika recently submitted some refcounting patches which leverages our request mechanism. This is insufficient for my needs because we want to know the last context even if the request has ended, ie. doing the kref_put when a request is finished isn't