]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Calculate maximum ring size for preemption chain
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Mar 2019 19:40:30 +0000 (19:40 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 22 Mar 2019 07:12:11 +0000 (07:12 +0000)
commitf9b82d1fc784afb18f9e744e34688c8013b74eac
tree754590691ee273b3b73badb8e215f8136cb6116c
parent06c19070674c611557bfc54f410baef15129f4bb
drm/i915/selftests: Calculate maximum ring size for preemption chain

32 is too many for the likes of kbl, and in order to insert that many
requests into the ring requires us to declare the first few hung --
understandably a slow and unexpected process. Instead, measure the size
of a singe requests and use that to estimate the upper bound on the
chain length we can use for our test, remembering to flush the previous
chain between tests for safety.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: "Yokoyama, Caz" <caz.yokoyama@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190321194031.20240-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_lrc.c