diff options
| author | Alex Dai <[email protected]> | 2015-12-16 11:45:55 -0800 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2016-01-05 11:07:32 +0100 |
| commit | a7e02199ae430c0b41ee2b3079ccbbaff2393baf (patch) | |
| tree | 37ab45b1b860bf541d21b0aada6962de52f3bbc5 /tools/perf/scripts/python/netdev-times.py | |
| parent | c1a415e261aad096b3458ba9157fefd123aa7cbf (diff) | |
drm/i915/guc: Move GuC wq_check_space to alloc_request_extras
Split GuC work queue space checking from submission and move it to
ring_alloc_request_extras. The reason is that failure in later
i915_add_request() won't be handled. In the case timeout happens,
driver can return early in order to handle the error.
v1: Move wq_reserve_space to ring_reserve_space
v2: Move wq_reserve_space to alloc_request_extras (Chris Wilson)
v3: The work queue head pointer is cached by driver now. So we can
quickly return if space is available.
s/reserve/check/g (Dave Gordon)
v4: Update cached wq head after ring doorbell; check wq space before
ring doorbell in case unexpected error happens; call wq space
check only when GuC submission is enabled. (Dave Gordon)
Signed-off-by: Alex Dai <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Dave Gordon <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions