From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-bc08.mail.infomaniak.ch (smtp-bc08.mail.infomaniak.ch [45.157.188.8]) (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 A32A1274B3B for ; Sat, 9 May 2026 01:31:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.157.188.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778290279; cv=none; b=N6pwwlQYu+htkL56wPqlKQzvPz/auOETkxrUEqwnh+okzxROpdYGx22wqN0t1fR4rJBBuwqcI0Un3M8QMl+bgiZGAyBuuOkn+v90ySFACHZTMNK5hUinVH1zucOH0QBtBK7itdklKC+ZCZoDnJAY1L4V/SOApBD8/Zxf/EsCd80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778290279; c=relaxed/simple; bh=dZBzxIAy7lF2ul65Go/tb0xNb8XJB86LNAGd9kZFD8E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W55ZNNxsATUAjLhwDYCrOlJ2AId4oEe5p3Jzp0naeC4CF5JcWnr9Tqdn7dZI3VCo/HUJG+4uhXtxtiZpay9s4D7nTj64H5HwGCW8NikwmPhl1q9Y+jYgOz3JqbWK8HRSX8V2sHcpDluMX6+scNIyM30ijtKg3qIxiISPVxWNZmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.sh; spf=pass smtp.mailfrom=gibson.sh; dkim=pass (2048-bit key) header.d=gibson.sh header.i=@gibson.sh header.b=BVudDNo5; arc=none smtp.client-ip=45.157.188.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.sh Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gibson.sh Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gibson.sh header.i=@gibson.sh header.b="BVudDNo5" Received: from smtp-3-0001.mail.infomaniak.ch (unknown [IPv6:2001:1600:4:17::246c]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4gC7jn3qcjzMqq for ; Sat, 9 May 2026 03:31:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.sh; s=20260228; t=1778290269; bh=ihbvjxvr97zedo1FQaExWZwtDYT441IOd4ui/OieJps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BVudDNo5AIeCeGukudy6rJqwT33l+Ql4fP6X3sY+q/3F9jL3vFNNGvU+ElrRiUplF 8lWeKv11qCbzwNF2zbpfcwDNouIKS1/fa1UFry5M2nHoGO8ErKdXux7ri7y+n9LbND nqWnkz6gHJiHyfpnAHks98tECCgygsJBFhJJk2IHBNP23rrPKsa2iwzGIx9ADpyt1G J/sptzdle3YQWDj9aPZQ/eNfYmyWMjVqKqbz8jzMoEhCx+vZX10c/oMDnFzZF9aIta NBT6kpCl0pfhF3e/0baRQjbxSoTkFud+5PeHdG8mqmYUn5mp/3/mPYTDmfin+FVPk2 72q4mZwged5iw== Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4gC7jn0D0JzWRy for ; Sat, 9 May 2026 03:31:08 +0200 (CEST) Received: from unknown by spiderdemon.horst.lan (DragonFly Mail Agent v0.13); Sat, 09 May 2026 03:31:08 +0200 From: Daniel Gibson To: Shyam Sundar S K , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Gibson Subject: [PATCH v2 5/5] Documentation/arch/x86/amd-debugging: Add section about delay_suspend Date: Sat, 9 May 2026 03:31:04 +0200 Message-ID: <20260509013105.816339-6-daniel@gibson.sh> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260509013105.816339-1-daniel@gibson.sh> References: <20260509013105.816339-1-daniel@gibson.sh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha must be updated with the actual commit IDs when they are merged Signed-off-by: Daniel Gibson --- Documentation/arch/x86/amd-debugging.rst | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/arch/x86/amd-debugging.rst b/Documentation/arch/x86/amd-debugging.rst index 3176a1240fee..3af7799cca1a 100644 --- a/Documentation/arch/x86/amd-debugging.rst +++ b/Documentation/arch/x86/amd-debugging.rst @@ -249,6 +249,31 @@ state entry. `commit 40b8c14936bd2 ("drm/amd/display: Disable unneeded hpd interrupts during dm_init") `_ +Keyboard and Lid Switch stop working after resume +------------------------------------------------- +On various variants of the Lenovo IdeaPad Slim 3 with Barcelo and Rembrandt CPUs +the lid switch and keyboard, or at least the Fn/Multimedia keys, stopped working +after resume, until the next reboot. + +This was caused by buggy firmware having timing problems, the EC needed some idle +time right before the CPU cores are suspended, or it got into an inconsistent state. + +For laptops that are known to be affected this workaround is enabled +automatically, to test this workaround on other machines you can set the +``delay_suspend`` parameter of the ``amd_pmc`` module. + +If you need to set the ``delay_suspend`` parameter to fix your machine, please +report this at platform-driver-x86@vger.kernel.org for it to be added to the +list of devices that need this workaround, so in future kernel versions it's +enabled automatically. + +Note that the current workaround isn't perfect: The problems can still happen +if resume is triggered by a timer (wakealarm). + +`commit TODO ("platform/x86/amd/pmc: Delay suspend for some Lenovo Laptops") `_ + +`commit TODO ("platform/x86/amd/pmc: Add delay_suspend module parameter") `_ + Runtime power consumption issues ================================ -- 2.48.1