Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp9361lqd; Tue, 23 Apr 2024 12:48:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBIyaEa5uQ/WClY09Q7q1HZNMQe9/E64OD7lK1lI+jxojmQH1YI5A+hxbuy/38OxX8is1rEvmxG6hjUhAPHeqVsnNrc89OTVTc00OJtA== X-Google-Smtp-Source: AGHT+IEkqjox4AKmvgUgBxaO5JyyNXXzn10uLy8j7HzPGDOPhv3ZitncYkXGOQOQPRWIN3u092JY X-Received: by 2002:a05:6870:32d6:b0:233:10:6ea2 with SMTP id r22-20020a05687032d600b0023300106ea2mr354165oac.12.1713901723424; Tue, 23 Apr 2024 12:48:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713901723; cv=pass; d=google.com; s=arc-20160816; b=RXxXO5aSUgKiJy2ZQ0FTFuPZH9oqcX+Jyknp6SdnlwaeEWx7J0/qjNnwRdZg4XARDN 8rbcbJWpT6UvHR20EzSRcVUjsZdnXlb7ycTM/IaHcGkLq0k1OjHH7eNxtGTodrpf6yP6 S/XgyHqMyJM8NYiRIyWQ01Jg2hC9ZiWvceKaVVL/jCZ40oqN+pvaVJq83x/9goZk/NAH qBXb6Ktu/sqOgY+RouPg2l3YP+41oXT79CAsQBk0ipmfWOWsUK/vS3BIuobci7hN2nXy yyJHgkj7pxvNlQB3+Exx6kEyZDRDgqmU/W4HiCTBDKfpF6gfn4p14cm0YK8+c/MIjNAs CWsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=EuYmIOxtRp8Bja8niXAholJvlo4rBc87HWiHZ73WXkk=; fh=336OXD6wus9XM4W7vynMTOfQ0214pWqgDe8tTrmYiak=; b=VhbnsBr4mFJ0g/aFVhrQhliuF0vkrLuxGJjm0y+azQWTEqvHxZ07mkVPw2ewJTMhUa W8g07PpQDGonAQQF61bFhk0QKnc8DdKmT2ItQjsATb+JpAaCaW8loFG27ECLNWtsR8ue 306b5jV06E5H25zxZ7U0UqFgGwumoCv5D8j3sT9oyqOoQZ6x8sOBaSX3jmk1wP7SSKhD ZSBLJJOZ0pPJUAKh9UGtdwxOEOfjS6wx1sUVNz8bj7UcXPt99AG9qLBHeXqizIRaM5Jv 5omvi4OVCoZhcU8byE5ZXyRW5kzZn5QtLKh/sz+kJ9tmjfGMYyloA34lyTUqoXWR2R+m 78zA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GKvUxRob; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z62-20020a633341000000b005e43cb270e3si9890777pgz.610.2024.04.23.12.48.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 12:48:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GKvUxRob; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6E051288741 for ; Tue, 23 Apr 2024 19:48:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E06614264D; Tue, 23 Apr 2024 19:47:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GKvUxRob" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 704431422D6; Tue, 23 Apr 2024 19:47:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713901656; cv=none; b=NVGJLdZPw8oPmRYCSckbVHl9AEhU2kv1RYLhJpfYVvO2wq0s5IzaoZrUiwRLpcwHi83RNyppYkUmNSRZVPfm2wvjLXvaxHorTNh0/yfz6UG3Eg3aNiQuEx1xQEGaRUcVJC17LiCOkO6GE6G0LCP0NsAjdRTrMTgtiZpE5hLajGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713901656; c=relaxed/simple; bh=saI9GzUhqVjVXCi51emHPDBunUoY5yCib9xM+0Ws/Go=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SjxbF0T2KLFV/5qNYbiBNNMZBhsCyqj8/AJCes0BAPyj1ry4vOG5C/JeUuH1imcCCh5tItNCN0nRvLNX7ZldIgcEDsFbZ+ISbAOV5EjpNpkokDiiu1QHt9LdXiL/v0nbzLJzA5O6huF0gNdst/pvusGiRaWI1j/cueViSKIRLmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GKvUxRob; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5BFEC2BD11; Tue, 23 Apr 2024 19:47:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713901655; bh=saI9GzUhqVjVXCi51emHPDBunUoY5yCib9xM+0Ws/Go=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GKvUxRobjib3fyshdePsisUnPPo/WugTUgZ2ln6/CkCUc4zw5GqA3HFXD5UwvCqRL ZlbIkpC+AsC12Wcemn6uXRu2523Z9F9PKO/nQcbYvQl+t7YRFJs8jEBdZH7MwuKUu/ dEz/OEX8JRJcUnl4faTZCUDjMvrWf6iqzKKkmyPzEb87g9lXnjN835ViMPgug2JTRS veFnXEOzaviaTfOoCXbWl1Lu6GrMVzpKAL7e8jR7kpiFMm5McNcgvoGh3L5n5aJUD7 QPGMuG0Dm/ssOfCO1OyuNfkq8RjN8K6+lMLnBa55JtwTGALzHajbH7+SHbZgzuRTgO uKx2uWHcXRrlg== Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3c6febc1506so48134b6e.1; Tue, 23 Apr 2024 12:47:35 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCV7SFMQq/O6ah8WQzsZ0xdrwQUU1xMQNwdGQfFzA9tnh7nWeLBHm/L4TCxVX/Rmbf9psvdSC8RgEHWvrhD1W93PWE9XDU1uHKG1VqTiHyPFgPeySOijslrAqhh8zyzOXdbYEkAPgQt9ccM5bXkslNeFQ+h2r6AdFa8pGL+ifwQuwqO4 X-Gm-Message-State: AOJu0YzR9xzP4zEHk7NjKvp/gd3qnwHFRfFepiYY1A0v+XsIpA3X/D9v IgN/d8xKWzccoR1CdCOWs7Aozxl26K4K+M1iSg9N1DdXNIO3mfG3Nht6iA//75ywG4sLeuyurqv Yw2VnWs6rHkseB3O6DVD3cLeMRps= X-Received: by 2002:a05:6820:2c8c:b0:5a7:db56:915c with SMTP id dx12-20020a0568202c8c00b005a7db56915cmr315843oob.1.1713901655182; Tue, 23 Apr 2024 12:47:35 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <12427214.O9o76ZdvQC@kreacher> <08742373-ca86-47e5-ab6c-e2e3189eb9fe@amd.com> In-Reply-To: <08742373-ca86-47e5-ab6c-e2e3189eb9fe@amd.com> From: "Rafael J. Wysocki" Date: Tue, 23 Apr 2024 21:47:23 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] ACPI: PM: s2idle: Evaluate all Low-Power S0 Idle _DSM functions To: Mario Limonciello Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , Mark Pearson , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 23, 2024 at 9:40=E2=80=AFPM Mario Limonciello wrote: > > On 4/23/2024 14:19, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Commit 073237281a50 ("ACPI: PM: s2idle: Enable Low-Power S0 Idle MSFT > > UUID for non-AMD systems") attempted to avoid evaluating the same Low- > > Power S0 Idle _DSM functions for different UUIDs, but that turns out to > > be a mistake, because some systems in the field are adversely affected > > by it. > > > > Address this by allowing all Low-Power S0 Idle _DSM functions to be > > evaluated, but still print the message regarding duplication of Low- > > Power S0 Idle _DSM function sets for different UUIDs. > > > > Fixes: 073237281a50 ("ACPI: PM: s2idle: Enable Low-Power S0 Idle MSFT U= UID for non-AMD systems") > > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=3D218750 > > Reported-and-tested-by: Mark Pearson > > Signed-off-by: Rafael J. Wysocki > > Ah glad to hear that my idea worked. We've arrived at the same solution independently, I've only looked at the BZ when the patch was ready to send. > FWIW we saw the same type of issue > on some AMD systems when we first introduced the MSFT UUID. > > Suggested-by: Mario Limonciello But sure. > Reviewed-by: Mario Limonciello Thanks! > > --- > > drivers/acpi/x86/s2idle.c | 8 +++----- > > 1 file changed, 3 insertions(+), 5 deletions(-) > > > > Index: linux-pm/drivers/acpi/x86/s2idle.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- linux-pm.orig/drivers/acpi/x86/s2idle.c > > +++ linux-pm/drivers/acpi/x86/s2idle.c > > @@ -492,16 +492,14 @@ static int lps0_device_attach(struct acp > > unsigned int func_mask; > > > > /* > > - * Avoid evaluating the same _DSM function for tw= o > > - * different UUIDs and prioritize the MSFT one. > > + * Log a message if the _DSM function sets for tw= o > > + * different UUIDs overlap. > > */ > > func_mask =3D lps0_dsm_func_mask & lps0_dsm_func_= mask_microsoft; > > - if (func_mask) { > > + if (func_mask) > > acpi_handle_info(adev->handle, > > "Duplicate LPS0 _DSM fun= ctions (mask: 0x%x)\n", > > func_mask); > > - lps0_dsm_func_mask &=3D ~func_mask; > > - } > > } > > } > > > > > > > > >