From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t 5/6] tests/intel/xe_oa: Reduce test_non_zero_reason execution time
Date: Tue, 15 Apr 2025 09:49:26 -0700 [thread overview]
Message-ID: <87fri9gyjt.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <Z_2O5_Z6uHJLR-67@unerlige-desk.amr.corp.intel.com>
On Mon, 14 Apr 2025 15:40:39 -0700, Umesh Nerlige Ramappa wrote:
>
> On Tue, Apr 08, 2025 at 11:12:09AM -0700, Ashutosh Dixit wrote:
> > Only check every 128th report to reduce test execution time. Without this
>
> Since you have already read the entire buffer into memory, you could just
> check 2 reports at random location. I am thinking random would be better
> than fixed intervals to catch strange issues.
OK, will change this.
>
> > patch execution times for buffer-size subtest for OA buffer sizes > 16
> > M (with PEC report sanity checks) are excessive. E.g. for 128 MB size:
> >
> > Starting subtest: buffer-size
> > Starting dynamic subtest: ccs-0-128M
> > Dynamic subtest ccs-0-128M: SUCCESS (133.654s)
> > Subtest buffer-size: SUCCESS (133.654s)
> >
> > With this patch:
> >
> > Starting subtest: buffer-size
> > Starting dynamic subtest: ccs-0-128M
> > Dynamic subtest ccs-0-128M: SUCCESS (11.209s)
> > Subtest buffer-size: SUCCESS (11.209s)
> >
> > Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> > ---
> > tests/intel/xe_oa.c | 5 +++--
> > 1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> > index cc9702322d..f3ce37ff5a 100644
> > --- a/tests/intel/xe_oa.c
> > +++ b/tests/intel/xe_oa.c
> > @@ -2646,13 +2646,14 @@ test_non_zero_reason(const struct drm_xe_engine_class_instance *hwe, size_t oa_b
> > igt_debug("Got %u bytes\n", total_len);
> >
> > last_report = NULL;
> > - for (uint32_t offset = 0; offset < total_len; offset += report_size) {
> > + for (uint32_t offset = 0, n = 0; offset < total_len; offset += report_size) {
> > const uint32_t *report = (void *) (buf + offset);
> > uint32_t reason = (report[0] >> OAREPORT_REASON_SHIFT) & OAREPORT_REASON_MASK;
> >
> > igt_assert_neq(reason, 0);
> >
> > - if (last_report) {
> > + /* Only check every 128th report to reduce test execution time */
> > + if (last_report && !(n++ % 128)) {
> > sanity_check_reports(last_report, report, fmt);
> > pec_sanity_check_reports(last_report, report, metric_set(hwe));
> > }
> > --
> > 2.48.1
> >
next prev parent reply other threads:[~2025-04-15 16:49 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 18:12 [PATCH i-g-t 0/6] Sanity check Xe2 PEC OA reports Ashutosh Dixit
2025-04-08 18:12 ` [PATCH i-g-t 1/6] tests/intel/xe_oa: Rename check_reports to mmap_check_reports Ashutosh Dixit
2025-04-14 22:20 ` Umesh Nerlige Ramappa
2025-04-08 18:12 ` [PATCH i-g-t 2/6] tests/intel/xe_oa: Fix oa_tick_delta Ashutosh Dixit
2025-04-14 22:21 ` Umesh Nerlige Ramappa
2025-04-08 18:12 ` [PATCH i-g-t 3/6] tests/intel/xe_oa: Sanity check PEC report data for TestOa metric set Ashutosh Dixit
2025-04-14 23:16 ` Umesh Nerlige Ramappa
2025-04-15 16:57 ` Dixit, Ashutosh
2025-04-16 16:20 ` Umesh Nerlige Ramappa
2025-04-22 19:42 ` Dixit, Ashutosh
2025-04-08 18:12 ` [PATCH i-g-t 4/6] tests/intel/xe_oa: Only sanity check timer PEC reports Ashutosh Dixit
2025-04-14 22:36 ` Umesh Nerlige Ramappa
2025-04-08 18:12 ` [PATCH i-g-t 5/6] tests/intel/xe_oa: Reduce test_non_zero_reason execution time Ashutosh Dixit
2025-04-14 22:40 ` Umesh Nerlige Ramappa
2025-04-15 16:49 ` Dixit, Ashutosh [this message]
2025-04-08 18:12 ` [PATCH i-g-t 6/6] tests/intel/xe_oa: Use TestOa metric set also for OAM Ashutosh Dixit
2025-04-14 22:41 ` Umesh Nerlige Ramappa
2025-04-14 23:22 ` Dixit, Ashutosh
2025-04-08 19:58 ` ✓ i915.CI.BAT: success for Sanity check Xe2 PEC OA reports Patchwork
2025-04-08 20:04 ` ✓ Xe.CI.BAT: " Patchwork
2025-04-08 21:04 ` ✗ Xe.CI.Full: failure " Patchwork
2025-04-08 21:42 ` ✗ i915.CI.Full: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2025-04-22 19:34 [PATCH i-g-t 0/6] " Ashutosh Dixit
2025-04-22 19:34 ` [PATCH i-g-t 5/6] tests/intel/xe_oa: Reduce test_non_zero_reason execution time Ashutosh Dixit
2025-05-02 22:07 ` Umesh Nerlige Ramappa
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=87fri9gyjt.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=umesh.nerlige.ramappa@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