From patchwork Fri Oct 25 06:01:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kandpal, Suraj" X-Patchwork-Id: 13850071 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 D757FD116F7 for ; Fri, 25 Oct 2024 06:02:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 83A1C10E374; Fri, 25 Oct 2024 06:02:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="mnduXuoc"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id BCE3310E374; Fri, 25 Oct 2024 06:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729836125; x=1761372125; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0+VnajePGJn0Rhz1VQ8RRir4y8c8EsosToMhEwOtdb4=; b=mnduXuocrEVy+0ESDjkm0W2tVlqU2KEhcsg4nL3AsDxpuAQeiiWD1/e4 mqG9j+te0lFIdPhaTUUH1Q9NaoX3sVwnKkpUYDfSw+tzzr+neBFuqMfeQ S2kOi30on2On0Ldyda9qTPE+CM4SULyrWJvV4acxnEtkeh8qV9qFlKNIp OjM5w3zGBqA4o5LgW+Im11H1dlyPdUYqe6sNX7PoIGqXJsagWZpY/GlO6 /YoSeMdUNbgeHN/u55a6MHn0Gz/01WjVSLpDEZflzcN78FthH0RaYdsOm sqEdzpFNnVgPri4W7r3s2oOAKak9eAiFBwbZinxdlmYUMvMvzCMX6khwl Q==; X-CSE-ConnectionGUID: QaqnLeHLS/6tgwdyvj6l7Q== X-CSE-MsgGUID: 9wlHBwi9RsmxJBURGTuOOw== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="29620705" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="29620705" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2024 23:02:05 -0700 X-CSE-ConnectionGUID: tVBiqPUDSAmUsggctLn+5w== X-CSE-MsgGUID: oheKCwKJSOuM5Cy/xnx8kQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,231,1725346800"; d="scan'208";a="80734438" Received: from unknown (HELO kandpal-X299-UD4-Pro.iind.intel.com) ([10.190.239.10]) by orviesa009.jf.intel.com with ESMTP; 24 Oct 2024 23:02:03 -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 5/5] drm/i914/xe3lpd: Increase bigjoiner limitations Date: Fri, 25 Oct 2024 11:31:36 +0530 Message-Id: <20241025060136.9884-6-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025060136.9884-1-suraj.kandpal@intel.com> References: <20241025060136.9884-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 7e29619ba040..9dd4610c749a 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1315,14 +1315,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,