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 AB74631158A; Fri, 21 Nov 2025 13:15:19 +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=1763730919; cv=none; b=KG8DPv26xHpRIzpY791bc6UYPpIf5AB3zjgdToHjrhf5iCMXA2hvml6rk/NLcQCc8Ps7d03UmBtpLS/HKxnaQqnrXsPGD6ip9RKCAtQNsO1zYlas0Ynf+MhZAF62W4FPzJCuI8yEnWj9itwTjXO5TQu9zAWLuQNsngKJZDNzGiU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763730919; c=relaxed/simple; bh=n2UfriHF4xWSd2JVdlPxR2om4MQ+D0GIbhsBEBhK2eQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=R6hgIfRYTxMsj6Qkim2NKej6x58jxk9FBdCaYExiWf60INaB5lURvY2riznlOl7M+E13Y1X56Cz2Ty8eUSJAdpUldcdKHpq6md19PIpaNfLNScftSuIXGF6158z3rnUyArsuQrprSiC8kvppdJzZ1pWFIMNefkm9RmbhLSKlgV8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zK8gsL3f; 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="zK8gsL3f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDB05C4CEF1; Fri, 21 Nov 2025 13:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763730919; bh=n2UfriHF4xWSd2JVdlPxR2om4MQ+D0GIbhsBEBhK2eQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zK8gsL3fhr1fESFl3iNHF9dn4q+xeE+pkHcL2CdS4RbVATFzhGIBwAaa8G0S3VGK8 UomkwORFcv17HHcesfo0RBJ5nwvjntU4duHfTJSTlBrTnzjMbJbgI48hyiwKfCsocm cjAN6LNtghbkqcaF9PJZ8djh9EVqtvcYF+E9C4qk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mario Limonciello , Alex Deucher , Sasha Levin Subject: [PATCH 6.17 010/247] drm/amd: Fix suspend failure with secure display TA Date: Fri, 21 Nov 2025 14:09:17 +0100 Message-ID: <20251121130154.969248668@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251121130154.587656062@linuxfoundation.org> References: <20251121130154.587656062@linuxfoundation.org> User-Agent: quilt/0.69 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.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mario Limonciello [ Upstream commit b09cb2996cdf50cd1ab4020e002c95d742c81313 ] commit c760bcda83571 ("drm/amd: Check whether secure display TA loaded successfully") attempted to fix extra messages, but failed to port the cleanup that was in commit 5c6d52ff4b61e ("drm/amd: Don't try to enable secure display TA multiple times") to prevent multiple tries. Add that to the failure handling path even on a quick failure. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4679 Fixes: c760bcda8357 ("drm/amd: Check whether secure display TA loaded successfully") Signed-off-by: Mario Limonciello Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher (cherry picked from commit 4104c0a454f6a4d1e0d14895d03c0e7bdd0c8240) Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index d9d7fc4c33cba..2c2d264cf8f68 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -2353,8 +2353,11 @@ static int psp_securedisplay_initialize(struct psp_context *psp) if (!ret && !psp->securedisplay_context.context.resp_status) { psp->securedisplay_context.context.initialized = true; mutex_init(&psp->securedisplay_context.mutex); - } else + } else { + /* don't try again */ + psp->securedisplay_context.context.bin_desc.size_bytes = 0; return ret; + } mutex_lock(&psp->securedisplay_context.mutex); -- 2.51.0