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;