drm/i915/gt: Fix up clock frequency
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Apr 2020 15:45:54 +0000 (16:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Apr 2020 16:34:33 +0000 (17:34 +0100)
commit6dc0d028f53945ca8de3e61a149f103f100d42df
tree93738895ed51fceeb5b64cfbafa8b3031dde2a7d
parent4243cd5388c82ae8942510f349b798c62f89825c
drm/i915/gt: Fix up clock frequency

The bspec lists both the clock frequency and the effective interval. The
interval corresponds to observed behaviour, so adjust the frequency to
match.

v2: Mika rightfully asked if we could measure the clock frequency from a
selftest.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200427154554.12736-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_gt_clock_utils.c
drivers/gpu/drm/i915/gt/selftest_gt_pm.c
drivers/gpu/drm/i915/gt/selftest_rps.c
drivers/gpu/drm/i915/gt/selftest_rps.h