All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ville Syrjala <ville.syrjala@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH v2 03/13] drm/i915: Move check_digital_port_conflicts() earier
Date: Tue, 15 Oct 2019 22:30:25 +0300	[thread overview]
Message-ID: <20191015193035.25982-4-ville.syrjala@linux.intel.com> (raw)
In-Reply-To: <20191015193035.25982-1-ville.syrjala@linux.intel.com>

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

check_digital_port_conflicts() is done needlessly late. Move it earlier.
This will be needed as later on we want to set any_ms=true a bit later
for non-modesets too and we can't call this guy without the
connection_mutex held.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index a8444d9841c1..44bd4d15019b 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -13456,11 +13456,6 @@ static int intel_modeset_checks(struct intel_atomic_state *state)
 	struct intel_crtc *crtc;
 	int ret, i;
 
-	if (!check_digital_port_conflicts(state)) {
-		DRM_DEBUG_KMS("rejecting conflicting digital port configuration\n");
-		return -EINVAL;
-	}
-
 	/* keep the current setting */
 	if (!state->cdclk.force_min_cdclk_changed)
 		state->cdclk.force_min_cdclk = dev_priv->cdclk.force_min_cdclk;
@@ -13622,6 +13617,12 @@ static int intel_atomic_check(struct drm_device *dev,
 			any_ms = true;
 	}
 
+	if (any_ms && !check_digital_port_conflicts(state)) {
+		DRM_DEBUG_KMS("rejecting conflicting digital port configuration\n");
+		ret = EINVAL;
+		goto fail;
+	}
+
 	ret = drm_dp_mst_atomic_check(&state->base);
 	if (ret)
 		goto fail;
-- 
2.21.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2019-10-15 19:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 19:30 [PATCH v2 00/13] drm/i915: Plane cdclk requirements and fp16 for gen4+ Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 01/13] drm/i915: Add debugs to distingiush a cd2x update from a full cdclk pll update Ville Syrjala
2019-10-24 10:25   ` Lisovskiy, Stanislav
2019-10-24 10:25     ` [Intel-gfx] " Lisovskiy, Stanislav
2019-10-15 19:30 ` [PATCH v2 02/13] drm/i915: Rework global state locking Ville Syrjala
2019-10-24 10:24   ` Lisovskiy, Stanislav
2019-10-24 10:24     ` [Intel-gfx] " Lisovskiy, Stanislav
2019-10-15 19:30 ` Ville Syrjala [this message]
2019-10-24 10:28   ` [PATCH v2 03/13] drm/i915: Move check_digital_port_conflicts() earier Lisovskiy, Stanislav
2019-10-24 10:28     ` [Intel-gfx] " Lisovskiy, Stanislav
2019-10-15 19:30 ` [PATCH v2 04/13] drm/i915: Allow planes to declare their minimum acceptable cdclk Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 05/13] drm/i915: Eliminate skl_check_pipe_max_pixel_rate() Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 06/13] drm/i915: Simplify skl_max_scale() Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 07/13] drm/i915: Add support for half float framebuffers for skl+ Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 08/13] drm/i915: Add support for half float framebuffers for gen4+ primary planes Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 09/13] drm/i915: Add support for half float framebuffers for ivb+ sprites Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 10/13] drm/i915: Add support for half float framebuffers on snb sprites Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 11/13] drm/i915: Move more cdclk state handling into intel_modeset_calc_cdclk() Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 12/13] drm/i915: Consolidate more cdclk state handling Ville Syrjala
2019-10-15 19:30 ` [PATCH v2 13/13] drm/i915: Collect more cdclk state under the same roof Ville Syrjala
2019-10-15 21:48 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Plane cdclk requirements and fp16 for gen4+ (rev2) Patchwork
2019-10-15 22:22 ` ✓ Fi.CI.BAT: success " Patchwork
2019-10-16 10:32 ` ✗ Fi.CI.IGT: failure " Patchwork

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=20191015193035.25982-4-ville.syrjala@linux.intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@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 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.