Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/atomic: Add the state->checked WARN to colorop state
@ 2026-11-19 23:44 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
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ville Syrjala @ 2026-11-19 23:44 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx, intel-xe

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

drm_atomic_get_colorop_state() didn't get the memo on
commit 0a0e79a2d9ed ("drm/atomic: WARN about invalid
drm_foo_get_state() usage"). Add the missing warning.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/drm_atomic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 81591173265d..b0843e5a9e4d 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -742,6 +742,7 @@ drm_atomic_get_colorop_state(struct drm_atomic_commit *state,
 	struct drm_colorop_state *colorop_state;
 
 	WARN_ON(!state->acquire_ctx);
+	drm_WARN_ON(state->dev, state->checked);
 
 	colorop_state = drm_atomic_get_new_colorop_state(state, colorop);
 	if (colorop_state)
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-23 10:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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ä
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox