OSDN Git Service

drm/i915/selftests: Change priority overflow detection
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 May 2020 06:31:13 +0000 (07:31 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 May 2020 14:28:26 +0000 (15:28 +0100)
commitad6586850b6d718b1245bad6702028c1c773cfb9
tree4e27bc8212c37eaf3541a431effa753011639e64
parentb86fc6e5e89e5645b43f57171c26740ef38f9f4a
drm/i915/selftests: Change priority overflow detection

Check for integer overflow in the priority chain, rather than against a
type-constricted max-priority check.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200519063123.20673-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c