drm/i915: Trim set_timer_ms() intervals
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jun 2020 13:59:38 +0000 (14:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jun 2020 15:34:00 +0000 (16:34 +0100)
commitf4bb45f727341126aa81d8ac2f3e45c7029fe448
treedc70d71d6fc604f8db90cdb273473335f6862032
parent57a78ca4eceab1ecb0299fba8a10211289329889
drm/i915: Trim set_timer_ms() intervals

Use the plain msec_to_jiffies() rather than the _timeout variant so we
round down and do not add an extra jiffy to our interval. For example,
with timeslicing we do not want to err on the longer side as any
fairness depends on catching hogging contexts on the GPU. Bring on
CFS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200604135938.3975-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c
drivers/gpu/drm/i915/i915_utils.c