public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: "Bhadane, Dnyaneshwar" <dnyaneshwar.bhadane@intel.com>
Cc: "Vodapalli, Ravi Kumar" <ravi.kumar.vodapalli@intel.com>,
	"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe: Add POST_SYNC prefix to post sync instructions
Date: Thu, 19 Feb 2026 11:33:28 -0800	[thread overview]
Message-ID: <aZdliOGe1fXUtF78@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <IA1PR11MB6266DE91973CDC2237B392E7E297A@IA1PR11MB6266.namprd11.prod.outlook.com>

On Mon, May 12, 2025 at 06:42:03AM +0000, Bhadane, Dnyaneshwar wrote:
> 
> 
> > -----Original Message-----
> > From: Vodapalli, Ravi Kumar <ravi.kumar.vodapalli@intel.com>
> > Sent: Thursday, April 24, 2025 3:00 PM
> > To: intel-xe@lists.freedesktop.org
> > Cc: Vivekanandan, Balasubramani <balasubramani.vivekanandan@intel.com>;
> > Roper, Matthew D <matthew.d.roper@intel.com>; De Marchi, Lucas
> > <lucas.demarchi@intel.com>; Sousa, Gustavo <gustavo.sousa@intel.com>;
> > Taylor, Clinton A <clinton.a.taylor@intel.com>; Atwood, Matthew S
> > <matthew.s.atwood@intel.com>; Bhadane, Dnyaneshwar
> > <dnyaneshwar.bhadane@intel.com>; Kalvala, Haridhar
> > <haridhar.kalvala@intel.com>; Chauhan, Shekhar
> > <shekhar.chauhan@intel.com>
> > Subject: [PATCH] drm/xe: Add POST_SYNC prefix to post sync instructions
> > 
> > In existing code for PIPE CONTROL post sync operation instructions
> > POST_SYNC prefix is not present in the name, add it so that it will represent it
> > is a post sync operation type.
> Is there a specific reason for this renaming? Is it truly necessary?
> Regardless, the terms PIPE_CONTROL_POST_SYNC_TYPE_QW_WRITE and PIPE_CONTROL_POST_SYNC_OP_TYPE_QW_WRITE would be more descriptive. 
> If renaming is indeed required, it should be applied to PIPE_CONTROL_WRITE_TIMESTAMP. 
> This refers to all the post-sync operation types defined and used in the code within the Xe/i915 context.
> 
> Renaming can clutter the Git history with unnecessary changes, making it harder to track the evolution of the code and understand the reasons behind certain modification.

I don't think we should consider git history too much in when making
choices about renaming. If this is a better name, more inline with bspec
I'd say let's use a better name. If we need to rename more operations
with post-sync prefixes, let's also do that.

Matt 

> 
> Regards,
> Dnyaneshwar
> > 
> > Signed-off-by: Ravi Kumar Vodapalli <ravi.kumar.vodapalli@intel.com>
> > ---
> >  drivers/gpu/drm/xe/instructions/xe_gpu_commands.h | 2 +-
> >  drivers/gpu/drm/xe/xe_ring_ops.c                  | 4 ++--
> >  2 files changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/xe/instructions/xe_gpu_commands.h
> > b/drivers/gpu/drm/xe/instructions/xe_gpu_commands.h
> > index 8cfcd3360896..75efdacc4979 100644
> > --- a/drivers/gpu/drm/xe/instructions/xe_gpu_commands.h
> > +++ b/drivers/gpu/drm/xe/instructions/xe_gpu_commands.h
> > @@ -54,7 +54,7 @@
> >  #define   PIPE_CONTROL_GLOBAL_SNAPSHOT_RESET		(1<<19)
> >  #define	  PIPE_CONTROL_TLB_INVALIDATE
> > 	BIT(18)
> >  #define   PIPE_CONTROL_PSD_SYNC				(1<<17)
> > -#define   PIPE_CONTROL_QW_WRITE				(1<<14)
> > +#define   PIPE_CONTROL_POST_SYNC_QW_WRITE		(1<<14)
> >  #define   PIPE_CONTROL_DEPTH_STALL			(1<<13)
> >  #define   PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH	(1<<12)
> >  #define   PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE	(1<<11)
> > diff --git a/drivers/gpu/drm/xe/xe_ring_ops.c
> > b/drivers/gpu/drm/xe/xe_ring_ops.c
> > index a7582b097ae6..da50213b78c5 100644
> > --- a/drivers/gpu/drm/xe/xe_ring_ops.c
> > +++ b/drivers/gpu/drm/xe/xe_ring_ops.c
> > @@ -145,7 +145,7 @@ static int emit_pipe_invalidate(u32 mask_flags, bool
> > invalidate_tlb, u32 *dw,
> >  		PIPE_CONTROL_VF_CACHE_INVALIDATE |
> >  		PIPE_CONTROL_CONST_CACHE_INVALIDATE |
> >  		PIPE_CONTROL_STATE_CACHE_INVALIDATE |
> > -		PIPE_CONTROL_QW_WRITE |
> > +		PIPE_CONTROL_POST_SYNC_QW_WRITE |
> >  		PIPE_CONTROL_STORE_DATA_INDEX;
> > 
> >  	if (invalidate_tlb)
> > @@ -216,7 +216,7 @@ static int emit_pipe_imm_ggtt(u32 addr, u32 value,
> > bool stall_only, u32 *dw,
> >  			      int i)
> >  {
> >  	u32 flags = PIPE_CONTROL_CS_STALL |
> > PIPE_CONTROL_GLOBAL_GTT_IVB |
> > -		    PIPE_CONTROL_QW_WRITE;
> > +		    PIPE_CONTROL_POST_SYNC_QW_WRITE;
> > 
> >  	if (!stall_only)
> >  		flags |= PIPE_CONTROL_FLUSH_ENABLE;
> > --
> > 2.25.1
> 

  parent reply	other threads:[~2026-02-19 19:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-24  9:29 [PATCH] drm/xe: Add POST_SYNC prefix to post sync instructions Ravi Kumar Vodapalli
2025-04-24 15:37 ` ✓ CI.Patch_applied: success for " Patchwork
2025-04-24 15:37 ` ✗ CI.checkpatch: warning " Patchwork
2025-04-24 15:38 ` ✓ CI.KUnit: success " Patchwork
2025-04-24 15:47 ` ✓ CI.Build: " Patchwork
2025-04-24 15:49 ` ✗ CI.Hooks: failure " Patchwork
2025-04-24 15:50 ` ✓ CI.checksparse: success " Patchwork
2025-04-24 16:36 ` ✓ Xe.CI.BAT: " Patchwork
2025-04-25 12:27 ` ✗ Xe.CI.Full: failure " Patchwork
2025-05-12  6:42 ` [PATCH] " Bhadane, Dnyaneshwar
2025-05-21 12:50   ` Vodapalli, Ravi Kumar
2026-02-19 19:33   ` Matthew Brost [this message]
2026-03-23 19:27     ` Vodapalli, Ravi Kumar
2026-03-24  6:37       ` Bhadane, Dnyaneshwar
2026-03-23 19:43     ` Vodapalli, Ravi Kumar

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=aZdliOGe1fXUtF78@lstrano-desk.jf.intel.com \
    --to=matthew.brost@intel.com \
    --cc=dnyaneshwar.bhadane@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=ravi.kumar.vodapalli@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