Skip to content

Commit

Permalink
drm/i915/selftests: Run MI_BB perf selftests on SNB
Browse files Browse the repository at this point in the history
SNB does have the RING_TIMESTAMP register on the RCS engine.
Run the MI_BB perf tests on it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221031135703.14670-5-ville.syrjala@linux.intel.com
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
  • Loading branch information
Ville Syrjälä committed Nov 2, 2022
1 parent dbea79a commit cf8a82d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions drivers/gpu/drm/i915/gt/selftest_engine_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static int perf_mi_bb_start(void *arg)
enum intel_engine_id id;
int err = 0;

if (GRAPHICS_VER(gt->i915) < 7) /* for per-engine CS_TIMESTAMP */
if (GRAPHICS_VER(gt->i915) < 6) /* for per-engine CS_TIMESTAMP */
return 0;

perf_begin(gt);
Expand All @@ -135,6 +135,9 @@ static int perf_mi_bb_start(void *arg)
u32 cycles[COUNT];
int i;

if (GRAPHICS_VER(engine->i915) < 7 && engine->id != RCS0)
continue;

intel_engine_pm_get(engine);

batch = create_empty_batch(ce);
Expand Down Expand Up @@ -249,7 +252,7 @@ static int perf_mi_noop(void *arg)
enum intel_engine_id id;
int err = 0;

if (GRAPHICS_VER(gt->i915) < 7) /* for per-engine CS_TIMESTAMP */
if (GRAPHICS_VER(gt->i915) < 6) /* for per-engine CS_TIMESTAMP */
return 0;

perf_begin(gt);
Expand All @@ -259,6 +262,9 @@ static int perf_mi_noop(void *arg)
u32 cycles[COUNT];
int i;

if (GRAPHICS_VER(engine->i915) < 7 && engine->id != RCS0)
continue;

intel_engine_pm_get(engine);

base = create_empty_batch(ce);
Expand Down

0 comments on commit cf8a82d

Please sign in to comment.