From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
Cc: dri-devel@lists.freedesktop.org, 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 12:47:38 +0200 [thread overview]
Message-ID: <awQZyrEnEB7bi9rW@intel.com> (raw)
In-Reply-To: <fb37a5cf-83a3-4d91-9086-804c0913755d@intel.com>
On Mon, Nov 23, 2026 at 01:20:03PM +0530, Borah, Chaitanya Kumar wrote:
>
>
> 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>
Thanks. Series pushed to drm-misc-next.
>
> > 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);
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2026-11-23 10:47 UTC|newest]
Thread overview: 7+ 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
2026-11-23 10:47 ` Ville Syrjälä [this message]
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-21 6:32 ` ✓ i915.CI.Full: " 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=awQZyrEnEB7bi9rW@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=chaitanya.kumar.borah@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
/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