summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2019-10-29 16:28:26 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2019-10-29 18:58:07 +0000
commitbf96b515082c4b93ed706aa5edf518772fd7d394 (patch)
treedf7c4a3a0f9dc7befc6673c32e89e673a0b6dd8f /drivers/gpu/drm/i915/selftests
parent6a3552527d431ae3281ce0dfa25107e71cc681e2 (diff)
downloadlinux-stable-bf96b515082c4b93ed706aa5edf518772fd7d394.tar.gz
linux-stable-bf96b515082c4b93ed706aa5edf518772fd7d394.tar.bz2
linux-stable-bf96b515082c4b93ed706aa5edf518772fd7d394.zip
drm/i915/perf: ensure selftests select valid format
Gen12 only support a single report format : I915_OA_FORMAT_A32u40_A4u32_B8_C8 Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: 00a7f0d7155c ("drm/i915/tgl: Add perf support on TGL") Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20191029142826.20014-1-lionel.g.landwerlin@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
-rw-r--r--drivers/gpu/drm/i915/selftests/i915_perf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_perf.c b/drivers/gpu/drm/i915/selftests/i915_perf.c
index dc6d689e4251..aabd07f67e49 100644
--- a/drivers/gpu/drm/i915/selftests/i915_perf.c
+++ b/drivers/gpu/drm/i915/selftests/i915_perf.c
@@ -23,7 +23,8 @@ test_stream(struct i915_perf *perf)
I915_ENGINE_CLASS_RENDER,
0),
.sample_flags = SAMPLE_OA_REPORT,
- .oa_format = I915_OA_FORMAT_C4_B8,
+ .oa_format = IS_GEN(perf->i915, 12) ?
+ I915_OA_FORMAT_A32u40_A4u32_B8_C8 : I915_OA_FORMAT_C4_B8,
.metrics_set = 1,
};
struct i915_perf_stream *stream;