All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915: Fix mistake in intel_modeset_all_pipes condition
@ 2023-08-09  8:29 Stanislav Lisovskiy
  2023-08-09  8:38 ` Jani Nikula
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Stanislav Lisovskiy @ 2023-08-09  8:29 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula

It is supposed to be "!intel_crtc_needs_modeset" - otherwise,
we are active exactly vice versa for active pipes: skipping if modeset
is needed and not skipping if not needed.

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 763ab569d8f32..4b1d7034078ca 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -5439,7 +5439,7 @@ int intel_modeset_all_pipes(struct intel_atomic_state *state,
 			return PTR_ERR(crtc_state);
 
 		if (!crtc_state->hw.active ||
-		    intel_crtc_needs_modeset(crtc_state))
+		    !intel_crtc_needs_modeset(crtc_state))
 			continue;
 
 		drm_dbg_kms(&dev_priv->drm, "[CRTC:%d:%s] Full modeset due to %s\n",
-- 
2.37.3


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

end of thread, other threads:[~2023-08-09 10:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09  8:29 [Intel-gfx] [PATCH] drm/i915: Fix mistake in intel_modeset_all_pipes condition Stanislav Lisovskiy
2023-08-09  8:38 ` Jani Nikula
2023-08-09  8:48   ` Lisovskiy, Stanislav
2023-08-09  9:01     ` Jani Nikula
2023-08-09  9:07       ` Lisovskiy, Stanislav
2023-08-09  9:31         ` Jani Nikula
2023-08-09  9:50 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2023-08-09  9:50 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-08-09 10:02 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork

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.