Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4263111rwb; Sun, 7 Aug 2022 19:43:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5EnFOCBmhUKQdFBGOEELo20ToQFU+HuUUJFr1/VAV15bV7ddIu4CelGgT9/DahwabPwS43 X-Received: by 2002:a17:907:e89:b0:730:af06:6ed1 with SMTP id ho9-20020a1709070e8900b00730af066ed1mr12307033ejc.276.1659926617830; Sun, 07 Aug 2022 19:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659926617; cv=none; d=google.com; s=arc-20160816; b=MC+bCNXQHU30dkwOZLUOwQ2t0JbTDj9ZIWk1MmFrxruOjMwu2eV0gNGbfk6rqPowru DvkVe93HKajs8wnd7zbyFDErCLp65ACjiLgp7EkJdTCtSnNKj3F/Oxeule+aekpHgXcc SeUOoAHIykbNbOrSOyvxttTpGE4dr4R1xJ6N5oyjaMP8sh3HSxXkYu+8v242vjY7sIbH bKxy3z0eUQMbsgyEAkZeC2cK4vvM2JhI9MLPqOt/fhRD75EA3F45EFJ1fF3nI+mH2eaZ 6CGdLLhhlkMY0qrEmlw3oteCPZR7B5e+Hc/4JwKLzi+F5CoGs9ukslxdmBVGxPwoQIwu ZubA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FgogNp2gkbkuTLgKHAoh/T8F3z0tOjrIcCTdz4U5SIQ=; b=MpCKKYEheLIaunPeCjfLB3+wxH+cBjUJvWoDnD+t7UsdOhzv6VgB8Xk+mHkaA1dZAm py/tQxpbAIEKaR9b4sVfgV0GYFrnW2WylIZpieAMw9zRFgFHPe4BbBtCTYGCWqY4CCLO o8gMXKA/pRAsoOS25nKVI5fygFuj5GuESFF0ifkIKq+k5ezBhUUOIBu6w9hisvruLLBo /YlU/4kFgb3zSnRH8Xur9adO4cZCiIrMxZQZWVnm8QE1pjogWj3SmKaFb1LY+iFtW601 BqURkSY0J/SgPkxXE8echzKbq/v9XRPiDimiUvt8QVbBHX35s1/2vs2VxNda+dNMNMUa nLZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bx4HyATf; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr15-20020a170906d54f00b0072e674c9ecasi9959720ejc.239.2022.08.07.19.43.12; Sun, 07 Aug 2022 19:43:37 -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=@kernel.org header.s=k20201202 header.b=Bx4HyATf; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242415AbiHHBgS (ORCPT + 99 others); Sun, 7 Aug 2022 21:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242326AbiHHBew (ORCPT ); Sun, 7 Aug 2022 21:34:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38EC4BC9E; Sun, 7 Aug 2022 18:33:07 -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 8A34360E03; Mon, 8 Aug 2022 01:33:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C4C8C4347C; Mon, 8 Aug 2022 01:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659922386; bh=z8eH2YCWtzXeziL3IDd+ciLA3px/Rel1/M0UzW/TDLI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bx4HyATfDzSgVRcVlg8Zz4JElwcRKA4mBpfS2BkrZZsPYHsopwEJBuEzt++Q2ubQk 8pp5Gy+G3UtST19RgBZqJp8VvyikAPueuYWyh8DywdyWeQWGJcqhcxZ8Q0DkimkRDx YROqOOn74BtZo2qS2BvxVJ7MNay1Sxe901NsR5dCQ6ms2ykQocAF758avsAg0YwktB SDaICwLxCVGebWogLEjuSF5X5zrmYRxiP9hqzzRpK8VdII53FUlKA80uoGUSUXFvgS kOuJ5B7QhtyM1Z8EodIigzUDvb9qn4QlGBzND736aWjCGhe5FTY5dPqdLXvhl0Adxd 57AAIXl0hNBOQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Manyi Li , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 5.19 39/58] ACPI: PM: save NVS memory for Lenovo G40-45 Date: Sun, 7 Aug 2022 21:30:57 -0400 Message-Id: <20220808013118.313965-39-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220808013118.313965-1-sashal@kernel.org> References: <20220808013118.313965-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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 04ea1569df78..974746e6e59d 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