From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 2/2] i915/perf: Enable MTL OA tests
Date: Mon, 28 Nov 2022 17:05:22 -0800 [thread overview]
Message-ID: <20221129010522.994524-3-umesh.nerlige.ramappa@intel.com> (raw)
In-Reply-To: <20221129010522.994524-1-umesh.nerlige.ramappa@intel.com>
Add some MTL definitions in the OA tests.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
tests/i915/perf.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/tests/i915/perf.c b/tests/i915/perf.c
index e6216ffd..dd1f1ac3 100644
--- a/tests/i915/perf.c
+++ b/tests/i915/perf.c
@@ -258,7 +258,7 @@ get_oa_format(enum drm_i915_oa_format format)
{
if (IS_HASWELL(devid))
return hsw_oa_formats[format];
- else if (IS_DG2(devid))
+ else if (IS_DG2(devid) || IS_METEORLAKE(devid))
return dg2_oa_formats[format];
else if (IS_GEN12(devid))
return gen12_oa_formats[format];
@@ -558,7 +558,7 @@ oa_report_get_ctx_id(uint32_t *report)
static int
oar_unit_default_format(void)
{
- if (IS_DG2(devid))
+ if (IS_DG2(devid) || IS_METEORLAKE(devid))
return I915_OAR_FORMAT_A32u40_A4u32_B8_C8;
return test_set->perf_oa_format;
@@ -4847,9 +4847,11 @@ test_whitelisted_registers_userspace_config(void)
mux_regs[i++] = 0;
mux_regs[i++] = 0xD2C;
mux_regs[i++] = 0;
- /* WAIT_FOR_RC6_EXIT */
- mux_regs[i++] = 0x20CC;
- mux_regs[i++] = 0;
+ if (!IS_METEORLAKE(devid)) {
+ /* WAIT_FOR_RC6_EXIT */
+ mux_regs[i++] = 0x20CC;
+ mux_regs[i++] = 0;
+ }
}
if (IS_CHERRYVIEW(devid)) {
--
2.36.1
next prev parent reply other threads:[~2022-11-29 1:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 1:05 [igt-dev] [PATCH i-g-t 0/2] Add OA support for MTL Umesh Nerlige Ramappa
2022-11-29 1:05 ` [igt-dev] [PATCH i-g-t 1/2] lib/i915: add MTL performance metrics Umesh Nerlige Ramappa
2022-12-01 20:21 ` Umesh Nerlige Ramappa
2022-11-29 1:05 ` Umesh Nerlige Ramappa [this message]
2022-12-01 20:24 ` [igt-dev] [PATCH i-g-t 2/2] i915/perf: Enable MTL OA tests Umesh Nerlige Ramappa
2022-12-01 20:29 ` Lionel Landwerlin
2022-11-29 1:20 ` [igt-dev] [PATCH i-g-t 0/2] Add OA support for MTL Umesh Nerlige Ramappa
2022-11-29 9:44 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-11-29 11:48 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221129010522.994524-3-umesh.nerlige.ramappa@intel.com \
--to=umesh.nerlige.ramappa@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox