All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	<dri-devel@lists.freedesktop.org>
Cc: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 2/2] drm/atomic: Prefer drm_WARN_ON() over WARN_ON() in drm_atomic_get_*_state()
Date: Mon, 23 Nov 2026 13:20:03 +0530	[thread overview]
Message-ID: <fb37a5cf-83a3-4d91-9086-804c0913755d@intel.com> (raw)
In-Reply-To: <20261119234423.11666-2-ville.syrjala@linux.intel.com>



On 11/20/2026 5:14 AM, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Change all the get_state() acquire_ctx WARNs to use drm_WARN_ON()
> instead of WARN_ON() so we get to know which device triggered it.
> 

LGTM
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>

> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>   drivers/gpu/drm/drm_atomic.c | 10 +++++-----
>   1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
> index b0843e5a9e4d..324e79152e17 100644
> --- a/drivers/gpu/drm/drm_atomic.c
> +++ b/drivers/gpu/drm/drm_atomic.c
> @@ -473,7 +473,7 @@ drm_atomic_get_crtc_state(struct drm_atomic_commit *state,
>   	int ret;
>   	struct drm_crtc_state *crtc_state;
>   
> -	WARN_ON(!state->acquire_ctx);
> +	drm_WARN_ON(state->dev, !state->acquire_ctx);
>   	drm_WARN_ON(state->dev, state->checked);
>   
>   	crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
> @@ -666,7 +666,7 @@ drm_atomic_get_plane_state(struct drm_atomic_commit *state,
>   	int ret;
>   	struct drm_plane_state *plane_state;
>   
> -	WARN_ON(!state->acquire_ctx);
> +	drm_WARN_ON(state->dev, !state->acquire_ctx);
>   	drm_WARN_ON(state->dev, state->checked);
>   
>   	/* the legacy pointers should never be set */
> @@ -741,7 +741,7 @@ drm_atomic_get_colorop_state(struct drm_atomic_commit *state,
>   	int ret;
>   	struct drm_colorop_state *colorop_state;
>   
> -	WARN_ON(!state->acquire_ctx);
> +	drm_WARN_ON(state->dev, !state->acquire_ctx);
>   	drm_WARN_ON(state->dev, state->checked);
>   
>   	colorop_state = drm_atomic_get_new_colorop_state(state, colorop);
> @@ -1144,7 +1144,7 @@ drm_atomic_get_private_obj_state(struct drm_atomic_commit *state,
>   	int ret;
>   	struct drm_private_state *obj_state;
>   
> -	WARN_ON(!state->acquire_ctx);
> +	drm_WARN_ON(state->dev, !state->acquire_ctx);
>   	drm_WARN_ON(state->dev, state->checked);
>   
>   	obj_state = drm_atomic_get_new_private_obj_state(state, obj);
> @@ -1459,7 +1459,7 @@ drm_atomic_get_connector_state(struct drm_atomic_commit *state,
>   	struct drm_mode_config *config = &connector->dev->mode_config;
>   	struct drm_connector_state *connector_state;
>   
> -	WARN_ON(!state->acquire_ctx);
> +	drm_WARN_ON(state->dev, !state->acquire_ctx);
>   	drm_WARN_ON(state->dev, state->checked);
>   
>   	ret = drm_modeset_lock(&config->connection_mutex, state->acquire_ctx);


  reply	other threads:[~2026-11-23  7:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 23:44 [PATCH 1/2] drm/atomic: Add the state->checked WARN to colorop state Ville Syrjala
2026-11-19 23:44 ` [PATCH 2/2] drm/atomic: Prefer drm_WARN_ON() over WARN_ON() in drm_atomic_get_*_state() Ville Syrjala
2026-11-23  7:50   ` Borah, Chaitanya Kumar [this message]
2026-11-23 10:47     ` Ville Syrjälä
2026-11-20  0:41 ` ✓ i915.CI.BAT: success for series starting with [1/2] drm/atomic: Add the state->checked WARN to colorop state Patchwork
2026-11-20  3:27 ` ✓ CI.KUnit: " Patchwork
2026-11-20  4:02 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-21  6:32 ` ✓ i915.CI.Full: " Patchwork
2026-11-21 18:27 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-23  7:46 ` [PATCH 1/2] " Borah, Chaitanya 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=fb37a5cf-83a3-4d91-9086-804c0913755d@intel.com \
    --to=chaitanya.kumar.borah@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=ville.syrjala@linux.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.