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 D08D0C83F17 for ; Thu, 10 Jul 2025 19:53:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D357210E94F; Thu, 10 Jul 2025 19:53:23 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Jr7hL5U2"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 938FD10E233; Thu, 10 Jul 2025 19:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1752177202; x=1783713202; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8Za4gYPlq3L3QJUefL4g11SiPRDoUl7M495gy8Fd/wM=; b=Jr7hL5U2/9YRzi5TRMD2oTYMuCZGDbURM7AMEfMCp01iXGiq9765gxcT KkHEGgaeCqAYVnEPVkusibMcTOOdeCErZVdlfuFJQ6kawhkZeez22q6fe QhBM39pF+kBBPZpMLt94wzhRNQjGdb8mLF8/flmAXLa3YSB6/0smmYdwl cAcySQLcihlIPXKTnVyhBqwyNQRMWjjWdVV94mmLjgAKPCXHqTcHrGqJS pZFgRghgARSBR2u1p6fMKk9zoxdHUYBV4tDnjdpwopaBj7t/Ut/ms8bYW iTCtBW3NVhyPQcqbJxzSHw2NpjjU1OPbGDjUiMI9g2dvoXrAHqXh5kllG g==; X-CSE-ConnectionGUID: sQtyhx4PR6ifCm/13yn1sA== X-CSE-MsgGUID: hzJXMYgVQCylYVoS0WXFSw== X-IronPort-AV: E=McAfee;i="6800,10657,11490"; a="54597030" X-IronPort-AV: E=Sophos;i="6.16,301,1744095600"; d="scan'208";a="54597030" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2025 12:53:22 -0700 X-CSE-ConnectionGUID: hg5IiYQUSmK+mlJznSbarA== X-CSE-MsgGUID: Wnn6K3IhR9CxSdi9oEXAlg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,301,1744095600"; d="scan'208";a="156898497" Received: from abityuts-desk.ger.corp.intel.com (HELO jhogande-mobl1..) ([10.245.244.189]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2025 12:53:21 -0700 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: =?UTF-8?q?Jouni=20H=C3=B6gander?= Subject: [PATCH v3 1/2] drm/i915/psr: Do not disable Early Transport when enable_psr is set Date: Thu, 10 Jul 2025 22:53:09 +0300 Message-ID: <20250710195310.3153786-2-jouni.hogander@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250710195310.3153786-1-jouni.hogander@intel.com> References: <20250710195310.3153786-1-jouni.hogander@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Transfer-Encoding: 8bit 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" Current approach is that Early Transport is disabled in case enable_psr module parameter is set. Let's ignore enable_psr parameter when choosing if Early Transport can be used. Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_psr.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index ae9053919211..a2b5688f0c82 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -265,16 +265,6 @@ static bool psr2_global_enabled(struct intel_dp *intel_dp) } } -static bool psr2_su_region_et_global_enabled(struct intel_dp *intel_dp) -{ - struct intel_display *display = to_intel_display(intel_dp); - - if (display->params.enable_psr != -1) - return false; - - return true; -} - static bool panel_replay_global_enabled(struct intel_dp *intel_dp) { struct intel_display *display = to_intel_display(intel_dp); @@ -742,8 +732,7 @@ static bool psr2_su_region_et_valid(struct intel_dp *intel_dp, bool panel_replay return panel_replay ? intel_dp->pr_dpcd[INTEL_PR_DPCD_INDEX(DP_PANEL_REPLAY_CAP_SUPPORT)] & DP_PANEL_REPLAY_EARLY_TRANSPORT_SUPPORT : - intel_dp->psr_dpcd[0] == DP_PSR2_WITH_Y_COORD_ET_SUPPORTED && - psr2_su_region_et_global_enabled(intel_dp); + intel_dp->psr_dpcd[0] == DP_PSR2_WITH_Y_COORD_ET_SUPPORTED; } static void _panel_replay_enable_sink(struct intel_dp *intel_dp, -- 2.43.0