Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2925660rwb; Mon, 15 Aug 2022 14:10:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR7WqqLnfHlWTjF/jfA3icAleyMq7UotsPbrDOvGtsDWnbvBBXigsstHfscM8iyqaIu5pRcI X-Received: by 2002:a17:90b:4c8c:b0:1f4:f6e8:2de0 with SMTP id my12-20020a17090b4c8c00b001f4f6e82de0mr19589189pjb.36.1660597840401; Mon, 15 Aug 2022 14:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597840; cv=none; d=google.com; s=arc-20160816; b=yzCt43Ovaw3RIiC3UAH2V9+aHTW4itX69tOG4j3aLOai0YZAsCL+EdINoXXYTbJBoa +SlOI3pg8hqd3hPjzPerWBZSA+eqrIizRTGbqZ9VDSKetGptKd5P9MkNz5Ve5CP9LcoL 5VDT4hWVxdMkOgRs+M0uOlX8THPp+FYoLA4+kg0QlWUu1y3SOlb3p9PMTiRWAZKwXUth Vm3qpfLcamvjz0Rpun+b7CYq0JPFZWLtM05rVsSBi5VPZHRA2Du1EHEnugysUZwoex19 aIApYFv+PhCCJKrRxIaGnojMYq+Y5iBT30VwFjU5+oqxVtlzmszig7eKPtoS4CieU6KI +K1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xPueVnN2+hHdY2yjv0I/gsEr74TYzqXyOxZEOppEH1w=; b=Quvz7y3wrkCehLp/2H4JQa4HDS0qX9VjI2lV0I+rqXo9dkKQNstovkWV3cRRJGXk8R fJObf0QYqFrvhbK2jljE6eXNyMwEvwR0dMtE0kMENvSJAzY9OKo/g1YYzXFQ+85zTT+z Gdu4NiKiyz8VTs0706kbMb2c73M6HATx8sLrE5bpbvNKXWkzaRKgqbxuSqS99XQpH07X cAVGgjsL5GU6BGl5QSutZ6tUxnYpULac6Iv6SicK6fkyg/NWdfvE8I6C0PSGIifpr/Dz 3rn+58D4ne390hcnMiyWhYMOHFreQKsxASicyb0Y/4eL8f7tvku/1S4lwFO7k4BWPrzq Pcfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t2z2xdJV; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a056a0021d600b0052f9b43b11csi6012946pfj.116.2022.08.15.14.10.29; Mon, 15 Aug 2022 14:10:40 -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=@linuxfoundation.org header.s=korg header.b=t2z2xdJV; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344823AbiHOUd3 (ORCPT + 99 others); Mon, 15 Aug 2022 16:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347993AbiHOU1C (ORCPT ); Mon, 15 Aug 2022 16:27:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1288B9F766; Mon, 15 Aug 2022 12:04:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88FA5612A0; Mon, 15 Aug 2022 19:03:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7673CC433D7; Mon, 15 Aug 2022 19:03:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590238; bh=zhcN5rVttKQpHt0Mnjwy+TDGMAsgje+gQlW+Ph9klbE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t2z2xdJV7OZbvBPHWYflgQE0eBkchv5hC7X4WqAHLn5qkVA5rqcneZUINl5tRaM1B AVZBNBgldRLzoov9tY84eHe12LYKBn0x1VOZ0YiiMIUZPZRzZE/0212kSorKmW1nks sD7xlpwCtDZqgukm/t80++3jb6gOWLLk1/azfOVw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Manyi Li , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 5.18 0166/1095] ACPI: PM: save NVS memory for Lenovo G40-45 Date: Mon, 15 Aug 2022 19:52:45 +0200 Message-Id: <20220815180436.471713937@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Manyi Li [ Upstream commit 4b7ef7b05afcde44142225c184bf43a0cd9e2178 ] [821d6f0359b0614792ab8e2fb93b503e25a65079] is to make machines produced from 2012 to now not saving NVS region to accelerate S3. But, Lenovo G40-45, a platform released in 2015, still needs NVS memory saving during S3. A quirk is introduced for this platform. Signed-off-by: Manyi Li Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/sleep.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index 3147702710af..1ec3238e2cdc 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c @@ -360,6 +360,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "80E3"), }, }, + { + .callback = init_nvs_save_s3, + .ident = "Lenovo G40-45", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "80E1"), + }, + }, /* * ThinkPad X1 Tablet(2016) cannot do suspend-to-idle using * the Low Power S0 Idle firmware interface (see -- 2.35.1