Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2812760rwb; Mon, 15 Aug 2022 11:51:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR68x/Tt+/81RcBtVRQ1ckQ2Objl+QxuzxAv0DBVfhbFCrf3pRi7Hl5QAVU5iEvmTJdhZ7EJ X-Received: by 2002:a05:6402:3594:b0:440:5036:ec6b with SMTP id y20-20020a056402359400b004405036ec6bmr15933590edc.117.1660589482269; Mon, 15 Aug 2022 11:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589482; cv=none; d=google.com; s=arc-20160816; b=PnJ08lZwzjU4pUAVK8r1dC9IAe9Dv+qVY1/CLREuzMOCGvYoRzio8rQI/smCjC8YIL RKjsWeQL+feYia0FOSPTCP8e0rRfQkv7y5JHECwIANBJiNg3+kqNl7JxgQlxdZSAaJ+6 SNjXF2YJkOiqNxghwZ6kCA9ML03TwoAbCyeF62GO9QBRSDM3P8poR5HoCuJ3WRtcS/1e g4PnmFixLWyIaGpqq6/DKliWjPpoV1rpS97hw2PNC7W4gwvLLOWHhcaq2Uz8U0bJH88R AIfGkokryzyAk9tvdnKBPw4MUhnubHAmM950KSAjFdYO5nwvaJS9isDYTYvmj1Mhezk+ AI5Q== 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=JQghUahRRss/YHrji/HWffLn8mQ4iLU23MRJkpfxOis=; b=qy8mEYf/eEenv2GUr+AbYpAyu7QUxVWzPzP2nPsDNnkyZBisA2li7P+RG6T3DHvczu biISpiUEBh/ucQ60VKmmmCHBdqEcALpuy8Q/HPqXrxNbxgVJI3aj8ijdiyeJpzsNQAfV 9yAdHOn9zDB1/Bjp6GhtSmCYBcvkPa2HcGiZCOowZm1MK52C13Ur5HWCR+vJG0EE8FE4 q+YQ5L8ac+nucIa/RpoteGhVBTCeYRORNCtoR5Quet/cQCdKrA3r2qwBLJqc3/p/ZAJb eJcHuHiTTNL0Nio0OIh+jCuNRofXH7aHSED+K0W6TJGawXbxj2UIfAW2CJjdDjk2dxX0 Jm4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t2FIJkFj; 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 m4-20020a056402430400b0043aa8412576si9252271edc.227.2022.08.15.11.50.55; Mon, 15 Aug 2022 11:51:22 -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=t2FIJkFj; 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 S243620AbiHOSbb (ORCPT + 99 others); Mon, 15 Aug 2022 14:31:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242447AbiHOSa3 (ORCPT ); Mon, 15 Aug 2022 14:30:29 -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 E65DD32076; Mon, 15 Aug 2022 11:20:41 -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 B522460EBB; Mon, 15 Aug 2022 18:20:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 924E6C433D6; Mon, 15 Aug 2022 18:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587608; bh=K5ZHDwywZf6sEzoMUCgypmRbTxPVUltpevV5pX0h7J4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t2FIJkFjsddiKY5U+cBMrhoWp4zXic/841t7MHu0jfOG8s3+rrp189tz/5uO66i3C nmT6xuBEn+VPt5aknYGu/whZWpRtK+TP+OD/MbLJ1KZo4Sega/1bYtoYurbNYKigbn H7M4tQn3uNJANUjyDVq9bMhjaJedqLZFZA88Wkk0= 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.15 138/779] ACPI: PM: save NVS memory for Lenovo G40-45 Date: Mon, 15 Aug 2022 19:56:22 +0200 Message-Id: <20220815180343.201002882@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 07515139141e..d7194047d256 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c @@ -361,6 +361,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