From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v2 1/4] drm/xe/oa: Rename last argument of WHITELIST_OA_MMIO_TRG
Date: Mon, 29 Jun 2026 09:33:55 -0700 [thread overview]
Message-ID: <87echpjogc.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <aj20b32ww8zWw0dF@soc-5CG1426VCC.clients.intel.com>
On Thu, 25 Jun 2026 16:06:23 -0700, Umesh Nerlige Ramappa wrote:
>
> On Tue, Jun 16, 2026 at 06:54:19PM -0700, Ashutosh Dixit wrote:
> > OA head pointer registers are not used by UMD's and do not need to be
> > whitelisted, the last argument of WHITELIST_OA_MMIO_TRG is actually used
> > for whitelisting tail pointer and OA buffer registers. Rename the argument
> > to tail_buf to reflect this. OA head pointer is sometimes provided to the
> > WHITELIST_OA_MMIO_TRG to have the correct register offset alignment (16)
> > for RING_FORCE_TO_NONPRIV_RANGE_4.
> >
> > Fixes: ed455775c5a6 ("drm/xe/rtp: Refactor OAG MMIO trigger register whitelisting")
> > Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
>
> I don't see a real bug that this patch is fixing in ed455775c5a6. It just
> renames the last field of the macro.
I agree we should drop the 'Fixes:' tag from this patch. The purpose of
this patch is only to *document* that what we really want to whitelist is
the tailptr and oa_buffer registers, not the head pointer itself. In case
registers move around in future products and code needs to be changed e.g.
>
> I think you can safely drop this patch. The whitelisting alignment breaks
> only for MERTOA. Patch 2 in this series is fixing that and it has the right
> Fixes tag.
>
> If you plan to remove HEADPTR from OAM and OAG as well in future, you could
> use this patch.
Yeah, HEADPTR is not intended to be whitelisted for any of the OA units (it
is just provided sometimes for alignment, as mentioned in the commit
message). That is why I was thinking we should retain this patch for the
sake of documenting, as mentioned above.
Thanks.
--
Ashutosh
>
> > ---
> > drivers/gpu/drm/xe/xe_reg_whitelist.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_reg_whitelist.c b/drivers/gpu/drm/xe/xe_reg_whitelist.c
> > index 2e84b1c49f374..a17ebacc1455b 100644
> > --- a/drivers/gpu/drm/xe/xe_reg_whitelist.c
> > +++ b/drivers/gpu/drm/xe/xe_reg_whitelist.c
> > @@ -104,10 +104,10 @@ static const struct xe_rtp_table_sr register_whitelist = XE_RTP_TABLE_SR(
> > RING_FORCE_TO_NONPRIV_ACCESS_RW))
> > },
> >
> > -#define WHITELIST_OA_MMIO_TRG(trg, status, head) \
> > +#define WHITELIST_OA_MMIO_TRG(trg, status, tail_buf) \
> > WHITELIST(trg, RING_FORCE_TO_NONPRIV_ACCESS_RW), \
> > WHITELIST(status, RING_FORCE_TO_NONPRIV_ACCESS_RD), \
> > - WHITELIST(head, RING_FORCE_TO_NONPRIV_ACCESS_RD | RING_FORCE_TO_NONPRIV_RANGE_4)
> > + WHITELIST(tail_buf, RING_FORCE_TO_NONPRIV_ACCESS_RD | RING_FORCE_TO_NONPRIV_RANGE_4)
> >
> > #define WHITELIST_OAG_MMIO_TRG \
> > WHITELIST_OA_MMIO_TRG(OAG_MMIOTRIGGER, OAG_OASTATUS, OAG_OAHEADPTR)
> > --
> > 2.54.0
> >
next prev parent reply other threads:[~2026-06-29 16:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 1:54 [PATCH v2 0/4] drm/xe/oa: A MERTOA bug-fix Ashutosh Dixit
2026-06-17 1:54 ` [PATCH v2 1/4] drm/xe/oa: Rename last argument of WHITELIST_OA_MMIO_TRG Ashutosh Dixit
2026-06-25 23:06 ` Umesh Nerlige Ramappa
2026-06-29 16:33 ` Dixit, Ashutosh [this message]
2026-06-26 16:39 ` Matt Roper
2026-06-29 16:25 ` Dixit, Ashutosh
2026-06-30 23:18 ` Matt Roper
2026-06-17 1:54 ` [PATCH v2 2/4] drm/xe/oa: Fix offset alignment for MERT WHITELIST_OA_MERT_MMIO_TRG Ashutosh Dixit
2026-06-25 23:10 ` Umesh Nerlige Ramappa
2026-06-29 16:27 ` Dixit, Ashutosh
2026-06-29 17:30 ` Dixit, Ashutosh
2026-06-17 1:54 ` [PATCH v2 3/4] drm/xe/oa: Provide OA status through status ioctl for mmap interface Ashutosh Dixit
2026-06-25 23:16 ` Umesh Nerlige Ramappa
2026-06-26 22:39 ` Dixit, Ashutosh
2026-06-17 1:54 ` [PATCH v2 4/4] drm/xe/oa: Stop whitelisting OA status register Ashutosh Dixit
2026-06-25 23:12 ` Umesh Nerlige Ramappa
2026-06-17 1:59 ` ✗ CI.checkpatch: warning for drm/xe/oa: A MERTOA bug-fix (rev2) Patchwork
2026-06-17 2:01 ` ✓ CI.KUnit: success " Patchwork
2026-06-17 2:38 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-17 8:23 ` ✓ Xe.CI.FULL: " 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=87echpjogc.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=intel-xe@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