Skip to content

Commit cf8a82d

Browse files
committed
drm/i915/selftests: Run MI_BB perf selftests on SNB
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ä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Lionel Landwerlin <[email protected]>
1 parent dbea79a commit cf8a82d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

drivers/gpu/drm/i915/gt/selftest_engine_cs.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static int perf_mi_bb_start(void *arg)
125125
enum intel_engine_id id;
126126
int err = 0;
127127

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

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

138+
if (GRAPHICS_VER(engine->i915) < 7 && engine->id != RCS0)
139+
continue;
140+
138141
intel_engine_pm_get(engine);
139142

140143
batch = create_empty_batch(ce);
@@ -249,7 +252,7 @@ static int perf_mi_noop(void *arg)
249252
enum intel_engine_id id;
250253
int err = 0;
251254

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

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

265+
if (GRAPHICS_VER(engine->i915) < 7 && engine->id != RCS0)
266+
continue;
267+
262268
intel_engine_pm_get(engine);
263269

264270
base = create_empty_batch(ce);

0 commit comments

Comments
 (0)