From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Shekhar Chauhan <shekhar.chauhan@intel.com>
Cc: <igt-dev@lists.freedesktop.org>, <gustavo.sousa@intel.com>
Subject: Re: [PATCH v4 2/2] tests/intel/xe_oa: Wa_14026633728
Date: Tue, 05 May 2026 09:42:11 -0700 [thread overview]
Message-ID: <87h5olhkpo.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20260505054741.486361-3-shekhar.chauhan@intel.com>
On Mon, 04 May 2026 22:47:41 -0700, Shekhar Chauhan wrote:
>
> For MERTOA in CRI, oa buffer can be in device memory. Because of slower
> device mem access, OA exponent values lower than 8 can result in buffer
> overflows. Bump the OA exponent value.
>
> Signed-off-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
> ---
> tests/intel/xe_oa.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index 988c46df6..c7e756426 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -24,6 +24,7 @@
> #include "igt_device.h"
> #include "igt_syncobj.h"
> #include "igt_sysfs.h"
> +#include "intel_wa.h"
> #include "xe/xe_ioctl.h"
> #include "xe/xe_query.h"
> #include "xe/xe_oa.h"
> @@ -2643,8 +2644,15 @@ test_buffer_fill(const struct drm_xe_oa_unit *oau)
> static void
> test_non_zero_reason(const struct drm_xe_oa_unit *oau, size_t oa_buffer_size)
> {
> - /* ~20 micro second period */
> - int oa_exponent = max_oa_exponent_for_period_lte(20000);
> + /*
> + * Wa_14026633728: For MERTOA in CRI, oa buffer can be in device memory.
> + * Because of slower device mem access, OA exponent values lower than 8 can
> + * result in buffer overflows.
> + * By default, use ~20 micro second period.
> + */
> + int oa_exponent = max(max_oa_exponent_for_period_lte(20000),
> + (oau->oa_unit_type == DRM_XE_OA_UNIT_TYPE_MERT &&
> + igt_has_intel_wa(drm_fd, "14026633728") > 0) ? 8 : 0);
0 check is not needed, just 'igt_has_intel_wa(drm_fd, "14026633728")' is
sufficient.
Also, can we change this code to the way it was in v2 (with an if
statement). Just replace with the has_wa check and move the code below the
variable declarations, it is a little bit cleaner and easier to read.
> struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
> uint64_t fmt = test_set->perf_oa_format;
> size_t report_size = get_oa_format(fmt).size;
> --
> 2.53.0
>
next prev parent reply other threads:[~2026-05-05 16:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-05 5:47 [PATCH v4 0/2] Wa_14026633728 Shekhar Chauhan
2026-05-05 5:47 ` [PATCH v4 1/2] lib/intel_wa: Add workaround check for a wa within debugfs file Shekhar Chauhan
2026-05-05 13:34 ` Gustavo Sousa
2026-05-05 14:26 ` Jani Nikula
2026-05-05 14:50 ` Gustavo Sousa
2026-05-05 14:53 ` Jani Nikula
2026-05-05 5:47 ` [PATCH v4 2/2] tests/intel/xe_oa: Wa_14026633728 Shekhar Chauhan
2026-05-05 16:42 ` Dixit, Ashutosh [this message]
2026-05-05 6:59 ` ✓ i915.CI.BAT: success for Wa_14026633728 Patchwork
2026-05-05 7:25 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-05 11:50 ` ✓ i915.CI.Full: " Patchwork
2026-05-05 14:43 ` ✗ Xe.CI.FULL: failure " 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=87h5olhkpo.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=gustavo.sousa@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=shekhar.chauhan@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