Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4701966rwl; Mon, 3 Apr 2023 08:29:14 -0700 (PDT) X-Google-Smtp-Source: AK7set+O2xUjGDqKRUqO9q5qDOlGTYsxxFRfyIkjrbcEl+MSuxazizEzToQG/RStB+eSDG85u4V1 X-Received: by 2002:a05:6a20:4c17:b0:dd:f73d:17b with SMTP id fm23-20020a056a204c1700b000ddf73d017bmr31356307pzb.12.1680535753899; Mon, 03 Apr 2023 08:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680535753; cv=none; d=google.com; s=arc-20160816; b=ei7x8Jc8skgYkh+K5FGqpHIaY+2ykrVklLez4u+gogKtMs4qiwx9aJnBQ/YEewvAyk cIOgJP3zdHU8DEYRMCxTnNKKpaJGiMxjuITx81lhqFRN1kzepXjJ0plIZd4g3M2vJAXe 2bqAZDxs19UagxNxTr8W+oA2Plg2FAjCwBtALjkFIQNoK16jAmw1lbe1W1xzhLC6/YMR PqoqsD02RSK7qo8v4l0pyQfK8FJqcNRIxu67w2iRjwrfFEnX84K5reM8gAzvuEcKH3AZ UXXWx2Q3G+o+e/M25TijkdBByL+ln1m0JEeOgYFHZJaKA/Rl3J7liiglV7zZ0oVuy9kl n2sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WnHDxISHyvOvLnit3NOC6bnRr0EdN+jVapdWjnaO6Jc=; b=xzHWPkWUIRDpEQ23UTQuR8xOUZbRZguBTDMTvbckWnTkknvS61unGNuRIBQXEErrIy PZCGAUUgV8xUNop/qMxt1fIDw/LqX5D8RJ0+gfsuuLQS+HeS3MJoK2H10A4lbKbkMSMZ 0+i6lOav9aAobum4Zyuox0wlcoUA5x2zTBzcJh0hu06k1PRvvmyGAY5n6H155dbLv8zi cyzQcM/jGfPW5g0rzXaIREKX6YGnpz065V6iu9F9yC+dX75J4xzdlurwF2oXIYXgReIJ JmJNwy1Xs1tIRN5NgnABOchHyA8vUrBOEhB3pB3pdeH0A3JWNy5NyuVbdyvDJ4bqS0nk aboA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HgXQmhKF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a656944000000b00513b4eb72a5si8296583pgq.731.2023.04.03.08.29.02; Mon, 03 Apr 2023 08:29:13 -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=@redhat.com header.s=mimecast20190719 header.b=HgXQmhKF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbjDCPPT (ORCPT + 99 others); Mon, 3 Apr 2023 11:15:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230527AbjDCPPS (ORCPT ); Mon, 3 Apr 2023 11:15:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9C252D6B for ; Mon, 3 Apr 2023 08:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680534875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WnHDxISHyvOvLnit3NOC6bnRr0EdN+jVapdWjnaO6Jc=; b=HgXQmhKFlazW48QdVrKUfqsK7F7N+5FHkRwk4tBjJTiSMpxXGrjeo/YEl8kurDlpekthmS KlILFlnKRIKMrbI+HdQ3rXb4C1LWYxbkmhpvC3LB+606qxOkP1+xWRFcFJZjSn0RwS/hON AVT8xVafjErNUVg96m4kotRdarevh6I= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-138-vpEDQzx5OYq_lIYzobbIEw-1; Mon, 03 Apr 2023 11:14:34 -0400 X-MC-Unique: vpEDQzx5OYq_lIYzobbIEw-1 Received: by mail-ed1-f69.google.com with SMTP id a40-20020a509eab000000b005024c025bf4so29462686edf.14 for ; Mon, 03 Apr 2023 08:14:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680534873; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WnHDxISHyvOvLnit3NOC6bnRr0EdN+jVapdWjnaO6Jc=; b=xITJtaEQpD0D5p7g5+ZftaJBqj+Tqa2BBSO+bSg4BWYou1/8HD9gz0m3TQqt/jKTYS olbjML1xD3FRGS1iJTkxgFkwkLRoKU+dtjq9jcd9ra5rGdoGK3C6wbSYmzpf+shT6gmg L0xGMrQTwKbDDW5HkcYw3AU6gjibGT6LbCrk/G6bQ+n6OsDHKj/6MD5bHwNHz1b89AMd NMSD2zRJqJFILqadQydeBxfVcwa9yunsZxKR0y35HWIZao32oKBQj9mI3VZp42MsJ4DA 5yOUhxL36T6E3VggJjwnfRlrAek7hxabST3xU2w5hX6RQ4VkYTFvNoJ0xjRs70ZstJNX TOeg== X-Gm-Message-State: AAQBX9eO5/jxs77sMinmYjTRCSke5EMn1jp4+BZmDrVuYVFi/8JKurPN XLTb2/oIzuLOyoQGolvP7cIF1TVPxyoTw+NFLigdgzrd4qr5bfxXmayq+KPSl1fms+yX1R+U/Nt alTE2VwlcLhmNVrxMABEri6YM X-Received: by 2002:a17:906:5293:b0:92c:6fbf:28 with SMTP id c19-20020a170906529300b0092c6fbf0028mr37791196ejm.64.1680534873651; Mon, 03 Apr 2023 08:14:33 -0700 (PDT) X-Received: by 2002:a17:906:5293:b0:92c:6fbf:28 with SMTP id c19-20020a170906529300b0092c6fbf0028mr37791179ejm.64.1680534873388; Mon, 03 Apr 2023 08:14:33 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id h23-20020a170906261700b008e0bb004976sm4648943ejc.134.2023.04.03.08.14.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Apr 2023 08:14:32 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2023 17:14:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] platform/x86: thinkpad_acpi: Add missing T14s Gen1 type to s2idle quirk list To: Mark Pearson , 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 References: <20230331232447.37204-1-asbachb.kernel@impl.it> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Mark, On 4/3/23 16:41, Mark Pearson wrote: > 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. Ok. Stating the obvious here: Please send a patch adding the necessary extra IDs once you know which ids to add. Regards, Hans