drm/i915/selftests: Unroll the CS frequency loop
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Apr 2020 17:13:51 +0000 (18:13 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Apr 2020 19:48:45 +0000 (20:48 +0100)
commit33883310cd8ed365a4279600b329c50992e8f528
treed8a2317f9b7a5f17a6de85c3461b8db0a6e6768e
parentbd3ec9e75893dacfa17f37c7f2bf1c7ed73d4043
drm/i915/selftests: Unroll the CS frequency loop

Having noticed that MI_BB_START is incurring a memory stall (see the
correlation with uncore frequency), we have to unroll the loop in order
to diminish the impact of the MI_BB_START on the instruction throughput.

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/20200421171351.19575-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_rps.c