From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 074AD159573; Mon, 29 Jan 2024 17:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706548395; cv=none; b=UmeOfwhDD+iY0BFDiAHqFU+WqwYLY2FTUQtxBobsNVcjiMgh295buWE13vOkL/1N4zI5wnogSiijARgyRtfkQUCTsW+bE2H5RGD0Pv2htAif7P0a7V9jtrRdHlf1S0Uxj9gjlfZv5VieKZcq31HUYtBSmJgZ2zjYSgNGsinK6ik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706548395; c=relaxed/simple; bh=Z2HA32txU6nnKE0/+vhq8rG4T0eIZeHRL0LBkMhOdC4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CzGa2hCPQBc5eTa4KHM6a6+X88qHkri1xy473fMWMRCo9971otyJNGIrj46L+za6+SlYa9Y3rXI2b3/hapobZQzt2J3DFhP8kFuttU7b6URmfcD7GRYMS/pOjpGX4h8qRq81erbSHX8P/dDnIO46hIuGRuQUl+ZOtvDTIn8VtjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tDs8I4yH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tDs8I4yH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFE5EC43390; Mon, 29 Jan 2024 17:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706548394; bh=Z2HA32txU6nnKE0/+vhq8rG4T0eIZeHRL0LBkMhOdC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tDs8I4yHWclS5fWm2/sx/+ceuiqHLCNgjrNBioQbAsj//QeFHC8Srco+MVZEgnIhB lXog8CWGiJspbPRSGiXuMWC5VuB7uijpspCmkIdg+H0O7unZSLtQx/+EGI5CK7Yh9C 8whSWtfhKsFZn8wEsvc7A126mrWoCJRcfHADl000= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, aaron.ma@canonical.com, binli@gnome.org, Marc Rossi , Hamza Mahfooz , Mario Limonciello , Alex Deucher , Harry Wentland Subject: [PATCH 6.1 136/185] drm/amd/display: Disable PSR-SU on Parade 0803 TCON again Date: Mon, 29 Jan 2024 09:05:36 -0800 Message-ID: <20240129170002.966341403@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240129165958.589924174@linuxfoundation.org> References: <20240129165958.589924174@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mario Limonciello commit 571c2fa26aa654946447c282a09d40a56c7ff128 upstream. When screen brightness is rapidly changed and PSR-SU is enabled the display hangs on panels with this TCON even on the latest DCN 3.1.4 microcode (0x8002a81 at this time). This was disabled previously as commit 072030b17830 ("drm/amd: Disable PSR-SU on Parade 0803 TCON") but reverted as commit 1e66a17ce546 ("Revert "drm/amd: Disable PSR-SU on Parade 0803 TCON"") in favor of testing for a new enough microcode (commit cd2e31a9ab93 ("drm/amd/display: Set minimum requirement for using PSR-SU on Phoenix")). As hangs are still happening specifically with this TCON, disable PSR-SU again for it until it can be root caused. Cc: stable@vger.kernel.org Cc: aaron.ma@canonical.com Cc: binli@gnome.org Cc: Marc Rossi Cc: Hamza Mahfooz Signed-off-by: Mario Limonciello Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2046131 Acked-by: Alex Deucher Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/modules/power/power_helpers.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c +++ b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c @@ -818,6 +818,8 @@ bool is_psr_su_specific_panel(struct dc_ isPSRSUSupported = false; else if (dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x03) isPSRSUSupported = false; + else if (dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x03) + isPSRSUSupported = false; else if (dpcd_caps->psr_info.force_psrsu_cap == 0x1) isPSRSUSupported = true; }