Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4638624rwl; Mon, 3 Apr 2023 07:43:00 -0700 (PDT) X-Google-Smtp-Source: AK7set8XgtcwnWAMNPTM+5i2lIO5MnDN9H7eLTFA0AeJAN5uLRcJahozb9cRiozrvhw5tG1l8u4w X-Received: by 2002:a05:6a20:bc97:b0:d6:c9e2:1795 with SMTP id fx23-20020a056a20bc9700b000d6c9e21795mr32153667pzb.27.1680532980255; Mon, 03 Apr 2023 07:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680532980; cv=none; d=google.com; s=arc-20160816; b=kOVnx+jmSw6eZcm86OIePSaEENybTjdyumj+Me04hXDfohCupFd7F+xkKnjeUQAXdi DPOEcwGT1JfUlRifiNY8obwHPiRlw9YKp4MjnsEofjRJfCN4ODRcVu7YMtA5dSyD6Jtv 5kp7F4shvJLJg+IQKkSeQUCxpa2zMrgf5yUnT30iqLBWJ8HRxK1NabZV1ykCpT6FVTVf nbgvqqv08sq/WofKQAz+bz8xdAQi9G3rdMNCsMHnh895SyclJ1VOUzEcLT3JpgWtD125 98u5LRbp5541plcCj9B5q0yoAIbqZemT05v+YYdMAVVrN8RJiWHmpu0RRTpDB8XXz1lM QwmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=rjBzK4bqda2K1WGZTsXB0Lni4GKPBs2HscuZF79VyyI=; b=y2m2XmAekH1lGdsuoGTUejDRxoo24NJ7kBj6xjGyZfi+t5vCZc5ZuYTE/cNk4t/4dy vYrXSdfCMZEsCoPo7QcUde8EDHjJ3TLTCcpmMzy15XgEl6E2nwhkGqXAnqAoGswViUuB wjBCzcyWEze+4z2TzeESRB5w8VtendbGvbru3rJ1TPsdJaurggU2vAt/D9MQHgsl9QWZ l6Z1nvGBNenLZABMdNyRK4x/EEQDSuo8Q0K4syVQ5SMOZgv5cBCd5entVPmoul/pj34c EoBzDVDYjhZY7wOXdZyyE6YRS5OTY5Apg9RnhejUtjCGGk7bGDB4UgELajumV6vANM7u MnZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b=SmemwuPc; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YsQ9zZE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 197-20020a6304ce000000b0050bf0f1b79csi8594888pge.699.2023.04.03.07.42.47; Mon, 03 Apr 2023 07:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b=SmemwuPc; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=YsQ9zZE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233871AbjDCOmX (ORCPT + 99 others); Mon, 3 Apr 2023 10:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233848AbjDCOmL (ORCPT ); Mon, 3 Apr 2023 10:42:11 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3105BD4F83; Mon, 3 Apr 2023 07:42:06 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8795A5C01AF; Mon, 3 Apr 2023 10:42:03 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute5.internal (MEProxy); Mon, 03 Apr 2023 10:42:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1680532923; x=1680619323; bh=rj BzK4bqda2K1WGZTsXB0Lni4GKPBs2HscuZF79VyyI=; b=SmemwuPcoklrrvEXqS BrabVIA3zZVR7SGYHn52RyRDE6Y2njto17W7k4VqF/KOogBgUjnfxvoc1iX+XV3B s0YvQ3TXJIDrdytqSNtt6+MMd6qBWgPK8y6xnOG+wy56Oflr33UUxWzxJFmVdNbW SAZvxf0mwV541DPSfgFCqeC7jNcURJWwM0oDsSohpdyzVYFQrMeRogFRmtei0Cr4 t0+mBYC/BbLS6sroTyLcKh2b6ISMXT3NtuGQDAxviDzGSm7m95KnMXFi4vsiPIjQ pxwOKK+2hNtNSsfJiAoU6iqCvQ8xBxwVOn253ftk8bTYlj4H/JsxR2htIz4sL1HP gVAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680532923; x=1680619323; bh=rjBzK4bqda2K1 WGZTsXB0Lni4GKPBs2HscuZF79VyyI=; b=YsQ9zZE08Su9giUVRnPRZZ5sFsB05 Z7FwuuMzSzthS8Fe32MUgOAzsveP9jmqvjuv+IJvJz/gsHoeqQsE/aQU8CWvlAaK jQ0fzvQaTRPThZ3rlz1m4EgVZ2VXiMtJxLrRTzv+xIixFvf+nQuqbj/ZUGV+oPQk /PRvPNme20VW1SsO4Ar0YrLuLxWpLJPHvOaA3nVYuaQRu9HZCihMDCgsjFf8aUYu AIYYpfqzNF3jJ3blYzyQMQJbeZW8XpAHn0KouBsZK2+WLVAN7gmbZrFUUHlFMwvC i9AVixzhDdYCFTcVB8Rr29NNVI9UWGZwjJif63fsx6h2P8ct8Zk26CznQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeijedgjeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfofgr rhhkucfrvggrrhhsohhnfdcuoehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssg drtggrqeenucggtffrrghtthgvrhhnpeeivedtkeeftdefhfdugfelgeehieeivdefffek jeetuddvueeijefgjeekudevtdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhpvggrrhhs ohhnqdhlvghnohhvohesshhquhgvsggsrdgtrg X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id DA9F1C6009B; Mon, 3 Apr 2023 10:42:02 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-238-g746678b8b6-fm-20230329.001-g746678b8 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230331232447.37204-1-asbachb.kernel@impl.it> Date: Mon, 03 Apr 2023 10:41:42 -0400 From: "Mark Pearson" To: "Hans de Goede" , "Benjamin Asbach" Cc: "Limonciello, Mario" , "Mark Pearson" , "Henrique de Moraes Holschuh" , "markgross@kernel.org" , ibm-acpi-devel@lists.sourceforge.net, "platform-driver-x86@vger.kernel.org" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] platform/x86: thinkpad_acpi: Add missing T14s Gen1 type to s2idle quirk list Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans On Mon, Apr 3, 2023, at 6:03 AM, Hans de Goede wrote: > Hi, > > On 4/1/23 01:24, Benjamin Asbach wrote: >>> Lenovo laptops that contain NVME SSDs across a variety of generations have >>> trouble resuming from suspend to idle when the IOMMU translation layer is >>> active for the NVME storage device. >>> >>> This generally manifests as a large resume delay or page faults. These >>> delays and page faults occur as a result of a Lenovo BIOS specific SMI >>> that runs during the D3->D0 transition on NVME devices. >> >> Link: https://lore.kernel.org/all/20220503183420.348-1-mario.limonciello@amd.com/ >> >> As Lenovo distributes T14s Gen1 laptops with different product names >> a missing one is added by this patch. >> >> Note: Based on lenovo support page there might be some more variants which >> are not represented in s2idle quirk list. > > Can you provide some more in info on this? Then Mark can maybe check > if we need to add more models ? > > Mark, generally speaking it may help to do a DMI_EXACT_MATCH on > DMI_PRODUCT_VERSION with ThinkPads ? That contains the human > readable model string instead of things like "20UJ", and I guess > that we want to e.g. apply the s2idle quirk to all "T14s Gen1 AMD" > ThinkPads. Sadly that won't work :( - The same ID is used for multiple platform names and those can change by geography (for instance China often calls things differently) or if WWAN supported, etc. - They use the same platform name for Intel and AMD in a few cases (not all). And this match should only be done for the AMD platforms. For every platform there are two IDs. In this case the T14s G1 has 20UH and 20UJ. I need to figure out when each is used - I thought only the first one was in released platforms but it seems that's not the case from this patch. I need to understand how/why. For models impacted - there are a couple missing from the list that I would expect to see there as they're the same generation: X13 G1 and L15 G2 (and a possible ? against L14/L15 G1). I'm also a bit cautious as the E-series might need to show up here - but I don't know those platforms as well.. And depending on the two IDs...some of the platforms may need doubling up. Urgh. Mark