From patchwork Mon Apr 15 08:14:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vivekanandan, Balasubramani" X-Patchwork-Id: 13629634 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 7FE2EC04FFF for ; Mon, 15 Apr 2024 08:14:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B26DC1122E5; Mon, 15 Apr 2024 08:14:37 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Oxu+p03r"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 066781122F4; Mon, 15 Apr 2024 08:14:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713168875; x=1744704875; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kDsys4IWibGuR/4LVWSOjuN5Nxeo505wgL6y6p40k/I=; b=Oxu+p03rJB39LwftitS6k8+uydpNnTxxX30qFJPADBbJmhPt9243mafx RmaE7EPFEGjmDuar/QrNjkq40OCZxLn8rCx1P6x1YOGifd03sRseFiG5b tonZddwPh6TIKuiszT2SAupm1GpygwBxtPiYim74wq/PQdwQXy+blCxlY qHVT3N5br4MvgM9ZTLcZaNVWzbVVMSUVW966lo8AwKSGZ5Eq8Ia2jtVkR 3x3Xqd6l29x6NnsS8FXClESkm3v58w6hfqKr1qHzGPra059BTc//8IjsN vQ0boa7738mF4elUTRFPd/jFQyDD8M8umpNyeGNq3qCszXKlVhbonzHTq w==; X-CSE-ConnectionGUID: eJrYlwDIQBiOaTtCks/fYQ== X-CSE-MsgGUID: lXXzsnR2TEaPAE+QlY1jqQ== X-IronPort-AV: E=McAfee;i="6600,9927,11044"; a="9096434" X-IronPort-AV: E=Sophos;i="6.07,202,1708416000"; d="scan'208";a="9096434" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 01:14:35 -0700 X-CSE-ConnectionGUID: k0uXag0UR2eEJ9YW6tDtww== X-CSE-MsgGUID: WMq06ewdR+KAPyAy4l+fVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,202,1708416000"; d="scan'208";a="26400468" Received: from bvivekan-desk.iind.intel.com ([10.190.238.63]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 01:14:33 -0700 From: Balasubramani Vivekanandan To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Lucas De Marchi , Matt Roper , Balasubramani Vivekanandan , Shekhar Chauhan Subject: [PATCH v3 17/21] drm/i915/xe2hpd: Set maximum DP rate to UHBR13.5 Date: Mon, 15 Apr 2024 13:44:19 +0530 Message-Id: <20240415081423.495834-18-balasubramani.vivekanandan@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240415081423.495834-1-balasubramani.vivekanandan@intel.com> References: <20240415081423.495834-1-balasubramani.vivekanandan@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" Max supported speed by xe2hpd is UHBR13.5. Limit the max DP source rate to it. Bspec: 67066 Signed-off-by: Balasubramani Vivekanandan Reviewed-by: Shekhar Chauhan --- drivers/gpu/drm/i915/display/intel_dp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 163da48bc406..23a4c5cca8e1 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -474,6 +474,9 @@ static int mtl_max_source_rate(struct intel_dp *intel_dp) if (intel_encoder_is_c10phy(encoder)) return 810000; + if (DISPLAY_VER_FULL(to_i915(encoder->base.dev)) == IP_VER(14, 1)) + return 1350000; + return 2000000; }