Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3502148rwa; Tue, 23 Aug 2022 05:57:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4nHl4VpNG3ZTn6DY/Sp8u3WacfGS667PnwBW9YzyzlpwHpCziZeNeOjHvHpJnsFqu50lXn X-Received: by 2002:a17:907:1690:b0:731:56b6:fded with SMTP id hc16-20020a170907169000b0073156b6fdedmr16654288ejc.119.1661259451372; Tue, 23 Aug 2022 05:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661259451; cv=none; d=google.com; s=arc-20160816; b=rVOU31hhlh4EDmkfy8oe+UWeGSPNQViCCDOr5X4BvoffnXv/B+1Y6mpWFWfbVKzGap SThXxsOy5GYq01xzTrBNLifaS46EcsZrTgVl3OkM4XqoGPtI//Yoh/W6lLIo5vtgGgGq FNognnZ4SBeNwCdo0lNDfOW9OTjuX5SpJMmBLP4wGkcIZaNzm5LH2lGbwGcbjg0QlNYn GBxRRBadAIv0K6KjPwLCMU96kJDN8aoutJnrJc4Wtq/JjFF4u2UcZTH7+QKc+iNQOiLY dhOaFlSfpmRNMSB8gSqDeLS+tPuSO7gstyx057ipsu8gCWc//wUT9+qrfPfyi8zfP+uD 6lPQ== 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=HXIBNXkhb1S7KW1CUuIy7qMaPEuvNUu4q73De+fj2xE=; b=BhitxUH44TtoYpug3+CSIS+RDQA163QSUG3FXTQEdhLHrI2LF+ScDfQY5yrCIrzwh0 35vGCVwA1LVJ4U062oeo6utioNn6jpmFL2TO43Y0F2ySbvVZYPHBnY3fi0DjRKTXatwz d/OPsRWFWN+VQbCCrHS3EFrbtnU2smIcWyCHLIQGEOmkgX2rEgs+xdO7SyWxrIX+588f Bna+w0YDT6LTt6W9VDZQRt8P+GP6kU6jD9niF+txcdGfuzekVAr2lrWrdzBoSoA4PYLr tKExR2VO/ag/r/Ix+HTo6KuK9cnBciiRsV1mHbwkhtz1oKZ0+UhxFTekPX7iqTYk/Oti VD7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EuMH0j59; 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 t23-20020a056402241700b00445f3dd3861si1831657eda.313.2022.08.23.05.57.05; Tue, 23 Aug 2022 05:57:31 -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=EuMH0j59; 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 S1348488AbiHWLTk (ORCPT + 99 others); Tue, 23 Aug 2022 07:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357816AbiHWLQn (ORCPT ); Tue, 23 Aug 2022 07:16:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FCCFBD1FE; Tue, 23 Aug 2022 02:20:19 -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 1442761281; Tue, 23 Aug 2022 09:19:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18C59C433D6; Tue, 23 Aug 2022 09:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661246397; bh=Ye9QrPC+cA+Mfgpb7t5m+ycVZGaN0oJIi8Pw6ohK8Gw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EuMH0j59gKnJu8Ks9P6jFPiLO26JyVxc1jhB/NLJOePJjzuQBBVyYA8poxirPGcPD 5zRsvS7sGbvCOT6ttIqBak6RKjLNyXY3J449B7fs/lSoZeTG/0cErIEbnfF+z/1AXV tX1/xl6scKQOVTT4K0WoSEOZysLmpP6nxCEXfmSk= 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.4 066/389] ACPI: PM: save NVS memory for Lenovo G40-45 Date: Tue, 23 Aug 2022 10:22:24 +0200 Message-Id: <20220823080118.371868219@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080115.331990024@linuxfoundation.org> References: <20220823080115.331990024@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 34966128293b..b9d203569ac1 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