drm/i915/guc: Add CT size delay helper
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Tue, 17 Oct 2023 18:08:01 +0000 (11:08 -0700)
committerAndi Shyti <andi.shyti@linux.intel.com>
Wed, 18 Oct 2023 04:01:09 +0000 (06:01 +0200)
commitff0dac080a8555eb3e95573c5ccaec4ac3ca63de
treedaa546af23e06cc64923242500fb674ec7513736
parent29e668337514e1af723232d3ae2b6c5ebc5d0738
drm/i915/guc: Add CT size delay helper

As of now, there is no mechanism for tracking a given request's
progress through the queue.  Instead, add a helper that returns
an estimated maximum time the queue should take to drain if
completely full.

Suggested-by: John Harrison <john.c.harrison@intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: John Harrison <john.c.harrison@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231017180806.3054290-3-jonathan.cavitt@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h