diff options
| author | Chris Wilson <[email protected]> | 2016-04-13 17:35:06 +0100 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2016-04-14 10:45:40 +0100 |
| commit | 299259a3a965c0a831e01a5dbfe78729f126a420 (patch) | |
| tree | 51bcbe577f09eee1763a394b95eb56b325d4dc01 /tools/perf/scripts/python | |
| parent | d98c52cf4fa2bb7116a89f1132fc773b1cfa6436 (diff) | |
drm/i915: Store the reset counter when constructing a request
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 to transfer those waits to a central dispatcher for all
waiters and all requests.
PS: With per-engine resets, we obviously cannot assume a global reset
epoch for the requests - a per-engine epoch makes the most sense. The
challenge then is how to handle checking in the waiter for when to break
the wait, as the fine-grained reset may also want to requeue the
request (i.e. the assumption that just because the epoch changes the
request is completed may be broken - or we just avoid breaking that
assumption with the fine-grained resets).
Signed-off-by: Chris Wilson <[email protected]>
Cc: Daniel Vetter <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions