OSDN Git Service

drm/i915/selftests: Exercise basic RPS interrupt generation
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Apr 2020 17:03:17 +0000 (18:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Apr 2020 23:21:18 +0000 (00:21 +0100)
commit46495adc6ca74bb5903b3064b32afe96830a38e8
tree474def58ee926ea30679b3e9e37711eef906cbf2
parent2a040f0d08c3811f33b9880f5c0d84cb66e8fd74
drm/i915/selftests: Exercise basic RPS interrupt generation

Since we depend upon RPS generating interrupts after evaluation
intervals to determine when to up/down clock the GPU, it is imperative
that we successfully enable interrupt generation! Verify that we do see
an interrupt if we keep the GPU busy for an entire EI.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415170318.16771-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_rps.c
drivers/gpu/drm/i915/gt/selftest_gt_pm.c
drivers/gpu/drm/i915/gt/selftest_rps.c [new file with mode: 0644]
drivers/gpu/drm/i915/gt/selftest_rps.h [new file with mode: 0644]