From patchwork Tue Jan 24 10:26:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13113767 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 4FC1AC38142 for ; Tue, 24 Jan 2023 10:27:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E3C3310E65F; Tue, 24 Jan 2023 10:27:01 +0000 (UTC) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 796A410E65F for ; Tue, 24 Jan 2023 10:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674556019; x=1706092019; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1NhklEhqb6+4Zc9d/YnDR7e9ArTpmU5QtvyFqhekwY4=; b=CZ90nNTTcP1zQpAkShsPHpVsi2eiZZwysySdMS/ocCB7aQvQZvfk0qLC EGHB2dVeino4VrWJ3D2xkyr5Pok2cm7hRml35rNWjLyvgMZpAJf9+U/r6 mpKTGNsBUp940WHb0neDlcO37zW+oia27eaB2j0UrVLO1OzD3I9d+AjE9 tmAqevqaOVAYhtAoCxQ/dFXCYS1dO+G5yQuFUsoFvUiXwq7ppQLeGLBsX iVU5iuwsfoDmjGcDrYsQsqCGsiLzVORYUl3oc21MdbiUesuHagfBGJg2G Uxd9o14yfyoYA3J8t3kiWNtOYRVVQ5iLBY2+DBXU1Wy5/Rxha1wmx6Jbc Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10599"; a="388611567" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="388611567" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2023 02:26:59 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10599"; a="786027623" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="786027623" Received: from dhenel-mobl.ger.corp.intel.com (HELO jhogande-mobl1.ger.corp.intel.com) ([10.251.208.164]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2023 02:26:57 -0800 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org Date: Tue, 24 Jan 2023 12:26:35 +0200 Message-Id: <20230124102636.2567292-2-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230124102636.2567292-1-jouni.hogander@intel.com> References: <20230124102636.2567292-1-jouni.hogander@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH v2 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: , Cc: Rodrigo Vivi 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 v2: Adjust platforms where applied Cc: Rodrigo Vivi Cc: Mika Kahola Cc: José Roberto de Souza Signed-off-by: Jouni Högander Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/display/intel_psr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 7d4a15a283a0..7a72e15e6836 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -1842,6 +1842,12 @@ 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_ALDERLAKE_P(dev_priv) || IS_TIGERLAKE(dev_priv)) && + crtc_state->splitter.enable) + pipe_clip.y1 = 0; + ret = drm_atomic_add_affected_planes(&state->base, &crtc->base); if (ret) return ret; From patchwork Tue Jan 24 10:26:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13113768 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 5A00DC38142 for ; Tue, 24 Jan 2023 10:27:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AAB2110E660; Tue, 24 Jan 2023 10:27:04 +0000 (UTC) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 38CFA10E661 for ; Tue, 24 Jan 2023 10:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674556023; x=1706092023; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nk75fpbVBM7q/7qbnGLZBc5qmQZhprVhWlvqgWeara8=; b=SlMkO8cIx9Euwj6L41PvX74yxrqWbl9jUh1Ln1D/iGFgPbNCzSDAOexE sZwFd9pGMTtLwd2RCe7j73owC30RXbJ8DBAsusxY+WfbWUC4GMlkSDQps BbjQybaQ2sc99T7FfLVi/Ys8ulHw9maPFMnZjpfa+OGBMVKlvbWDufXuY PO/WcfZfuv4arYmhwE7yeH3etwgJb6ZUS9osQslqqzdJLwKmbhyr+zz79 B0hNmuzxKzLdsOyd4sPo75Lxgg3UqMvkC6LZJqb8lDokyvkrMYIwFIf5Z FATdIGVoA8VHEEykphwpiX1nrOg8ItHQQ2PagM/hIroTR47cEvGFS4Ixk w==; X-IronPort-AV: E=McAfee;i="6500,9779,10599"; a="388611577" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="388611577" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2023 02:27:02 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10599"; a="786027629" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="786027629" Received: from dhenel-mobl.ger.corp.intel.com (HELO jhogande-mobl1.ger.corp.intel.com) ([10.251.208.164]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2023 02:27:00 -0800 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org Date: Tue, 24 Jan 2023 12:26:36 +0200 Message-Id: <20230124102636.2567292-3-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230124102636.2567292-1-jouni.hogander@intel.com> References: <20230124102636.2567292-1-jouni.hogander@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH v2 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 Reviewed-by: Rodrigo Vivi --- 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);