From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v2 5/6] i915/perf_*: better document tests
Date: Mon, 22 May 2023 09:12:29 +0200 [thread overview]
Message-ID: <20230522071230.2494402-6-mauro.chehab@linux.intel.com> (raw)
In-Reply-To: <20230522071230.2494402-1-mauro.chehab@linux.intel.com>
From: Mauro Carvalho Chehab <mchehab@kernel.org>
Merge data from some ancillary internal documentation to improve
i915 perf test descriptions.
This patch was auto-generated via script.
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
tests/i915/perf.c | 68 ++++++++++++++++++----------
tests/i915/perf_pmu.c | 103 ++++++++++++++++++++++++++++--------------
2 files changed, 112 insertions(+), 59 deletions(-)
diff --git a/tests/i915/perf.c b/tests/i915/perf.c
index 1b1c39aafb8b..b7fa2924888e 100644
--- a/tests/i915/perf.c
+++ b/tests/i915/perf.c
@@ -49,23 +49,27 @@
* TEST: perf
* Description: Test the i915 perf metrics streaming interface
* Run type: FULL
+ * Test category: Perf
*
* SUBTEST: blocking
* Description: Test blocking read with default hrtimer frequency
- * Feature: oa
+ * Feature: i915 streaming interface, oa
*
* SUBTEST: blocking-parameterized
* Description: Test blocking read with different hrtimer frequencies
- * Feature: oa
+ * Feature: i915 streaming interface, oa
*
* SUBTEST: buffer-fill
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: create-destroy-userspace-config
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: disabled-read-error
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: enable-disable
* Feature: oa
@@ -84,7 +88,7 @@
*
* SUBTEST: gen12-invalid-class-instance
* Description: Verify invalid class instance
- * Feature: oa
+ * Feature: i915 streaming interface, oa
*
* SUBTEST: gen12-mi-rpc
* Description: Test MI REPORT PERF COUNT for Gen 12
@@ -92,7 +96,7 @@
*
* SUBTEST: gen12-oa-tlb-invalidate
* Description: Test OA TLB invalidate
- * Feature: oa
+ * Feature: i915 streaming interface, oa
*
* SUBTEST: gen12-unprivileged-single-ctx-counters
* Description: Measure performance for a specific context using OAR in Gen 12
@@ -110,84 +114,98 @@
* Feature: oa
*
* SUBTEST: i915-ref-count
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: invalid-create-userspace-config
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: invalid-oa-exponent
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: invalid-oa-format-id
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: invalid-oa-metric-set-id
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: invalid-open-flags
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: invalid-remove-userspace-config
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: low-oa-exponent-permissions
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: mi-rpc
* Feature: oa
*
* SUBTEST: missing-sample-flags
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: non-sampling-read-error
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: non-system-wide-paranoid
* Feature: oa
*
* SUBTEST: non-zero-reason
* Description: Test that reason field in OA reports is never 0 on Gen8+
- * Feature: oa
+ * Feature: i915 streaming interface, oa
*
* SUBTEST: oa-exponents
* Feature: oa
*
* SUBTEST: oa-formats
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: per-context-mode-unprivileged
* Feature: oa, obsolete
*
* SUBTEST: polling
* Description: Test polled read with default hrtimer frequency
- * Feature: oa
+ * Feature: i915 streaming interface, oa
*
* SUBTEST: polling-parameterized
* Description: Test polled read with different hrtimer frequencies
- * Feature: oa
+ * Feature: i915 streaming interface, oa
*
* SUBTEST: polling-small-buf
* Description: Test polled read with buffer size smaller than available data
- * Feature: oa
+ * Feature: i915 streaming interface, oa
*
* SUBTEST: rc6-disable
* Feature: oa
*
* SUBTEST: short-reads
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: stress-open-close
* Description: Stress tests opening & closing the i915-perf stream in a busy loop
* Feature: oa
*
* SUBTEST: sysctl-defaults
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*
* SUBTEST: unprivileged-single-ctx-counters
* Feature: oa, obsolete
*
* SUBTEST: whitelisted-registers-userspace-config
- * Feature: oa
+ * Feature: i915 streaming interface, oa
+ * Functionality: Test the i915 perf metrics streaming interface
*/
IGT_TEST_DESCRIPTION("Test the i915 perf metrics streaming interface");
diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c
index bedadbe92797..bc0d517007d6 100644
--- a/tests/i915/perf_pmu.c
+++ b/tests/i915/perf_pmu.c
@@ -53,54 +53,71 @@
* TEST: perf pmu
* Description: Test the i915 pmu perf interface
* Run type: FULL
+ * Test category: Perf
*
* SUBTEST: all-busy-check-all
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: all-busy-idle-check-all
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: busy
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to ensure gpu is busy when there a workload by reading engine busyness pmu counters
*
* SUBTEST: busy-accuracy-2
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: busy-accuracy-50
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: busy-accuracy-98
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: busy-check-all
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to ensure gpu all engines report busy when there is a workload by reading engine busyness pmu counters
*
* SUBTEST: busy-double-start
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: busy-hang
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to ensure there is no hanf when all engines are busy
*
* SUBTEST: busy-idle
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to ensure gpu engine reports idle when there is no workload
*
* SUBTEST: busy-idle-check-all
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to ensure gpu all engine reports idle when there is no workload
*
* SUBTEST: busy-idle-no-semaphores
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to verify gpu idle through engine business pmu counters
*
* SUBTEST: busy-no-semaphores
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to verify gpu busyness through engine business pmu counters
*
* SUBTEST: busy-start
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to verify gpu busyness through engine business pmu counters
*
* SUBTEST: cpu-hotplug
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: enable-race
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: event-wait
* Feature: obsolete, pmu
@@ -109,52 +126,67 @@
* Feature: pmu
*
* SUBTEST: frequency
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Read requested freq and actual frequency via PMU within specified time interval for any given workload changes
*
* SUBTEST: frequency-idle
* Feature: pmu
*
* SUBTEST: gt-awake
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Setup workload on all engines,measure gt awake time via pmu
*
* SUBTEST: idle
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to ensure gpu is idle when there is no workload by reading engine busyness pmu counters
*
* SUBTEST: idle-no-semaphores
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to ensure gpu is idle when there is no workload by reading engine busyness pmu counters
*
* SUBTEST: init-busy
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to verify gpu busyness init through pmu perf interface
*
* SUBTEST: init-sema
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to verify gpu busyness init through pmu perf interface
*
* SUBTEST: init-wait
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test to verify gpu busyness init through pmu perf interface
*
* SUBTEST: interrupts
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: interrupts-sync
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: invalid-init
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Tests that i915 PMU corectly errors out in invalid initialization
*
* SUBTEST: invalid-open
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: module-unload
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: most-busy-check-all
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: most-busy-idle-check-all
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: multi-client
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: pmu-read
* Description: Verify i915 pmu dir exists and read all events
@@ -179,13 +211,16 @@
* Feature: pmu
*
* SUBTEST: semaphore-busy
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: semaphore-wait
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*
* SUBTEST: semaphore-wait-idle
- * Feature: pmu
+ * Feature: i915 pmu perf interface, pmu
+ * Functionality: Test the i915 pmu perf interface
*/
IGT_TEST_DESCRIPTION("Test the i915 pmu perf interface");
--
2.40.1
next prev parent reply other threads:[~2023-05-22 7:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 7:12 [igt-dev] [PATCH i-g-t v2 0/6] Improve description of tests used by i915 validation Mauro Carvalho Chehab
2023-05-22 7:12 ` [igt-dev] [PATCH i-g-t v2 1/6] tests: better document core_* tests used for " Mauro Carvalho Chehab
2023-05-22 7:12 ` [igt-dev] [PATCH i-g-t v2 2/6] tests: better document the remaining core used by " Mauro Carvalho Chehab
2023-05-22 7:12 ` [igt-dev] [PATCH i-g-t v2 3/6] i915/gem_exec_*: better document gem exec tests used for " Mauro Carvalho Chehab
2023-05-22 7:12 ` [igt-dev] [PATCH i-g-t v2 4/6] i915/gem_ctx_*: better document i915 context tests Mauro Carvalho Chehab
2023-05-22 7:12 ` Mauro Carvalho Chehab [this message]
2023-05-22 12:42 ` [igt-dev] [PATCH i-g-t v2 5/6] i915/perf_*: better document tests Kamil Konieczny
2023-05-22 12:50 ` Kamil Konieczny
2023-05-22 7:12 ` [igt-dev] [PATCH i-g-t v2 6/6] i915/: better document the remaining i915 tests Mauro Carvalho Chehab
2023-05-22 13:07 ` Kamil Konieczny
2023-05-22 8:04 ` [igt-dev] ✓ Fi.CI.BAT: success for Improve description of tests used by i915 validation (rev2) Patchwork
2023-05-22 10:08 ` [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=20230522071230.2494402-6-mauro.chehab@linux.intel.com \
--to=mauro.chehab@linux.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