From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380659; b=tGkdtP9hq1TM7TibMh2XdV2sJT3TyZVI8pyjewB+0DMYWVvMIYOl9S3CspvoK9MCrGj/ gq7KuLOy7226En5/06PaimdbWwETirKPZYSnVuyGVi5S90FObLThrqa/3Qk8R80c35TH4 OXWip1gjijY77ee6CRn9wUTfJqd9aZ1YMOPwNhsJWW3tzXeJIi/PaifWC4s3F+3WykYu6 onw8ljrQwktYTLA+oWRUU5B4VdQyjfXYJ9D0RsFosW0UrHbktj5wev2q1IdvSZ3Wg7I9N 5ZeV2Yqd0eZfalji3ry/lSAZIa7K8rqlmU6MZkgoN3E9Wdl95kbuSWKRYHAzPF1o1uQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380659; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=yDmiIwPQ4mYMLkU6mSOS2LBOcNgQbC5dzy0WGxBlMxE=; b=Kn6SGGyZ99B+eYu4q5yweHFvsfkBKdZrMaDYOTpM1snVYvooLBEvYaYcxuB6lUmn+105 kA/URiTt2R2nD9cD/p43TlW7pR+LVwZRKvmFoRQ5Y4LogcLsGJzMci+AvM8fKxPgpxWuu LblMXOwnxKzgHWRNzbixgsCXzRb905ryj74HDrdVTlaQ8lK6+c/UXBsDb2gEZ5VfDaJBa stezkz0p1d+hpsfLoLoSw+d/DE9UIqj1AaFVd+tzR78K4fkjsh9T0FErbA+JQfGYnpmp9 UEfEY0fPpnlQ4B0NN6AtZm7vrj/t44MA+Us7kd8V8qZeOV7TMNwILhvtCEBd2C6xhjw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tTrzVVHc; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75E55606A680; Fri, 4 Dec 2026 10:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tTrzVVHc Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE8601F000C2; Fri, 4 Dec 2026 10:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380659; bh=yDmiIwPQ4mYMLkU6mSOS2LBOcNgQbC5dzy0WGxBlMxE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tTrzVVHcQyxRHq7ctj3R3+tPEIk87bq24ex8oeeN0NmXDzwWCrqHFmxqyD5P4kYM6 8Ibd/G4ejmNunspj7EwBOY2aEvw7fgbXCEdFYol5cOABCpxZO2FzYYB1oS2h4mdLJQ P8GCwVd4dInIYY3vhOYL3m67uSZkrjPfP7JTdyNI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wayne Lin , Abdulla Bubshait , Alex Deucher Subject: [PATCH 7.3 371/742] drm/amd/display: Abort DPMS ON when enabling the link fails Date: Fri, 4 Dec 2026 19:03:55 +0900 Message-ID: <20261204100644.943313240@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Abdulla Bubshait commit 4aa51b904cac06fe2c82623ce24d80853af730f6 upstream. Since commit 843049bac7c0 ("drm/amd/display: Split DPMS ON into parts"), link_set_dpms_on_enable_link() returns DC_DPMS_FAILED_HANDSHAKE when enable_link() fails and the stream enable has to be aborted: any failure other than link training, or a link training failure on DP MST. The link has already been disabled at that point. The step loop in link_set_dpms_on() treats DC_DPMS_FAILED_HANDSHAKE like DC_DPMS_SUCCESS and goes on to link_set_dpms_on_post_enable_link(). Before the split, this path returned right after disable_link(), because MST displays can't proceed without link training. Now, for failed MST handshakes MST slots are still allocated. When the link trains again later, the new payload starts after the leaked slots so ACT never completes, and the display stays black until reboot. Replugging or power-cycling the monitor does not recover it. Seen on Navi 33 (DCN 3.2.1) with a DP 2.1 MST monitor (Odyssey Neo G9) at UHBR10 x4 with DSC. Link training sometimes fails on DPMS wake. With this change, the failed attempt leaves no payload behind, and the next modeset after the sink reconnects bring the monitor back up. Return early on DC_DPMS_FAILED_HANDSHAKE, as for DC_DPMS_SKIPPED_HANDSHAKE. This restores the pre-split behaviour. Link training failures on non-MST signals still return DC_DPMS_SUCCESS and continue as before. Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/6047 Fixes: 843049bac7c0 ("drm/amd/display: Split DPMS ON into parts") Reviewed-by: Wayne Lin Signed-off-by: Abdulla Bubshait Signed-off-by: Wayne Lin Signed-off-by: Alex Deucher (cherry picked from commit ece3dae13fb106684f8248f88387b1fbcfef8206) Cc: stable@vger.kernel.org # 7.3 Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/link/link_dpms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/dc/link/link_dpms.c +++ b/drivers/gpu/drm/amd/display/dc/link/link_dpms.c @@ -2802,11 +2802,11 @@ enum dc_status link_set_dpms_on( switch (step_result) { case DC_DPMS_SUCCESS: - case DC_DPMS_FAILED_HANDSHAKE: // Enum is ordered from "best" to "worst" results result = max(result, step_result); break; + case DC_DPMS_FAILED_HANDSHAKE: case DC_DPMS_SKIPPED_HANDSHAKE: return step_result;