Re: [Intel-gfx] [PATCH 2/3] drm/i915: Store the reset counter when constructing a request

2015-12-03 Thread Daniel Vetter
On Tue, Dec 01, 2015 at 11:05:34AM +, Chris Wilson wrote: > As the request is only valid during the same global reset epoch, we can > record the current reset_counter when constructing the request and reuse > it when waiting upon that request in future. This removes a very hairy > atomic check

[Intel-gfx] [PATCH 2/3] drm/i915: Store the reset counter when constructing a request

2015-12-01 Thread Chris Wilson
As the request is only valid during the same global reset epoch, we can record the current reset_counter when constructing the request and reuse it when waiting upon that request in future. This removes a very hairy atomic check serialised by the struct_mutex at the time of waiting and allows us