Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: <tilak.tirumalesh.tangudu@intel.com>
Cc: <thomas.hellstrom@intel.com>, <daniele.ceraolospurio@intel.com>,
	<matthew.auld@intel.com>, <stuart.summers@intel.com>,
	<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 2/2] drm/xe: drop unused xe_exec_queue_ops::active callback
Date: Tue, 9 Jun 2026 08:04:43 -0700	[thread overview]
Message-ID: <aigri9zZPXvt1vUD@gsse-cloud1.jf.intel.com> (raw)
In-Reply-To: <20260608162745.338725-3-tilak.tirumalesh.tangudu@intel.com>

On Mon, Jun 08, 2026 at 09:57:45PM +0530, tilak.tirumalesh.tangudu@intel.com wrote:
> From: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
> 
> send_tlb_inval_ctx_ppgtt() was the only caller of q->ops->active(q).
> The per-VM exec_queue list is now walked unfiltered.
> 
> With no remaining callers, drop the .active op from
> struct xe_exec_queue_ops along with the GuC and execlist
> backend implementations (guc_exec_queue_active() and
> execlist_exec_queue_active()).
> 
> Signed-off-by: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>

Reviewed-by: Matthew Brost <matthew.brost@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 --
>  drivers/gpu/drm/xe/xe_execlist.c         | 7 -------
>  drivers/gpu/drm/xe/xe_guc_submit.c       | 9 ---------
>  3 files changed, 18 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_exec_queue_types.h b/drivers/gpu/drm/xe/xe_exec_queue_types.h
> index 2f5ccf294675..d27ce24daae5 100644
> --- a/drivers/gpu/drm/xe/xe_exec_queue_types.h
> +++ b/drivers/gpu/drm/xe/xe_exec_queue_types.h
> @@ -318,8 +318,6 @@ struct xe_exec_queue_ops {
>  	void (*resume)(struct xe_exec_queue *q);
>  	/** @reset_status: check exec queue reset status */
>  	bool (*reset_status)(struct xe_exec_queue *q);
> -	/** @active: check exec queue is active */
> -	bool (*active)(struct xe_exec_queue *q);
>  };
>  
>  #endif
> diff --git a/drivers/gpu/drm/xe/xe_execlist.c b/drivers/gpu/drm/xe/xe_execlist.c
> index 9fb99c038ea8..6b86b4f9cc1c 100644
> --- a/drivers/gpu/drm/xe/xe_execlist.c
> +++ b/drivers/gpu/drm/xe/xe_execlist.c
> @@ -458,12 +458,6 @@ static bool execlist_exec_queue_reset_status(struct xe_exec_queue *q)
>  	return false;
>  }
>  
> -static bool execlist_exec_queue_active(struct xe_exec_queue *q)
> -{
> -	/* NIY */
> -	return false;
> -}
> -
>  static const struct xe_exec_queue_ops execlist_exec_queue_ops = {
>  	.init = execlist_exec_queue_init,
>  	.kill = execlist_exec_queue_kill,
> @@ -476,7 +470,6 @@ static const struct xe_exec_queue_ops execlist_exec_queue_ops = {
>  	.suspend_wait = execlist_exec_queue_suspend_wait,
>  	.resume = execlist_exec_queue_resume,
>  	.reset_status = execlist_exec_queue_reset_status,
> -	.active = execlist_exec_queue_active,
>  };
>  
>  int xe_execlist_init(struct xe_gt *gt)
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
> index 4b247a3019d2..b29cc08e6291 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.c
> @@ -2220,14 +2220,6 @@ static bool guc_exec_queue_reset_status(struct xe_exec_queue *q)
>  	return exec_queue_reset(q) || exec_queue_killed_or_banned_or_wedged(q);
>  }
>  
> -static bool guc_exec_queue_active(struct xe_exec_queue *q)
> -{
> -	struct xe_exec_queue *primary = xe_exec_queue_multi_queue_primary(q);
> -
> -	return exec_queue_enabled(primary) &&
> -		!exec_queue_pending_disable(primary);
> -}
> -
>  /*
>   * All of these functions are an abstraction layer which other parts of Xe can
>   * use to trap into the GuC backend. All of these functions, aside from init,
> @@ -2247,7 +2239,6 @@ static const struct xe_exec_queue_ops guc_exec_queue_ops = {
>  	.suspend_wait = guc_exec_queue_suspend_wait,
>  	.resume = guc_exec_queue_resume,
>  	.reset_status = guc_exec_queue_reset_status,
> -	.active = guc_exec_queue_active,
>  };
>  
>  static void guc_exec_queue_stop(struct xe_guc *guc, struct xe_exec_queue *q)
> -- 
> 2.46.0
> 

  parent reply	other threads:[~2026-06-09 15:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-08 16:27 [PATCH 0/2] drm/xe: include all registered queues in TLB invalidation tilak.tirumalesh.tangudu
2026-06-08 16:27 ` [PATCH 1/2] " tilak.tirumalesh.tangudu
2026-06-09 15:02   ` Hellstrom, Thomas
2026-06-09 15:04     ` Matthew Brost
2026-06-08 16:27 ` [PATCH 2/2] drm/xe: drop unused xe_exec_queue_ops::active callback tilak.tirumalesh.tangudu
2026-06-09 15:03   ` Hellstrom, Thomas
2026-06-09 15:04   ` Matthew Brost [this message]
2026-06-08 16:38 ` ✓ CI.KUnit: success for drm/xe: include all registered queues in TLB invalidation Patchwork
2026-06-09  6:49 ` ✓ CI.KUnit: success for drm/xe: include all registered queues in TLB invalidation (rev2) Patchwork
2026-06-09  7:55 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-09 17:53 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-09 18:22   ` Tangudu, Tilak Tirumalesh
2026-06-09 20:12     ` Lin, Shuicheng

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=aigri9zZPXvt1vUD@gsse-cloud1.jf.intel.com \
    --to=matthew.brost@intel.com \
    --cc=daniele.ceraolospurio@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    --cc=stuart.summers@intel.com \
    --cc=thomas.hellstrom@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