From patchwork Thu Oct 24 03:55:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kandpal, Suraj" X-Patchwork-Id: 13848291 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 D9E0FD0BB59 for ; Thu, 24 Oct 2024 03:56:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7356210E89C; Thu, 24 Oct 2024 03:56:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="A31uQQ3E"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id A85BF10E897; Thu, 24 Oct 2024 03:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729742172; x=1761278172; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MAK5ZZJSdMSFmTInN1RsXVlegsujrnY9G0QGLv2/nfY=; b=A31uQQ3EWpvcCSRZaUwDjUdSel726s+Gcr2QRX0W5Q1ahujCrj2ZI/JR FmmcA7XXXFZ5xkMYDlIpgpasHKzltQ+YU3eMDCWzK3o/Uxu6AKiyPR8HS ilemeOY7u96YzEIbrNaXIHV1mQJE5RhozQpJMTT0iZ/fumSR0U8jYolot t0ViN+oJfXA9kjY8oHO11HzkmOP+x1hd+GUbOeh9mkg77NZ9aH5oU2eUG y4VfG4okFNnZJH9ka8nRxyecctGhfZzLWp3cm56q2VphZFm+48KinAGat M4f5x7Lj5JDRCT88JKnhrvW53ML1Eg4BRsUJ3axaNvAuIA043wu0aLGjX g==; X-CSE-ConnectionGUID: nRzew6LISDmoAzsjjDs2PQ== X-CSE-MsgGUID: BbXLAzQuSgqVkjHSYzy/jg== X-IronPort-AV: E=McAfee;i="6700,10204,11234"; a="28818508" X-IronPort-AV: E=Sophos;i="6.11,228,1725346800"; d="scan'208";a="28818508" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2024 20:56:11 -0700 X-CSE-ConnectionGUID: lp7JeJKLSMCRzKjJAD92RA== X-CSE-MsgGUID: 4BywU89kQM2rjk9NAXYO+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,228,1725346800"; d="scan'208";a="80128108" Received: from linux-lunar-lake-client-platform.iind.intel.com ([10.227.88.172]) by fmviesa007.fm.intel.com with ESMTP; 23 Oct 2024 20:56:09 -0700 From: Suraj Kandpal To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: ankit.k.nautiyal@intel.com, matthew.d.roper@intel.com, Suraj Kandpal , Arun R Murthy Subject: [PATCH 1/4] drm/i915/xe3lpd: Increase resolution for plane to support 6k Date: Thu, 24 Oct 2024 09:25:49 +0530 Message-Id: <20241024035552.94363-2-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241024035552.94363-1-suraj.kandpal@intel.com> References: <20241024035552.94363-1-suraj.kandpal@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" DISPLAY_VER >= 30 onwards CRTC can now support 6k resolution. Increase pipe and plane max width and height to reflect this increase in resolution. --v2 -Take care of the subsampling scenario sooner rather than later [Matt] Signed-off-by: Arun R Murthy Signed-off-by: Suraj Kandpal Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display.c | 5 ++++- .../gpu/drm/i915/display/skl_universal_plane.c | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index e1f6255e918b..37bac53f996e 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -8432,7 +8432,10 @@ intel_mode_valid_max_plane_size(struct drm_i915_private *dev_priv, * plane so let's not advertize modes that are * too big for that. */ - if (DISPLAY_VER(dev_priv) >= 11) { + if (DISPLAY_VER(dev_priv) >= 30) { + plane_width_max = 6144 * num_joined_pipes; + plane_height_max = 4096; + } else if (DISPLAY_VER(dev_priv) >= 11) { plane_width_max = 5120 * num_joined_pipes; plane_height_max = 4320; } else { diff --git a/drivers/gpu/drm/i915/display/skl_universal_plane.c b/drivers/gpu/drm/i915/display/skl_universal_plane.c index 9207b7e96974..b3660c71e499 100644 --- a/drivers/gpu/drm/i915/display/skl_universal_plane.c +++ b/drivers/gpu/drm/i915/display/skl_universal_plane.c @@ -432,6 +432,16 @@ static int icl_plane_min_width(const struct drm_framebuffer *fb, } } +static int xe3_plane_max_width(const struct drm_framebuffer *fb, + int color_plane, + unsigned int rotation) +{ + if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier)) + return 4096; + else + return 6144; +} + static int icl_hdr_plane_max_width(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) @@ -2511,7 +2521,11 @@ skl_universal_plane_create(struct drm_i915_private *dev_priv, intel_fbc_add_plane(skl_plane_fbc(dev_priv, pipe, plane_id), plane); - if (DISPLAY_VER(dev_priv) >= 11) { + if (DISPLAY_VER(dev_priv) >= 30) { + plane->max_width = xe3_plane_max_width; + plane->max_height = icl_plane_max_height; + plane->min_cdclk = icl_plane_min_cdclk; + } else if (DISPLAY_VER(dev_priv) >= 11) { plane->min_width = icl_plane_min_width; if (icl_is_hdr_plane(dev_priv, plane_id)) plane->max_width = icl_hdr_plane_max_width; From patchwork Thu Oct 24 03:55:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kandpal, Suraj" X-Patchwork-Id: 13848292 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 081A6D0BB5B for ; Thu, 24 Oct 2024 03:56:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B85610E89E; Thu, 24 Oct 2024 03:56:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ODCvKuhm"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id A57D110E89E; Thu, 24 Oct 2024 03:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729742174; x=1761278174; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zdnJzz4FD0Zj3vuMjdNGZaHzdjF/IjRHyBIsEiQw1sY=; b=ODCvKuhm691BUp1usVqQzgimUOLZQ8zDUk3jHjO9PfXicI8TzO38gDSi zQLty6EGFO+/yWEwkXHOxDXwGGGgIn6PJwuxshqIPrM/OYOem+Vz4VFWp LoWgoo3bFn7ZGqYoIP6k6lRw36EWiCWXDEMv+nnJSExeMwBZ11PdZvSTp 2BVjVCsiuRvjf5y2HEmgcC10WIWhLQ1FwpLC+r3u7A6rQ93c0xDEfsAGj O+oen8IlxiJu26loGexFyO6Xati+pBUM9mtsoR6UMFB3Y7woxlt8eTWrd FY70+K5Vpa0Q8a9GqgIAVFjk94mqRTAfrXRQLjI6kCYwovXMQNGgsulz5 Q==; X-CSE-ConnectionGUID: QDFu4lVsShGL/JZhf/FMwA== X-CSE-MsgGUID: S6Zyw8LjSVepEBSI7sb+8g== X-IronPort-AV: E=McAfee;i="6700,10204,11234"; a="28818509" X-IronPort-AV: E=Sophos;i="6.11,228,1725346800"; d="scan'208";a="28818509" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2024 20:56:13 -0700 X-CSE-ConnectionGUID: Q1FyiEz0SwqWcz3p2OkmFA== X-CSE-MsgGUID: cdCIzPnoTVGLrE+XWmRi3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,228,1725346800"; d="scan'208";a="80128111" Received: from linux-lunar-lake-client-platform.iind.intel.com ([10.227.88.172]) by fmviesa007.fm.intel.com with ESMTP; 23 Oct 2024 20:56:11 -0700 From: Suraj Kandpal To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: ankit.k.nautiyal@intel.com, matthew.d.roper@intel.com, Suraj Kandpal Subject: [PATCH 2/4] drm/i915/xe3lpd: Increase max_h max_v for PSR Date: Thu, 24 Oct 2024 09:25:50 +0530 Message-Id: <20241024035552.94363-3-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241024035552.94363-1-suraj.kandpal@intel.com> References: <20241024035552.94363-1-suraj.kandpal@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" Spec states that PSR max active is same as max pipe active values. Now that each pipe supports 6k resolution increasing max_h and max_v for PSR too. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_psr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 3b20325b3f6a..8981a180285e 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -1451,7 +1451,11 @@ static bool intel_psr2_config_valid(struct intel_dp *intel_dp, return false; } - if (DISPLAY_VER(display) >= 12) { + if (DISPLAY_VER(dev_priv) >= 30) { + psr_max_h = 6144; + psr_max_v = 4096; + max_bpp = 30; + } else if (DISPLAY_VER(dev_priv) >= 12) { psr_max_h = 5120; psr_max_v = 3200; max_bpp = 30; From patchwork Thu Oct 24 03:55:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kandpal, Suraj" X-Patchwork-Id: 13848293 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 20F51D0BB5C for ; Thu, 24 Oct 2024 03:56:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8994E10E89F; Thu, 24 Oct 2024 03:56:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="m04+0L2q"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 53EC510E89F; Thu, 24 Oct 2024 03:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729742175; x=1761278175; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BlIR1Bp3m6Hwiy1JUDcHgld/mahDUZa5oWAlF3gBO2A=; b=m04+0L2qOZVx/Dg/4IHvMCh8XiLhcF84dnX60SsN+t4DYPHJVloxhvyN muQfCGVsRE4Fhr1YFmhFpH5GJgxwlklTx4klWujmaR+VYnCTrhMeZmLsk mLrSFgiGLMNJu62aM5TnhF8yXzf8TmXDX0OG3GnoEcAZSOGKBp+sYm9Yr kNmu6yCZmIGEjvLc+DL+BFbPHueTuFU6mqZUBUA/R/ec9EdMv1bbtMvSH TsGTrX3rZShfQwMS0/+xlg3gYRaUKlTQzqQmt+gOWVJt4prJN/vavNZas m0x5O383BZTam22lJRdHChm+NYq0rnje+AlRivKkjfT4qV3RrCetjA6Ev g==; X-CSE-ConnectionGUID: unD5KMJ5RIGwaE+EThXbPg== X-CSE-MsgGUID: af2ybpQKR76EHAIoRxztiQ== X-IronPort-AV: E=McAfee;i="6700,10204,11234"; a="28818511" X-IronPort-AV: E=Sophos;i="6.11,228,1725346800"; d="scan'208";a="28818511" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2024 20:56:15 -0700 X-CSE-ConnectionGUID: ZOHVMk4RTf6r7H+8rn1Owg== X-CSE-MsgGUID: 8DnkSAbVSwOPTxiyllNNTw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,228,1725346800"; d="scan'208";a="80128114" Received: from linux-lunar-lake-client-platform.iind.intel.com ([10.227.88.172]) by fmviesa007.fm.intel.com with ESMTP; 23 Oct 2024 20:56:13 -0700 From: Suraj Kandpal To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: ankit.k.nautiyal@intel.com, matthew.d.roper@intel.com, Suraj Kandpal Subject: [PATCH 3/4] drm/i914/xe3lpd: Increase bigjoiner limitations Date: Thu, 24 Oct 2024 09:25:51 +0530 Message-Id: <20241024035552.94363-4-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241024035552.94363-1-suraj.kandpal@intel.com> References: <20241024035552.94363-1-suraj.kandpal@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" With 6k resolution support for a single crtc being added bigjoiner will only come into picture when hdisplay > 6144 Signed-off-by: Suraj Kandpal Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index fbb096be02ad..e0baad468d76 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1313,14 +1313,17 @@ bool intel_dp_needs_joiner(struct intel_dp *intel_dp, int num_joined_pipes) { struct drm_i915_private *i915 = dp_to_i915(intel_dp); + int hdisplay_limit; if (!intel_dp_has_joiner(intel_dp)) return false; num_joined_pipes /= 2; + hdisplay_limit = DISPLAY_VER(i915) >= 30 ? 6144 : 5120; + return clock > num_joined_pipes * i915->display.cdclk.max_dotclk_freq || - hdisplay > num_joined_pipes * 5120; + hdisplay > num_joined_pipes * hdisplay_limit; } int intel_dp_num_joined_pipes(struct intel_dp *intel_dp, From patchwork Thu Oct 24 03:55:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kandpal, Suraj" X-Patchwork-Id: 13848294 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 7CF77D0BB59 for ; Thu, 24 Oct 2024 03:56:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F3C8510E155; Thu, 24 Oct 2024 03:56:26 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="SVC7eiKm"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D16810E8A0; Thu, 24 Oct 2024 03:56:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729742177; x=1761278177; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WVGydUsBQOt+BtnsAokogVjyZdg9SaHDElVZg8rj4QQ=; b=SVC7eiKmYX2S89fVLsF/IH5ozpA2zT0u9RYIQqEcnd4QyM1HcKtbONjK KhgDTx4MmiG+tQO3DGbbgdg5x1PzWshzLDbDM9CnsF2wlb+V8KDiIfv+9 Qu/k99giiv9vafoaHy4g0xoKX81CCDbB6Mr9dLEFjP0w7N1KxPJLG+ES+ 0y7eKLgwktdrlwl2SEkICybMPOyRsJGwhcOydAZWPZSXLcj2TYQcEXqLM RMSS2LRA5Qf/80qd5Tvv8zdGgN3Ooy4pUWs4+cLOwR12+EsLn/FrUvJ0p XnUUWRCdkdc5+CTP18osnZxdsKDEsuZQcxbwLFoShpAnRComb7XdgSfXv Q==; X-CSE-ConnectionGUID: ACXJsslsRea/9dbBMrTd/w== X-CSE-MsgGUID: RrEpbHlWT6qNqQcYrhpIXQ== X-IronPort-AV: E=McAfee;i="6700,10204,11234"; a="28818512" X-IronPort-AV: E=Sophos;i="6.11,228,1725346800"; d="scan'208";a="28818512" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2024 20:56:17 -0700 X-CSE-ConnectionGUID: O0Gnr5A7TSyj7rUJreYCbg== X-CSE-MsgGUID: eDayl3/HR2S229GgIJ9gwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,228,1725346800"; d="scan'208";a="80128118" Received: from linux-lunar-lake-client-platform.iind.intel.com ([10.227.88.172]) by fmviesa007.fm.intel.com with ESMTP; 23 Oct 2024 20:56:15 -0700 From: Suraj Kandpal To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: ankit.k.nautiyal@intel.com, matthew.d.roper@intel.com, Suraj Kandpal Subject: [PATCH 4/4] drm/i915/xe3lpd: Prune modes for YUV420 Date: Thu, 24 Oct 2024 09:25:52 +0530 Message-Id: <20241024035552.94363-5-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241024035552.94363-1-suraj.kandpal@intel.com> References: <20241024035552.94363-1-suraj.kandpal@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" We only support resolution up to 4k for single pipe when using YUV420 format so we prune these modes and restrict the plane size at src. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_dp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index e0baad468d76..edaea5e8c53c 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1373,6 +1373,7 @@ intel_dp_mode_valid(struct drm_connector *_connector, { struct intel_connector *connector = to_intel_connector(_connector); struct intel_dp *intel_dp = intel_attached_dp(connector); + enum intel_output_format sink_format; struct drm_i915_private *dev_priv = to_i915(connector->base.dev); const struct drm_display_mode *fixed_mode; int target_clock = mode->clock; @@ -1407,6 +1408,11 @@ intel_dp_mode_valid(struct drm_connector *_connector, mode->hdisplay, target_clock); max_dotclk *= num_joined_pipes; + sink_format = intel_dp_sink_format(connector, mode); + if (sink_format == INTEL_OUTPUT_FORMAT_YCBCR420 && + mode->hdisplay > 4096) + return MODE_NO_420; + if (target_clock > max_dotclk) return MODE_CLOCK_HIGH;