From: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
To: "Brost, Matthew" <matthew.brost@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Cc: "Brost, Matthew" <matthew.brost@intel.com>
Subject: RE: [PATCH] drm/xe: Delete unused GuC submission_state.suspend
Date: Thu, 25 Apr 2024 07:19:59 +0000 [thread overview]
Message-ID: <MW4PR11MB7056D5BFD3F0FFFC9387D73EB3172@MW4PR11MB7056.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20240425054747.1918811-1-matthew.brost@intel.com>
> -----Original Message-----
> From: Intel-xe <intel-xe-bounces@lists.freedesktop.org> On Behalf Of
> Matthew Brost
> Sent: 25 April 2024 11:18
> To: intel-xe@lists.freedesktop.org
> Cc: Brost, Matthew <matthew.brost@intel.com>
> Subject: [PATCH] drm/xe: Delete unused GuC submission_state.suspend
>
> GuC submission_state.suspend is unused, delete it.
>
> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc_submit.c | 4 ----
> drivers/gpu/drm/xe/xe_guc_types.h | 9 ---------
> 2 files changed, 13 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c
> b/drivers/gpu/drm/xe/xe_guc_submit.c
> index c7d38469fb46..4e78610d1591 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.c
> @@ -250,7 +250,6 @@ static void primelockdep(struct xe_guc *guc)
> fs_reclaim_acquire(GFP_KERNEL);
>
> mutex_lock(&guc->submission_state.lock);
> - might_lock(&guc->submission_state.suspend.lock);
> mutex_unlock(&guc->submission_state.lock);
>
> fs_reclaim_release(GFP_KERNEL);
> @@ -278,9 +277,6 @@ int xe_guc_submit_init(struct xe_guc *guc)
>
> xa_init(&guc->submission_state.exec_queue_lookup);
>
> - spin_lock_init(&guc->submission_state.suspend.lock);
> - guc->submission_state.suspend.context =
> dma_fence_context_alloc(1);
> -
> primelockdep(guc);
>
> return drmm_add_action_or_reset(&xe->drm, guc_submit_fini, guc);
> diff --git a/drivers/gpu/drm/xe/xe_guc_types.h
> b/drivers/gpu/drm/xe/xe_guc_types.h
> index 82bd93f7867d..546ac6350a31 100644
> --- a/drivers/gpu/drm/xe/xe_guc_types.h
> +++ b/drivers/gpu/drm/xe/xe_guc_types.h
> @@ -72,15 +72,6 @@ struct xe_guc {
> atomic_t stopped;
> /** @submission_state.lock: protects submission state */
> struct mutex lock;
> - /** @submission_state.suspend: suspend fence state */
> - struct {
> - /** @submission_state.suspend.lock: suspend
> fences lock */
> - spinlock_t lock;
> - /** @submission_state.suspend.context: suspend
> fences context */
> - u64 context;
> - /** @submission_state.suspend.seqno: suspend
> fences seqno */
> - u32 seqno;
> - } suspend;
> #ifdef CONFIG_PROVE_LOCKING
> #define NUM_SUBMIT_WQ 256
> /** @submission_state.submit_wq_pool: submission
> ordered workqueues pool */
LGTM
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
> --
> 2.34.1
next prev parent reply other threads:[~2024-04-25 7:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 5:47 [PATCH] drm/xe: Delete unused GuC submission_state.suspend Matthew Brost
2024-04-25 6:15 ` ✓ CI.Patch_applied: success for " Patchwork
2024-04-25 6:15 ` ✓ CI.checkpatch: " Patchwork
2024-04-25 6:17 ` ✓ CI.KUnit: " Patchwork
2024-04-25 6:31 ` ✓ CI.Build: " Patchwork
2024-04-25 6:34 ` ✓ CI.Hooks: " Patchwork
2024-04-25 6:35 ` ✓ CI.checksparse: " Patchwork
2024-04-25 7:08 ` ✓ CI.BAT: " Patchwork
2024-04-25 7:19 ` Ghimiray, Himal Prasad [this message]
2024-04-25 20:01 ` ✗ CI.FULL: failure " 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=MW4PR11MB7056D5BFD3F0FFFC9387D73EB3172@MW4PR11MB7056.namprd11.prod.outlook.com \
--to=himal.prasad.ghimiray@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@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;
as well as URLs for NNTP newsgroup(s).