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 8C59ACD8CAC for ; Mon, 8 Jun 2026 14:12:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1B49610F454; Mon, 8 Jun 2026 14:12:21 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="RiYpmVfo"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id CF19210F450; Mon, 8 Jun 2026 14:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780927939; x=1812463939; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yv+CE/4lG2jElo2HsC8Q/gz/FCIfrHHu53Xubht1dC0=; b=RiYpmVfokw7qV7AVI2nbsLxa82YoJ8ypH4FZAs231Wnwz4ij04PI8sIr UBG2fCo+ZsPpSdj0ypyLFWOOhQQhoM5db6g7+usAR7NPL/Kaq3LzbKXoX BTc5tM60PL041OzCBGXnYXheKcnw1wl4+ecDgl9h96LDxgZHsaMEiJCEd VOWwRlVypTsj4kAgtAqJdzFPjZEgSjBynVMmu6+SXOJX9tlpLUUAfOIpD MriWYqMSNLnC71o6op+DPIV9CiNrvndoQfYIKMusGesnqCwD7FFLyl2ak AwIPOMdIiG0rt74fsPbCGAoMKEr1MlSvNMg0PIXye73f1iAM4V/CTsFXr Q==; X-CSE-ConnectionGUID: zH9Le4ajRumGYvW3lpwQYQ== X-CSE-MsgGUID: E335AaQsSm+xzpJNVNOxxA== X-IronPort-AV: E=McAfee;i="6800,10657,11810"; a="81781297" X-IronPort-AV: E=Sophos;i="6.24,194,1774335600"; d="scan'208";a="81781297" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2026 07:12:19 -0700 X-CSE-ConnectionGUID: 9hPwmUgARjqC8zvvMWnStQ== X-CSE-MsgGUID: Q+Pk0x2rQlOqIaEdKd7khQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,194,1774335600"; d="scan'208";a="241113698" Received: from carterle-desk.ger.corp.intel.com (HELO jhogande-mobl3.intel.com) ([10.245.246.213]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2026 07:12:18 -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 2/7] drm/i915/psr: Stop using intel_dsc_enabled_on_link to detect crtc DSC status Date: Mon, 8 Jun 2026 17:11:19 +0300 Message-ID: <20260608141124.144878-3-jouni.hogander@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260608141124.144878-1-jouni.hogander@intel.com> References: <20260608141124.144878-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" Intel_dsc_enabled_on_link is not really about DSC being enabled on crtc. It is telling if FEC is enabled on link. Instead of intel_dsc_enabled_on_link check status directly from crtc->dsc.compression_enable. Also rename intel_dsc_enabled_on_link as intel_fec_enabled_on_link. Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_psr.c | 6 +++--- drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +- drivers/gpu/drm/i915/display/intel_vdsc.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index ad2f6c79f5808..f58200d38ac2c 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -1740,7 +1740,7 @@ static bool intel_sel_update_config_valid(struct intel_crtc_state *crtc_state, if (!connector->dp.panel_replay_caps.su_support) goto unsupported; - if (intel_dsc_enabled_on_link(crtc_state) && + if (crtc_state->dsc.compression_enable && connector->dp.panel_replay_caps.dsc_support != INTEL_DP_PANEL_REPLAY_DSC_SELECTIVE_UPDATE) { drm_dbg_kms(display->drm, @@ -1840,7 +1840,7 @@ static bool _panel_replay_compute_config(struct intel_crtc_state *crtc_state, return false; } - if (intel_dsc_enabled_on_link(crtc_state) && + if (crtc_state->dsc.compression_enable && connector->dp.panel_replay_caps.dsc_support == INTEL_DP_PANEL_REPLAY_DSC_NOT_SUPPORTED) { drm_dbg_kms(display->drm, @@ -3235,7 +3235,7 @@ verify_panel_replay_dsc_state(const struct intel_crtc_state *crtc_state) return; drm_WARN_ON(display->drm, - intel_dsc_enabled_on_link(crtc_state) && + crtc_state->dsc.compression_enable && crtc_state->panel_replay_dsc_support == INTEL_DP_PANEL_REPLAY_DSC_NOT_SUPPORTED); } diff --git a/drivers/gpu/drm/i915/display/intel_vdsc.c b/drivers/gpu/drm/i915/display/intel_vdsc.c index 8f06c3a4d56df..35c93fcbb6427 100644 --- a/drivers/gpu/drm/i915/display/intel_vdsc.c +++ b/drivers/gpu/drm/i915/display/intel_vdsc.c @@ -431,7 +431,7 @@ void intel_dsc_enable_on_crtc(struct intel_crtc_state *crtc_state) crtc_state->dsc.compression_enable = true; } -bool intel_dsc_enabled_on_link(const struct intel_crtc_state *crtc_state) +bool intel_fec_enabled_on_link(const struct intel_crtc_state *crtc_state) { struct intel_display *display = to_intel_display(crtc_state); diff --git a/drivers/gpu/drm/i915/display/intel_vdsc.h b/drivers/gpu/drm/i915/display/intel_vdsc.h index 3372f8694054d..60d86399808c0 100644 --- a/drivers/gpu/drm/i915/display/intel_vdsc.h +++ b/drivers/gpu/drm/i915/display/intel_vdsc.h @@ -28,7 +28,7 @@ void intel_dsc_enable(const struct intel_crtc_state *crtc_state); void intel_dsc_disable(const struct intel_crtc_state *crtc_state); int intel_dsc_compute_params(struct intel_crtc_state *pipe_config); void intel_dsc_enable_on_crtc(struct intel_crtc_state *crtc_state); -bool intel_dsc_enabled_on_link(const struct intel_crtc_state *crtc_state); +bool intel_fec_enabled_on_link(const struct intel_crtc_state *crtc_state); void intel_dsc_get_config(struct intel_crtc_state *crtc_state); enum intel_display_power_domain intel_dsc_power_domain(struct intel_crtc *crtc, enum transcoder cpu_transcoder); -- 2.43.0