Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 940D23E47B for ; Wed, 18 Mar 2026 12:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773836503; cv=none; b=CoZxamLXjT3YTeNe8G0dJQayx1aQxRT95PkQ/lmRWl29IQUOkCVpyPc5gSTsduZYxreqbKuMbsOQixkAW17m0Ov/92+Xhhc5TEh2xvJnBTwWvye6CEjudBKYdwgHd3ZrH0BDNVp2W/9mtfzvGpbb+lrjet5mZ9wfuxanBOQ0XpI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773836503; c=relaxed/simple; bh=9s/I2lYGu3T6XvoYPQ7NAZAfuykmlHVOx9OAal4bN0c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bMlWisGl/YbX9fi0GBDVs7B80p23AYvRHneaWNiikc5pmWZcxjaVy4O/M9/OrOHOZfJg0XTUduYzl0m3rI+zNmySrKyu+/Q715GLqEQxChJV0+Rrp66RjYFfF290Vmkyc5iNw1JuLL3Elfp3zHBoINFSDS+RgfYIjmzJDQJp0LE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Okmk/KrO; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Okmk/KrO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773836502; x=1805372502; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9s/I2lYGu3T6XvoYPQ7NAZAfuykmlHVOx9OAal4bN0c=; b=Okmk/KrOo7OQd7nx5yp4BzItEIOAoMI+kNbanqDNpubmE+xyP/TYvpUz TImQuiiaJ4A1yCa99AgCPsr0KQC/1biKATTHEhLDaSyh6Y5AvtdHM6nnN JsYMdkr3LrZ4yQVOMG7wjoQvgQQ11bbjbT00YLCNjHN3Yg5SXLnqyIIzl koJIZLTjUOBFuYqy/h+k4M70vXFwReqJVcROR9/DAbe9zgYMB3SB+yect vRoIbgQ3rYEPgJwhlwXOrsEOh9rWS1jgWD+84gAyddqdVYLR3OFvkQh4B nV1y7r9z896a4eqXQi8WmJuzpf1PLnvRmdxIp5XzVbXR4vC/w6SxbliwZ w==; X-CSE-ConnectionGUID: lQY+kuKKRVeXT+Bz381D8g== X-CSE-MsgGUID: K0b/qZ7OSo+cCDxsQzCG4A== X-IronPort-AV: E=McAfee;i="6800,10657,11732"; a="85517815" X-IronPort-AV: E=Sophos;i="6.23,127,1770624000"; d="scan'208";a="85517815" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2026 05:21:41 -0700 X-CSE-ConnectionGUID: RxyTRaaFRZmHdcY7H4XUlQ== X-CSE-MsgGUID: 14rETGduQuOkew3SRwfmsw== X-ExtLoop1: 1 Received: from egrumbac-mobl6.ger.corp.intel.com (HELO jhogande-mobl3.intel.com) ([10.245.245.220]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2026 05:21:40 -0700 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= To: stable@vger.kernel.org Cc: =?UTF-8?q?Jouni=20H=C3=B6gander?= , Ankit Nautiyal , Tvrtko Ursulin Subject: [PATCH 6.12.y 3/3] drm/i915/psr: Write DSC parameters on Selective Update in ET mode Date: Wed, 18 Mar 2026 14:20:43 +0200 Message-ID: <20260318122043.927064-3-jouni.hogander@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260318122043.927064-1-jouni.hogander@intel.com> References: <2026031746-femur-scallion-c55f@gregkh> <20260318122043.927064-1-jouni.hogander@intel.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 commit 5923a6e0459fdd3edac4ad5abccb24d777d8f1b6 upstream. There are slice row per frame and pic height parameters in DSC that needs to be configured on every Selective Update in Early Transport mode. Use helper provided by DSC code to configure these on Selective Update when in Early Transport mode. Also fill crtc_state->psr2_su_area with full frame area on full frame update for DSC calculation. v2: move psr2_su_area under skip_sel_fetch_set_loop label Bspec: 68927, 71709 Fixes: 467e4e061c44 ("drm/i915/psr: Enable psr2 early transport as possible") Cc: # v6.9+ Signed-off-by: Jouni Högander Reviewed-by: Ankit Nautiyal Link: https://patch.msgid.link/20260304113011.626542-5-jouni.hogander@intel.com (cherry picked from commit 3140af2fab505a4cd47d516284529bf1585628be) Signed-off-by: Tvrtko Ursulin (cherry picked from commit 5923a6e0459fdd3edac4ad5abccb24d777d8f1b6) --- drivers/gpu/drm/i915/display/intel_psr.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 34d61e44c6bd..43523a2671d8 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -41,6 +41,7 @@ #include "intel_psr.h" #include "intel_psr_regs.h" #include "intel_snps_phy.h" +#include "intel_vdsc.h" #include "skl_universal_plane.h" /** @@ -2317,6 +2318,12 @@ void intel_psr2_program_trans_man_trk_ctl(const struct intel_crtc_state *crtc_st intel_de_write(display, PIPE_SRCSZ_ERLY_TPT(crtc->pipe), crtc_state->pipe_srcsz_early_tpt); + + if (!crtc_state->dsc.compression_enable) + return; + + intel_dsc_su_et_parameters_configure(NULL, encoder, crtc_state, + drm_rect_height(&crtc_state->psr2_su_area)); } static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state, @@ -2672,6 +2679,10 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, } skip_sel_fetch_set_loop: + if (full_update) + clip_area_update(&crtc_state->psr2_su_area, &crtc_state->pipe_src, + &crtc_state->pipe_src); + psr2_man_trk_ctl_calc(crtc_state, full_update); crtc_state->pipe_srcsz_early_tpt = psr2_pipe_srcsz_early_tpt_calc(crtc_state, full_update); -- 2.43.0