From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC4A02EBDDE for ; Fri, 17 Jul 2026 06:11:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268699; cv=none; b=blFaCooQ311Sfn2t+JojJ/Amqbl+nHcnSLgfKIgCMx4E94hYQUcWGJf86fSQV+O5thE/qcQN8RcD4/zfKQ4Kw3oz29i0VDo6fOsxakiXPL0ONxdp0VBeB9gZ7LTY7FVVSmsIH1QfrBYmeSIVKDa1r72PDrSY7h/yqAKm/aRxH4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268699; c=relaxed/simple; bh=U/WwZ/oUhnyOWZnmaH4VAFaQclk/+DD5TbgLex4r06M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J0p+frzP/mjANyRRW1wXDsf8/PL7BCNj3+i8u6/66EBRvrnHjNGY72ETQbhDi6NdYDEuZc+9OLHayqW49n+i/mWzLItHP48nFBjldTk607LcKwblrMzS6xSHQGNpQgbPDkAKgcIsJ5j6wLty6FyEIuWps27iADexnZbfyum/we8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=qFYJMNf9; arc=none smtp.client-ip=209.85.215.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qFYJMNf9" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-ca957338f14so1047598a12.1 for ; Thu, 16 Jul 2026 23:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784268698; x=1784873498; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=ozUb6IR9U02hBaC9DF1hIgNkHUdtWxbpjqkpQJBpLfo=; b=qFYJMNf9PeLZpieZUOmyTDNjn9rbO1JDo3clJ9uuopBF9QJens9vqG5x7YWqdjmGRn /eDaWt9EeD+6ITdOkTXHcKyCZMhV8430NUJdS73+wbcqzjYyj9ho3l2VAGEtkwawNaqZ KcTMH+I5tX2aKGBBCA6W/kr028t6kU2XOQsu80wppC/t/WfOLnPs4LEfMFNpfc2FyiVH tUS6O5Jgyz29Z5KGUF/BfqA/tP+CEfZU15nKUSsHgAa7yPUtPMpnawPuRGxMbWltQ3fx 9JMGbiJb3+htGzsPyboCIdTQUtiCUv6pfM7XpADrjGJFuPYSXUTElezLkaQpEtFgxwT+ azvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784268698; x=1784873498; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ozUb6IR9U02hBaC9DF1hIgNkHUdtWxbpjqkpQJBpLfo=; b=ACmnJ0s2gTe/eVYg0D6/9el4w8qnLYaerWs0VQ4Zz8hgBc7d96hUMQxkMyKAArOjLe idLR+irOtAEshJ8ZVjMFc8nGuXl5GHiVOlfLB7jp4EC7kPMg+j8s4SrKKlfXt1qz/yUL NQRBg3GHFR6nggH3+A6/CjW83IL8JUV/fkSl6qrlvPUl8p4FaFTAPTJ4zelOinhlcesQ M2L7qxcWqqMxKgNb6worNHCoJiaOBKIcCEXHz1WcIX65c/wHGW4nUvTa+1bBaT++B8pW ign3niLoAeFeH425eqAlO6INgkfXjg7Oc0Zq8AixrfaXi+dXRJtUU3I7E1cyb4PJBY5u LvFA== X-Forwarded-Encrypted: i=1; AHgh+RowX8PUBj0ss210igqRReLpDAnekpG61bHRfH0gMmAcpExQ1RwWqU7x47Hh/ZKibVAv125qk5XiMgGApXk=@vger.kernel.org X-Gm-Message-State: AOJu0Yy2ldSYnJIGyZqS3kNx4m2wsGiC+kRliSHpqafg6rVb0muWCKej lzqspKlKoC9cWWiAvYkBDNOhzxoZNjppYLzCWfWstYHYc7v8tlp14z38 X-Gm-Gg: AfdE7cmkR4W7hjvB9ZGTvSa48FhkDwFTD6AM0kGtpIBHtMG55cj6yQEb9dwW4ROC0+F ohdBbG77O0Qfp043ODaGw7WNkrYIoCGzsAtZGZF/goQ8DzDA0y55vSph/DGU+zMlum+XyO4VpWq GScYq4SvoDNoOfIrRTcHWhARMwXQg7aSWjzqQ+hmBXJ5S118IPvGeFqwtyXQS87mgiexJVvSw6I nscDC2nUwBkFU9oEE24d+XGj6H+rcLyf+4/7u5gqraP9J9SQ89ejfKdPZP5gX2KRHBWkevgTOYs qjEXSRy0rWjQfSnl0ctqqJG3T2jaoH8d2X/0iinxerjwuffOa+HpL0cPMotalwbq2coCMeiwdjy fHv1PpQnP18IVfm0oogzUMTqagmWLkoRhvH7wA4OewBtLOaDH8QEjBaBGi2gYvvp3dFH0hNxQ3D rB5my5+3IVrMxuv1I= X-Received: by 2002:a17:902:ced1:b0:2ce:aea4:5e80 with SMTP id d9443c01a7336-2cf34a02b31mr10896805ad.6.1784268697577; Thu, 16 Jul 2026 23:11:37 -0700 (PDT) Received: from debian.sphynx-fence.ts.net ([219.92.60.65]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13ce2cd764fsm1785294c88.12.2026.07.16.23.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 23:11:36 -0700 (PDT) From: Yap Weei Choong To: platform-driver-x86@vger.kernel.org Cc: hansg@kernel.org, ilpo.jarvinen@linux.intel.com, Shyam-sundar.S-k@amd.com, mario.limonciello@amd.com, linux-kernel@vger.kernel.org, Yap Weei Choong Subject: [PATCH] platform/x86/amd/pmc: Add T14 Gen2 AMD (20XL) to s2idle quirk list Date: Fri, 17 Jul 2026 14:07:45 +0800 Message-ID: <20260717060744.1252065-2-ywc8891@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The ThinkPad T14 Gen 2 AMD was sold under two machine types, 20XK and 20XL, but only 20XK has been in the s2idle quirk list since the quirk was introduced in commit 455cd867b85b ("platform/x86: thinkpad_acpi: Add a s2idle resume quirk for a number of laptops"). On 20XL machines the firmware SMI handler therefore still runs on the NVMe D3->D0 transition when exiting suspend-to-idle. With IOMMU translation enabled (the default), this intermittently stalls resume for ~10.25 seconds: seven devices across three root ports (nvme, both xhci_hcd functions, xhci-pci-renesas, snd_hda_intel x2, snd_rn_pci_acp3x) block in pci_pm_resume_noirq and are released simultaneously, consistent with all cores being held in SMM. Add the missing 20XL machine type, mirroring the existing 20XK entry. This is the same class of omission fixed by commit 9a469c6dfab3 ("platform/x86: thinkpad_acpi: Add missing T14s Gen1 type to s2idle quirk list"). Verified on a ThinkPad T14 Gen 2a (type 20XLS41C00, BIOS R1MET62W 1.32, kernel 6.12.95): with this entry the quirk message appears at probe and a 14-hour suspend resumes in ~1s with no noirq stalls, where previously even short suspends could hit the ~10s delay. A further two-day soak (short naps and two ~14-hour suspends) showed every resume clean. Link: https://bugzilla.kernel.org/show_bug.cgi?id=221755 Signed-off-by: Yap Weei Choong Tested-by: Yap Weei Choong --- drivers/platform/x86/amd/pmc/pmc-quirks.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/platform/x86/amd/pmc/pmc-quirks.c b/drivers/platform/x86/amd/pmc/pmc-quirks.c index 74ddf1d82..09a30f333 100644 --- a/drivers/platform/x86/amd/pmc/pmc-quirks.c +++ b/drivers/platform/x86/amd/pmc/pmc-quirks.c @@ -71,6 +71,14 @@ static const struct dmi_system_id fwbug_list[] = { DMI_MATCH(DMI_PRODUCT_NAME, "20XK"), } }, + { + .ident = "T14 Gen2 AMD", + .driver_data = &quirk_s2idle_spurious_8042, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "20XL"), + } + }, { .ident = "T14 Gen1 AMD", .driver_data = &quirk_s2idle_spurious_8042, -- 2.47.3