Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
To: Jani Nikula <jani.nikula@intel.com>,
	<intel-gfx@lists.freedesktop.org>,
	<intel-xe@lists.freedesktop.org>,
	Arun R Murthy <arun.r.murthy@intel.com>
Subject: Re: [PATCH 2/2] drm/xe/display: remove unused xe->sb_lock
Date: Fri, 10 May 2024 16:58:56 +0530	[thread overview]
Message-ID: <b91964d3-980a-42c4-8676-0ac940f94a89@intel.com> (raw)
In-Reply-To: <20240510094313.3422982-2-jani.nikula@intel.com>

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


On 10-05-2024 15:13, Jani Nikula wrote:
> Nothing in xe needs xe->sb_lock. None of the i915 display code using
> ->sb_lock gets built with xe, and in any case that would be wrong as xe
> uses gt->pcode.lock for this.
>
> Signed-off-by: Jani Nikula<jani.nikula@intel.com>
> ---
>   drivers/gpu/drm/xe/display/xe_display.c | 2 --
>   drivers/gpu/drm/xe/xe_device_types.h    | 3 ---
>   2 files changed, 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
> index fbe2c2eddea9..a2c39bcc7677 100644
> --- a/drivers/gpu/drm/xe/display/xe_display.c
> +++ b/drivers/gpu/drm/xe/display/xe_display.c
> @@ -96,8 +96,6 @@ int xe_display_create(struct xe_device *xe)
>   
>   	xe->display.hotplug.dp_wq = alloc_ordered_workqueue("xe-dp", 0);
>   
> -	drmm_mutex_init(&xe->drm, &xe->sb_lock);
> -
>   	return drmm_add_action_or_reset(&xe->drm, display_destroy, NULL);
>   }
>   
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index b78223e3baab..5c5e36de452a 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -511,9 +511,6 @@ struct xe_device {
>   	/* To shut up runtime pm macros.. */
>   	struct xe_runtime_pm {} runtime_pm;
>   
> -	/* For pcode */
> -	struct mutex sb_lock;
> -

LGTM

Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>

A patch 
[https://lore.kernel.org/all/buobxdew2jnbfblawfvnzwntexvhxkslqstsgp3xsxpexdtdem@gwnlli47tdkc/ 
] was introduced that added handling for the return value of 
|drmm_mutex_init|for various display locks. As part of further 
cleanup's, other locks initialization apart from |sb->lock|were 
relocated to the display code. The current patch ensures we don't need 
to address it anymore.

>   	/* only to allow build, not used functionally */
>   	u32 irq_mask;
>   

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

  reply	other threads:[~2024-05-10 11:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10  9:43 [PATCH 1/2] drm/xe/display: remove unused xe->enabled_irq_mask Jani Nikula
2024-05-10  9:43 ` [PATCH 2/2] drm/xe/display: remove unused xe->sb_lock Jani Nikula
2024-05-10 11:28   ` Ghimiray, Himal Prasad [this message]
2024-05-10  9:49 ` ✓ CI.Patch_applied: success for series starting with [1/2] drm/xe/display: remove unused xe->enabled_irq_mask Patchwork
2024-05-10  9:50 ` ✓ CI.checkpatch: " Patchwork
2024-05-10  9:52 ` ✓ CI.KUnit: " Patchwork
2024-05-10 10:06 ` ✓ CI.Build: " Patchwork
2024-05-10 10:09 ` ✓ CI.Hooks: " Patchwork
2024-05-10 10:10 ` ✓ CI.checksparse: " Patchwork
2024-05-10 10:46 ` ✓ CI.BAT: " Patchwork
2024-05-10 11:30 ` [PATCH 1/2] " Ghimiray, Himal Prasad
2024-05-10 12:15 ` ✗ CI.FULL: failure for series starting with [1/2] " Patchwork
2024-05-13 12:10 ` [PATCH 1/2] " Jani Nikula
2024-05-13 14:35   ` Lucas De Marchi
2024-05-13 19:56     ` Jani Nikula

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=b91964d3-980a-42c4-8676-0ac940f94a89@intel.com \
    --to=himal.prasad.ghimiray@intel.com \
    --cc=arun.r.murthy@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@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