From patchwork Wed Jan 18 08:51:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13105892 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 486E4C38159 for ; Wed, 18 Jan 2023 08:52:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8403D10E238; Wed, 18 Jan 2023 08:52:48 +0000 (UTC) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id DCA8D10E238 for ; Wed, 18 Jan 2023 08:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674031965; x=1705567965; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MccpgKiLsu/EYYhWysA/Insjn/fpWIWo1Nbga8ILqLc=; b=GnXi4oa/N20g2grO8fcx45zC17aMa/EJcV+k4j0vrcI9iamD595jxQ79 PJaU9j3ZJ0lCt7CDvgv7GmCwGW5EB7M3JnsAS0kxXA76ChjMFbKs/x9BN /fFmeRyPyQYi+o3lSjqfdojXdrEAYEEcuDaO+F68/dcN2GB7kFOHq2r5H Wykq2vFmm9yze0P4tU6Wqf3fTxpL6FIgVLMJXyZfrgK5ZLpvr5dSuLRdh zPFVt6gxEIRkkC00GTXhVZVeJTonzX7k3DHe+gZILWJSa9sPt0YKSZpef rV3qN5AemDYIlqC/zxBIN3wwI3lHksC+5FtILJHq6CknKds7e5g2ln7dO Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="387284470" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="387284470" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 00:52:45 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="637195684" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="637195684" Received: from kleve-mobl1.ger.corp.intel.com (HELO jhogande-mobl1.ger.corp.intel.com) ([10.252.53.237]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 00:52:44 -0800 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org Date: Wed, 18 Jan 2023 10:51:59 +0200 Message-Id: <20230118085200.1017626-2-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230118085200.1017626-1-jouni.hogander@intel.com> References: <20230118085200.1017626-1-jouni.hogander@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH 1/2] drm/i915/psr: Implement Wa_14014971492 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" Implement Wa_14014971492 and apply it for affected platforms. Bspec: 52890, 54369, 55378, 66624 Cc: Mika Kahola Cc: José Roberto de Souza Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_psr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 7d4a15a283a0..24900a790508 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -1842,6 +1842,11 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, if (full_update) goto skip_sel_fetch_set_loop; + /* Wa_14014971492 */ + if ((IS_MTL_DISPLAY_STEP(dev_priv, STEP_A0, STEP_B0) || + IS_DISPLAY_VER(dev_priv, 12, 13)) && crtc_state->splitter.enable) + pipe_clip.y1 = 0; + ret = drm_atomic_add_affected_planes(&state->base, &crtc->base); if (ret) return ret; From patchwork Wed Jan 18 08:52:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13105893 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 A5613C38159 for ; Wed, 18 Jan 2023 08:52:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 224C610E369; Wed, 18 Jan 2023 08:52:52 +0000 (UTC) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 237B310E369 for ; Wed, 18 Jan 2023 08:52:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674031969; x=1705567969; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nk75fpbVBM7q/7qbnGLZBc5qmQZhprVhWlvqgWeara8=; b=R08uF8+huWpz3hvNmHi6hWymLNVXTz9FhTw8UHEpN/OSHtSIR4VzlQJI lXjOwGP/EYh2FibM/XKP5VxrKupnyrB5bQnDcgRRB+pQvEvT9bg7vAEqZ lUEfpyhEkSSGKP3GbGL4hPnHjLmiFmrB2WR0HkAB91NOUkp2BUQZxrT7A fIk6L59N5S1G0XHzcgEx+LC8CTqFudyCd7BmEXxnl6TKbP01EkDNjrQgG FXewWsqi7E6kJLUlOIORITtI+94zQZXtwPBZUcUS+dZIGducRjoTK8sR3 Zk08x+SS5DcUjOe5liIdE2MhsNNa9kjOR9Xe5xCCNnARDVyqFkjhS5Awd w==; X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="387284488" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="387284488" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 00:52:48 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="637195701" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="637195701" Received: from kleve-mobl1.ger.corp.intel.com (HELO jhogande-mobl1.ger.corp.intel.com) ([10.252.53.237]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 00:52:47 -0800 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org Date: Wed, 18 Jan 2023 10:52:00 +0200 Message-Id: <20230118085200.1017626-3-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230118085200.1017626-1-jouni.hogander@intel.com> References: <20230118085200.1017626-1-jouni.hogander@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH 2/2] drm/i915/mtl: Apply Wa_14013475917 for all MTL steppings 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" Wa_14013475917 has to be applied for all MTL steppings. Bspec: 66624 Cc: Mika Kahola Cc: José Roberto de Souza Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_hdmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c index 6a2ee342eab5..b7a154b46da6 100644 --- a/drivers/gpu/drm/i915/display/intel_hdmi.c +++ b/drivers/gpu/drm/i915/display/intel_hdmi.c @@ -537,9 +537,7 @@ void hsw_write_infoframe(struct intel_encoder *encoder, 0); /* Wa_14013475917 */ - if ((DISPLAY_VER(dev_priv) == 13 || - IS_MTL_DISPLAY_STEP(dev_priv, STEP_A0, STEP_B0)) && crtc_state->has_psr && - type == DP_SDP_VSC) + if (IS_DISPLAY_VER(dev_priv, 13, 14) && crtc_state->has_psr && type == DP_SDP_VSC) return; val |= hsw_infoframe_enable(type);