Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "K V P, Satyanarayana" <satyanarayana.k.v.p@intel.com>
To: <tilak.tirumalesh.tangudu@intel.com>,
	<piotr.piorkowski@intel.com>, <jesus.narvaez@intel.com>,
	<daniele.ceraolospurio@intel.com>, <stuart.summers@intel.com>,
	<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 1/2] drm/xe: Add MI_SEMAPHORE_WAIT_64 instruction definition
Date: Thu, 26 Nov 2026 14:43:10 +0530	[thread overview]
Message-ID: <fcc18829-a2fe-47ed-a51e-5f282ae737a3@intel.com> (raw)
In-Reply-To: <20261126090445.1220148-2-tilak.tirumalesh.tangudu@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]


On 26-Nov-26 2:34 PM, tilak.tirumalesh.tangudu@intel.com wrote:
> From: Tangudu Tilak Tirumalesh<tilak.tirumalesh.tangudu@intel.com>
>
> Wa_16029281913 recommends using the MI_SEMAPHORE_WAIT_64 instruction
> instead of the legacy MI_SEMAPHORE_WAIT, due to an issue with the legacy
> semaphore on some Xe3p platforms.
>
> v2: Rename to MI_SEMW64_32BIT_COMPARE to fix alignment (Satya)
> v3: Drop the WA comment (Satya)
>
> Assisted-by: LLM
> Signed-off-by: Tangudu Tilak Tirumalesh<tilak.tirumalesh.tangudu@intel.com>
> ---
>   drivers/gpu/drm/xe/instructions/xe_mi_commands.h | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/instructions/xe_mi_commands.h b/drivers/gpu/drm/xe/instructions/xe_mi_commands.h
> index 835ef75bbeb1..75e6a4d0e79d 100644
> --- a/drivers/gpu/drm/xe/instructions/xe_mi_commands.h
> +++ b/drivers/gpu/drm/xe/instructions/xe_mi_commands.h
> @@ -48,6 +48,11 @@
>   #define   MI_SEMW_COMPARE(OP)		REG_FIELD_PREP(MI_SEMW_COMPARE_OP_MASK, COMPARE_OP_##OP)
>   #define   MI_SEMW_TOKEN(token)		REG_FIELD_PREP(REG_GENMASK(9, 2), (token))
>   
> +#define MI_SEMAPHORE_WAIT_64		(__MI_INSTR(0x3b) | XE_INSTR_NUM_DW(7))
> +#define   MI_SEMW64_INTERRUPT		REG_BIT(20) /* raises the semaphore-fail interrupt */
> +#define   MI_SEMW64_32BIT_COMPARE	REG_BIT(19) /* 0: 64b compare (default), 1: 32b compare */
> +#define   MI_SEMW64_INHIBIT_CTX_SWITCH	REG_BIT(15) /* poll in place, don't switch out on fail */
> +
>   #define MI_STORE_DATA_IMM		__MI_INSTR(0x20)
>   #define   MI_SDI_GGTT			REG_BIT(22)
>   #define   MI_SDI_LEN_DW			GENMASK(9, 0)

LGTM.

Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>

[-- Attachment #2: Type: text/html, Size: 2600 bytes --]

  reply	other threads:[~2026-11-26  9:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  9:04 [PATCH 0/2] drm/xe: Use MI_SEMAPHORE_WAIT_64 (Wa_16029281913) tilak.tirumalesh.tangudu
2026-11-26  9:04 ` [PATCH 1/2] drm/xe: Add MI_SEMAPHORE_WAIT_64 instruction definition tilak.tirumalesh.tangudu
2026-11-26  9:13   ` K V P, Satyanarayana [this message]
2026-11-26  9:04 ` [PATCH 2/2] drm/xe: Use MI_SEMAPHORE_WAIT_64 for fake watchdog where supported tilak.tirumalesh.tangudu
2026-11-26  9:16   ` sashiko-bot
2026-11-26  9:33 ` ✗ CI.checkpatch: warning for drm/xe: Use MI_SEMAPHORE_WAIT_64 (Wa_16029281913) (rev5) Patchwork
2026-11-26  9:35 ` ✓ CI.KUnit: success " Patchwork
2026-11-26 10:16 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-26 15:05 ` ✓ 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=fcc18829-a2fe-47ed-a51e-5f282ae737a3@intel.com \
    --to=satyanarayana.k.v.p@intel.com \
    --cc=daniele.ceraolospurio@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jesus.narvaez@intel.com \
    --cc=piotr.piorkowski@intel.com \
    --cc=stuart.summers@intel.com \
    --cc=tilak.tirumalesh.tangudu@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