Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3015162rwb; Mon, 15 Aug 2022 16:11:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR7UU6T+TzngQESHqCoAMMMOK2omtMX+9zO/a1haVicppeSMgdN6OVQcXNcZD96PhyXTypJ0 X-Received: by 2002:a17:906:8a63:b0:730:9e5c:b456 with SMTP id hy3-20020a1709068a6300b007309e5cb456mr11416343ejc.571.1660605077345; Mon, 15 Aug 2022 16:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605077; cv=none; d=google.com; s=arc-20160816; b=taXk09jKPmZE5lECUfLI1DrJc7LDMEvjTvXeXSjCiebAulxqemG4pZb5MbMW7WfFuX QpDLFIj7EeoPbpQXU7Wff0gOC6q+P3JSqf1Vt2mD3Hk9wiR2g63/fgiBHM2vU96wlpaf a8hqEjQ2FALHZa2fMFJrNvaFMPWZrybrryNmNrIwfoEARB1zy+kG+WxAnmHlD3fL6M0v VxHQfLs1H8eYq0R8eodxr1BGHjdyqOwR/5CwAGqbi7Doyveax+3inh2AzjhEAJRZj2W4 m38Mtle869Ds0VNrrErOFDY94UaLNvjkAPGM5YoNOYUPwYVqQUXZXj526J03bU6Dke7h HJLQ== 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=FgogNp2gkbkuTLgKHAoh/T8F3z0tOjrIcCTdz4U5SIQ=; b=olKp3wwHr0IL4JibiGSzZsQHX5GAdJzGy4BzsWyb19G4t87WiijrfGn1gq4Sb5iHwc LC8HP+9KXZnsRn8JYb26Rd97avJBeBYZHp3HztOkpesX3lRaJ8+2fPn3mi1S3QyOk6rg sQheGngIQDmz4mbHCLT+VSzitTVVrmtfqbHUXxjVLR0bC+Cue9bNDl25c+jDkMviC2WN 2M5DbOIN/u54ulw6Jfx1Xlzje7FRO1BHjSqeGp6o5fL7XeNJUezC/SMcxdb7zslt1Kak qNY/0GQeUhI1i0q3pUq8QXdeyCAoYl/JFc6PfL12FhorvDrSZb3t+dNbcUkNrL3Bi+z7 wAsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mxI+vEYh; 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 cy6-20020a0564021c8600b0043d4f544304si8022104edb.342.2022.08.15.16.10.52; Mon, 15 Aug 2022 16:11:17 -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=mxI+vEYh; 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 S1351003AbiHOWh3 (ORCPT + 99 others); Mon, 15 Aug 2022 18:37:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349564AbiHOWbC (ORCPT ); Mon, 15 Aug 2022 18:31:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F92A12AD3F; Mon, 15 Aug 2022 12:48:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id 492B3B81144; Mon, 15 Aug 2022 19:48:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95AFBC433C1; Mon, 15 Aug 2022 19:48:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592896; bh=z8eH2YCWtzXeziL3IDd+ciLA3px/Rel1/M0UzW/TDLI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxI+vEYheuICxmQcUEX3uY6VZb1iCvD2Vzob+eug9w5HFKLqu0lYk0ryNtvWM1uLY 6suyWtGBbzi1c3KqZ8LtdgWXJ1HpRrX6GcAXSgX0m+ChGjkV3/uZvkJjaus/nu7OCV fybE3DxzA9lV3xa/6sN6OiB4ff3n5UadSDPBxeGs= 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.19 0179/1157] ACPI: PM: save NVS memory for Lenovo G40-45 Date: Mon, 15 Aug 2022 19:52:15 +0200 Message-Id: <20220815180446.905402711@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 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