From: "Summers, Stuart" <stuart.summers@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Wang, X" <x.wang@intel.com>
Cc: "Lin, Shuicheng" <shuicheng.lin@intel.com>
Subject: Re: [PATCH] drm/xe: Update register definitions in LRC layout header
Date: Fri, 11 Jul 2025 14:42:31 +0000 [thread overview]
Message-ID: <8282f94db67f326d63f7d089b28a94aa28c139ba.camel@intel.com> (raw)
In-Reply-To: <20250711060924.7373-1-x.wang@intel.com>
On Fri, 2025-07-11 at 06:09 +0000, Xin Wang wrote:
> Update the register definitions in xe_lrc_layout.h to align with the
> official hardware specification (Bspec) terminology. Specifically:
>
> - rename PVC_CTX_ACC_CTR_THOLD to CTX_ACC_CTR_THOLD
> - rename PVC_CTX_ASID to CTX_ASID
>
> Signed-off-by: Xin Wang <x.wang@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
> ---
> drivers/gpu/drm/xe/regs/xe_lrc_layout.h | 2 ++
> drivers/gpu/drm/xe/xe_lrc.c | 5 +----
> 2 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/regs/xe_lrc_layout.h
> b/drivers/gpu/drm/xe/regs/xe_lrc_layout.h
> index 994af591a2e8..e4cb1a487a37 100644
> --- a/drivers/gpu/drm/xe/regs/xe_lrc_layout.h
> +++ b/drivers/gpu/drm/xe/regs/xe_lrc_layout.h
> @@ -15,6 +15,8 @@
> #define CTX_TIMESTAMP (0x22 + 1)
> #define CTX_TIMESTAMP_UDW (0x24 + 1)
> #define CTX_INDIRECT_RING_STATE (0x26 + 1)
> +#define CTX_ACC_CTR_THOLD (0x2a + 1)
> +#define CTX_ASID (0x2e + 1)
> #define CTX_PDP0_UDW (0x30 + 1)
> #define CTX_PDP0_LDW (0x32 + 1)
>
> diff --git a/drivers/gpu/drm/xe/xe_lrc.c
> b/drivers/gpu/drm/xe/xe_lrc.c
> index d2ad8fe737eb..452bcfa6cc6c 100644
> --- a/drivers/gpu/drm/xe/xe_lrc.c
> +++ b/drivers/gpu/drm/xe/xe_lrc.c
> @@ -1031,9 +1031,6 @@ static int setup_wa_bb(struct xe_lrc *lrc,
> struct xe_hw_engine *hwe)
> return -ENOSPC;
> }
>
> -#define PVC_CTX_ASID (0x2e + 1)
> -#define PVC_CTX_ACC_CTR_THOLD (0x2a + 1)
> -
> static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
> struct xe_vm *vm, u32 ring_size, u16 msix_vec,
> u32 init_flags)
> @@ -1149,7 +1146,7 @@ static int xe_lrc_init(struct xe_lrc *lrc,
> struct xe_hw_engine *hwe,
> xe_lrc_write_ctx_reg(lrc, CTX_TIMESTAMP_UDW, 0);
>
> if (xe->info.has_asid && vm)
> - xe_lrc_write_ctx_reg(lrc, PVC_CTX_ASID, vm-
> >usm.asid);
> + xe_lrc_write_ctx_reg(lrc, CTX_ASID, vm->usm.asid);
>
> lrc->desc = LRC_VALID;
> lrc->desc |= FIELD_PREP(LRC_ADDRESSING_MODE,
> LRC_LEGACY_64B_CONTEXT);
next prev parent reply other threads:[~2025-07-11 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-11 6:09 [PATCH] drm/xe: Update register definitions in LRC layout header Xin Wang
2025-07-11 6:16 ` ✓ CI.KUnit: success for " Patchwork
2025-07-11 6:53 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-11 14:27 ` ✗ Xe.CI.Full: failure " Patchwork
2025-07-11 14:42 ` Summers, Stuart [this message]
2025-07-14 15:35 ` [PATCH] " Lucas De Marchi
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=8282f94db67f326d63f7d089b28a94aa28c139ba.camel@intel.com \
--to=stuart.summers@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=shuicheng.lin@intel.com \
--cc=x.wang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.