From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: <igt-dev@lists.freedesktop.org>,
Ashutosh Dixit <ashutosh.dixit@intel.com>
Subject: Re: [PATCH i-g-t] tests/intel/perf: move igt_require into subtests
Date: Mon, 13 May 2024 17:35:20 -0700 [thread overview]
Message-ID: <ZkKxyMdaehP07/YD@orsosgc001> (raw)
In-Reply-To: <20240513160638.137890-1-kamil.konieczny@linux.intel.com>
On Mon, May 13, 2024 at 06:06:38PM +0200, Kamil Konieczny wrote:
>Using igt_require() and igt_skip() in second or later
>igt_fixture can confuse developers reading failure logs. Move all
>such igt_require() to subtest which needs them.
>
>Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
>Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
>Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
LGTM, thanks for fixing this.
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Umesh
>---
> tests/intel/perf.c | 31 +++++++++++++++++++------------
> 1 file changed, 19 insertions(+), 12 deletions(-)
>
>diff --git a/tests/intel/perf.c b/tests/intel/perf.c
>index 7a63a3bdd..8ac48feca 100644
>--- a/tests/intel/perf.c
>+++ b/tests/intel/perf.c
>@@ -6048,22 +6048,24 @@ igt_main
> }
>
> igt_subtest_group {
>- igt_fixture igt_require(intel_gen(devid) >= 12);
>-
> igt_describe("Test MI REPORT PERF COUNT for Gen 12");
> igt_subtest_with_dynamic("gen12-mi-rpc") {
>+ igt_require(intel_gen(devid) >= 12);
> igt_require(has_class_instance(drm_fd, I915_ENGINE_CLASS_RENDER, 0));
> __for_each_render_engine(drm_fd, e)
> gen12_test_mi_rpc(e);
> }
>
> igt_describe("Test OA TLB invalidate");
>- igt_subtest_with_dynamic("gen12-oa-tlb-invalidate")
>+ igt_subtest_with_dynamic("gen12-oa-tlb-invalidate") {
>+ igt_require(intel_gen(devid) >= 12);
> __for_random_engine_in_each_group(perf_oa_groups, ctx, e)
> gen12_test_oa_tlb_invalidate(e);
>+ }
>
> igt_describe("Measure performance for a specific context using OAR in Gen 12");
> igt_subtest_with_dynamic("gen12-unprivileged-single-ctx-counters") {
>+ igt_require(intel_gen(devid) >= 12);
> igt_require(has_class_instance(drm_fd, I915_ENGINE_CLASS_RENDER, 0));
> igt_require_f(render_copy, "no render-copy function\n");
> __for_each_render_engine(drm_fd, e)
>@@ -6072,11 +6074,11 @@ igt_main
> }
>
> igt_subtest_group {
>- igt_fixture igt_require(i915_perf_revision(drm_fd) >= 6);
>-
> igt_describe("Verify invalid class instance");
>- igt_subtest("gen12-invalid-class-instance")
>+ igt_subtest("gen12-invalid-class-instance") {
>+ igt_require(i915_perf_revision(drm_fd) >= 6);
> test_invalid_class_instance();
>+ }
>
> /*
> * OAR and OAG use cases can be separately opened only on gen12
>@@ -6095,8 +6097,10 @@ igt_main
> }
>
> igt_describe("Verify concurrent reads from OA buffers in different groups");
>- igt_subtest("gen12-group-concurrent-oa-buffer-read")
>+ igt_subtest("gen12-group-concurrent-oa-buffer-read") {
>+ igt_require(i915_perf_revision(drm_fd) >= 6);
> test_group_concurrent_oa_buffer_read();
>+ }
> }
>
> igt_subtest("rc6-disable")
>@@ -6108,20 +6112,23 @@ igt_main
> test_stress_open_close(e);
>
> igt_subtest_group {
>- igt_fixture {
>+ igt_describe("Verify invalid SSEU opening parameters");
>+ igt_subtest_with_dynamic("global-sseu-config-invalid") {
> igt_require(i915_perf_revision(drm_fd) >= 4);
> igt_require(intel_graphics_ver(devid) < IP_VER(12, 50));
>- }
>
>- igt_describe("Verify invalid SSEU opening parameters");
>- igt_subtest_with_dynamic("global-sseu-config-invalid")
> __for_random_engine_in_each_group(perf_oa_groups, ctx, e)
> test_global_sseu_config_invalid(ctx, e);
>+ }
>
> igt_describe("Verify specifying SSEU opening parameters");
>- igt_subtest_with_dynamic("global-sseu-config")
>+ igt_subtest_with_dynamic("global-sseu-config") {
>+ igt_require(i915_perf_revision(drm_fd) >= 4);
>+ igt_require(intel_graphics_ver(devid) < IP_VER(12, 50));
>+
> __for_random_engine_in_each_group(perf_oa_groups, ctx, e)
> test_global_sseu_config(ctx, e);
>+ }
> }
>
> igt_subtest("invalid-create-userspace-config")
>--
>2.42.0
>
next prev parent reply other threads:[~2024-05-14 0:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-13 16:06 [PATCH i-g-t] tests/intel/perf: move igt_require into subtests Kamil Konieczny
2024-05-13 21:52 ` ✓ CI.xeBAT: success for " Patchwork
2024-05-13 22:00 ` ✓ Fi.CI.BAT: " Patchwork
2024-05-13 23:05 ` ✗ CI.xeFULL: failure " Patchwork
2024-05-14 10:52 ` Kamil Konieczny
2024-05-14 0:35 ` Umesh Nerlige Ramappa [this message]
2024-05-14 7:07 ` ✓ Fi.CI.IGT: success " 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=ZkKxyMdaehP07/YD@orsosgc001 \
--to=umesh.nerlige.ramappa@intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
/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