Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1812460pxb; Fri, 1 Oct 2021 21:21:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyepi+BYkpGQNv9qUPNU9Os+ZFCktfqcjBpoq47aA/YZx0fNyLJM3pRidyNpvYKnmtaQXi3 X-Received: by 2002:a62:1786:0:b0:445:1a9c:952a with SMTP id 128-20020a621786000000b004451a9c952amr13674584pfx.39.1633148483682; Fri, 01 Oct 2021 21:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633148483; cv=none; d=google.com; s=arc-20160816; b=AfAAY4hOaZ6JqFXDuQ6gXNLQmYXSrtxGt6ULCrPDijt5tHTwmqtlCnfgjnGA7qT2wT RLtGUYyvxeib5ypiAZCnieCMJwsoDuFzSG2vO8ynEV1odVQuwdJuNOOntSLDkkv24XmN /EAGCcBjPWveTNSF8/wMVp8vhSb9GzobzwsyZVp/LhKacKlhYaoSFfqJH86Aqvjnv13C 7rwrnI0BQFoxRXfupg6dsqppDBnhCXdBXnGZHHIVsVxPsYSoiVs0huGiG1JjX95qPLil ebl1DcYDwSlZ5nHtU5TxHdlwRV7OMCs4Z0wRttQiXiBsaUUKnDSZktYTT3AQTiICRHxU 7IyQ== 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:dkim-signature; bh=XliFWXIjL29k8nU0RjgNu6OyBCt8KghjoRwqfcsYNzM=; b=EhCEZazG00lXc8vkpDxz9wDy5TmT72yors3R/AfV+UQf9urOxEN02BfuDrogMg12V4 LnMgXrVWh1RayGejMHWlnQCQzRYoF1l0NeDHmvl3D722CvUQlnDZ4XRS4KAOWvCQdKm1 gufuQPmnKqcP7zdxL6VI6Rke6w8Ss58MClv2raVA/e5mDs6USKLkFNHum5kmwMoN24WH eRw04vi/azdWg9XAAG3clyNo8mx9NqQ+s97Xek2hSgFJlWyll6miTyMYMWaX+LcRqm25 fXhYsdFkaQ/I32ItQvBM3CFaiwyTFTX/Oh7k3ngWrh+ddSLfAeLnOaWVjFPv7eRb3RP8 JxlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nakato.io header.s=fm2 header.b=buUJjmOB; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=uLzp6brD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nl10si17752040pjb.29.2021.10.01.21.21.06; Fri, 01 Oct 2021 21:21:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nakato.io header.s=fm2 header.b=buUJjmOB; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=uLzp6brD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbhJBEU6 (ORCPT + 99 others); Sat, 2 Oct 2021 00:20:58 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:54897 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbhJBEU5 (ORCPT ); Sat, 2 Oct 2021 00:20:57 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id E3135580F81; Sat, 2 Oct 2021 00:19:11 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 02 Oct 2021 00:19:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nakato.io; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=XliFWXIjL29k8 nU0RjgNu6OyBCt8KghjoRwqfcsYNzM=; b=buUJjmOBa1OZVow7BwEnPKxU3u6Q0 yBlx2aCL5/sVxqhErLM0ij/EVVpdLjelPFepZ2gGwzB6Pl3qf13NPUJbLYZ3RfrD mohG+uPJn9G28qUSOzi7j8mS3Mmw+na5OGr/0sbkIai/FyfthfOm1tBPvS9AG5vd SX5xONoTogOjBhtc3/dM4tA8zUIqnSLFP/LRRSn0O3voF3W+izeF/wMJ7LhqCtl8 yVHmLK5oBZ2y6NQBTt3Gj6RSre3V23sVx8Zdrg6IlVLzmYerpFu3G0FksUbSFYZO EjmYtVLzr9addiqvP8+4gdfS9ab3rLhPCX5B3r9H/OwBF4mJtdV13ZsjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=XliFWXIjL29k8nU0RjgNu6OyBCt8KghjoRwqfcsYNzM=; b=uLzp6brD aQLKvEXiN90RDd8kVc49eJH4E3iAMnQrOpDnHFsKqp60kUoy0aAKr/dLJN27reMO E6jUrYrWcHbNxJRooXsLbesW8LoVxM5L12GwmgDskghGGl6bzonU751aD0pQIpU5 ncIDfv5NW5ZS1wYvCvAlsbFZQ87S/q2QcAvu0Vgm9UkgYAmTPsIG4hLsOd+c4ZRR 84ii7wAPkYibaKQExqtfBMxMYSrcdRGS0bwVQiMIJ6nXX2HenHmCtrnd+3xNTICf MfxLszSs8MkibthVCq+rM1SgVLI6dpFUGEbSjISjKGwzNlDmAOVy1SEXpdpV4g3f dhHrXM6XLcwgxA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekjedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepufgrtghhihcumfhinhhguceonhgrkhgrthhosehnrghkrght ohdrihhoqeenucggtffrrghtthgvrhhnpedufeethfetgeektdeuvdetiefhteffuddule dukeektdfhtdefudeiheejgffhhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehnrghkrghtohesnhgrkhgrthhordhioh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 2 Oct 2021 00:19:07 -0400 (EDT) From: Sachi King To: Shyam-sundar.S-k@amd.com, hdegoede@redhat.com, mgross@linux.intel.com, mario.limonciello@amd.com, rafael@kernel.org, lenb@kernel.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Sachi King , stable@vger.kernel.org Subject: [PATCH 2/2] ACPI: PM: Include alternate AMDI0005 id in special behaviour Date: Sat, 2 Oct 2021 14:18:40 +1000 Message-Id: <20211002041840.2058647-2-nakato@nakato.io> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211002041840.2058647-1-nakato@nakato.io> References: <20211002041840.2058647-1-nakato@nakato.io> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Surface Laptop 4 AMD has used the AMD0005 to identify this controller instead of using the appropriate ACPI ID AMDI0005. The AMD0005 needs the same special casing as AMDI0005. Cc: # 5.14+ Signed-off-by: Sachi King --- drivers/acpi/x86/s2idle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c index bd92b549fd5a..1c48358b43ba 100644 --- a/drivers/acpi/x86/s2idle.c +++ b/drivers/acpi/x86/s2idle.c @@ -371,7 +371,7 @@ static int lps0_device_attach(struct acpi_device *adev, return 0; if (acpi_s2idle_vendor_amd()) { - /* AMD0004, AMDI0005: + /* AMD0004, AMD0005, AMDI0005: * - Should use rev_id 0x0 * - function mask > 0x3: Should use AMD method, but has off by one bug * - function mask = 0x3: Should use Microsoft method @@ -390,6 +390,7 @@ static int lps0_device_attach(struct acpi_device *adev, ACPI_LPS0_DSM_UUID_MICROSOFT, 0, &lps0_dsm_guid_microsoft); if (lps0_dsm_func_mask > 0x3 && (!strcmp(hid, "AMD0004") || + !strcmp(hid, "AMD0005") || !strcmp(hid, "AMDI0005"))) { lps0_dsm_func_mask = (lps0_dsm_func_mask << 1) | 0x1; acpi_handle_debug(adev->handle, "_DSM UUID %s: Adjusted function mask: 0x%x\n", -- 2.33.0