]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/selftests: Run the perf MI_BB tests on gen4/5
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 31 Oct 2022 13:57:03 +0000 (15:57 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 2 Nov 2022 06:55:56 +0000 (08:55 +0200)
commit1086af67b9ab5229a8166909df01f289bc9a17bd
tree986891cd52657983d2fbc2c429ba41f483a998c6
parent38530a37de499bbb6244018d8d515995fbd89441
drm/i915/selftests: Run the perf MI_BB tests on gen4/5

Now that we know the ring timestamp frequency on gen4/5 we
can run the perf tests that depend on sampling the timestamp.

On g4x/ilk we must read the udw of the 64bit timestamp
register. Details in {g4x,gen5)_read_clock_frequency().

When executing the read via the CS i965 doesn't seem to need
the double read trick that CPU mmio reads need.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221031135703.14670-7-ville.syrjala@linux.intel.com
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
drivers/gpu/drm/i915/gt/selftest_engine_cs.c