From patchwork Fri Mar 29 01:12:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13609853 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8BC2BCD1284 for ; Fri, 29 Mar 2024 01:13:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 04BE510E8FA; Fri, 29 Mar 2024 01:13:39 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="eZupyl4E"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1A34F10E8F5 for ; Fri, 29 Mar 2024 01:13:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711674819; x=1743210819; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=1vlYLq9oUod4WxAk7CDDGZZqCqvr4qy1hvJ4gUpEP9s=; b=eZupyl4Eq22RzMzYct89fO/iw2prqOC7iQ7V2bo766OZtYp19+bweRNG JiTG2jn6sfIxavpD5OTCDNYlaHoJmmUHxoJgH4CnDPneRaa7N8a1zp8AL ln6We0BSw2UGLCxrgtUMZbkxMKxn7mlzXzc+DQ73/odyEBVLRv56fYwEv KLxx7+zBdRgfVlNKtJtHs6duVJbIJGmd5l3lnyLkKA9DKKWG+nj3TDJRC CSujqzrMtpx3NuW47bHNUocw/WHjRzA8oLewxiH2X/7IXLsLeTb/+fhgq jOWaXDC5tMoaPKHJ3lHCDOUN2Cvj3YnW2qCHvtHRq3P4yC5Cb8sLWWY3v w==; X-CSE-ConnectionGUID: cyAgE/aESbWd2HTh9LztNw== X-CSE-MsgGUID: WebjXRYZQSW0ZOUVoMbaYA== X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="6756325" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="6756325" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 18:13:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="827786778" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="827786778" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga001.jf.intel.com with SMTP; 28 Mar 2024 18:13:36 -0700 Received: by stinkbox (sSMTP sendmail emulation); Fri, 29 Mar 2024 03:13:35 +0200 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Subject: [PATCH 14/22] drm/i915/mst: Reject FEC+MST on ICL Date: Fri, 29 Mar 2024 03:12:46 +0200 Message-ID: <20240329011254.24160-15-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240329011254.24160-1-ville.syrjala@linux.intel.com> References: <20240329011254.24160-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Ville Syrjälä ICL supposedly doesn't support FEC on MST. Reject it. Signed-off-by: Ville Syrjälä Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index cbabd1924474..8b8059b6bb21 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1415,7 +1415,8 @@ static bool intel_dp_source_supports_fec(struct intel_dp *intel_dp, if (DISPLAY_VER(dev_priv) >= 12) return true; - if (DISPLAY_VER(dev_priv) == 11 && encoder->port != PORT_A) + if (DISPLAY_VER(dev_priv) == 11 && encoder->port != PORT_A && + !intel_crtc_has_type(pipe_config, INTEL_OUTPUT_DP_MST)) return true; return false;