Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3173253lqt; Tue, 23 Apr 2024 12:20:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbqDkyNVbTJWThQjTeq2h2lmTm9RBKJkdn5d61WkVLRn6fN5VjULBhs4AjxgRIAyGddybgtmA5aUxhKU9WT7k9zGja9n49dHxDHdG1HA== X-Google-Smtp-Source: AGHT+IGJip0xoinTtV+g5cNKBKYhttYoaXEpS2gg8G/MO6dDOrwWv9zjQnpCQ0xOY7lqwwnoTHhq X-Received: by 2002:a17:903:2cf:b0:1e9:a01f:e445 with SMTP id s15-20020a17090302cf00b001e9a01fe445mr468666plk.62.1713900019367; Tue, 23 Apr 2024 12:20:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713900019; cv=pass; d=google.com; s=arc-20160816; b=oyXtnlNSJhg0c0bFK33R4U+CTUkYqiVOeH46mYjPlkQted1AeUD04U7pjYdlg7/lNf Aa7UewT7QCRE5mtr/Eg7vp0ilmGTFrm74/tFI+AzORTVRUnD24RSCixKBV3HGQ6EGeON Yi5KRN65yu93d/o+ei/QqkmbmimvHoNNH0CaoIMeefbkELcooCpiYEvKtjIX7VrNSfUa PPbucI5tmt8af1eV65nMJ+r1XAqXT90VGzSpb55ICoeXH6U9+odjtlXvPa8GuvVMyifD vF3RN8UwwWloB1JYhX586M3gKYEdY9XlyNlOvQjE6VqGBy/jY6zfSQNc7R4Bh81Fmwea y3sA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=7sGgw3TJic6vxouZXtL7caCbQAPa/agsV0csBDGJpJo=; fh=e2Yfebx3qzqZDfYFGrv0GeaIPILGRFsCnhsdQYENHqA=; b=nnF4m55HdlkTZBI7A3kagTJPMqsVgn9g1B2aCUSIN8I8CxQrPdS6POyJOw2u08NRl9 XzZg0BJEPK3DC5vbZIuS9dvJUH2EVCpu42MahkPaAQC374RDCVrBSaeyfjhheM0CaS+T d3GRlMPvYxSAO1TJYSURgUOxOC6uSf5sfBPh90Jy/hqHgqen/TWtH61y8ZDT+TETwl57 QfqjHq1K64XyG/RIcR4CvZA3d3pGVZ17oCDmHNkIh5DK0k5LgbrWsVR0vUfo+vyrAVrz lMj8QWGZnHYXpRQgIv/4b/OYxUs3m0NafDX7u2KHrHD1bdMB9OYPVXYh0KQ4XgRrXyzf PlQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@rjwysocki.net header.s=dkim header.b=B1M1F0Oq; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-155791-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155791-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q6-20020a170902b10600b001e5c6404356si9832186plr.139.2024.04.23.12.20.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 12:20:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155791-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@rjwysocki.net header.s=dkim header.b=B1M1F0Oq; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-155791-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155791-linux.lists.archive=gmail.com@vger.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 546EB28C0E2 for ; Tue, 23 Apr 2024 19:19:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ADDD140E4D; Tue, 23 Apr 2024 19:19:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=rjwysocki.net header.i=@rjwysocki.net header.b="B1M1F0Oq" Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) (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 70F9713E031; Tue, 23 Apr 2024 19:19:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.96.170.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713899981; cv=none; b=YpUb4aTNIbsghc7Ge9CLwbeiTB98w66q3APzhAtr4RZmaFRp59zIzcTWjWf16mShAVi6Ljqn7Ikkean+3A5g669kksiTte7QfUcv6i1jcptkBdh9wy/+CkyNRms+DkDTs7fZ3TNSXzGeHVzi3eS0rdbdglQL0BDMpBJrCPVZznU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713899981; c=relaxed/simple; bh=yC2sOTTLKyjJya0KuXGRtrG/1u1CmNweM0g0qgRcqSQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=g/SUQSFQpFgqpnwd4VaQSUqoOFd13kokdc+o2uyiCO5CCXIZl7Mc2PuzMk4mUXwvW0UY5d7JyIOiSANuOxbuFrn8R3QBGFWGAB/7+NAdIggIyBlOkfvOjZdu7/woth3RNyuWv8KhhJEfCwl+9NsF7pnBkO0YnMs/sJjADqcAToE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net; spf=pass smtp.mailfrom=rjwysocki.net; dkim=fail (2048-bit key) header.d=rjwysocki.net header.i=@rjwysocki.net header.b=B1M1F0Oq reason="signature verification failed"; arc=none smtp.client-ip=79.96.170.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjwysocki.net Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 6.0.0) id a5cb8043b5e3b96b; Tue, 23 Apr 2024 21:19:37 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id 8495166DB89; Tue, 23 Apr 2024 21:19:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rjwysocki.net; s=dkim; t=1713899977; bh=yC2sOTTLKyjJya0KuXGRtrG/1u1CmNweM0g0qgRcqSQ=; h=From:To:Cc:Subject:Date; b=B1M1F0OqPpQQiiQgT2mmEhAYfslKdNrdpPnHQu0LPunY7P+pXVPPbsB4RR1cH2F/e AGsfYjEzhikU19woCDE/6YcHZiE4sm33ojOzwSSP1I/tudbSz6GhvnGKKGiyzNurXZ beyTCmrz+gefST5kEEk7foU78SC0wcyso3AvwRXN+hk4iDb8BKCoHwWU9E3hI172av 5RGqiBS+jWEhv33h471J5zz5sQ83J68a5+Q/s9GFJVFLQoYlOfKKbS1AxgboZngB0o YUsGznCPpAuvAdmj9MvPkulw2O6StLov95qAI8mEPJXRt845A8NEqnZjb6GXBa4R+e Q4rEx3lromdRA== From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM , Mark Pearson , "Rafael J. Wysocki" , Mario Limonciello Subject: [PATCH v1] ACPI: PM: s2idle: Evaluate all Low-Power S0 Idle _DSM functions Date: Tue, 23 Apr 2024 21:19:36 +0200 Message-ID: <12427214.O9o76ZdvQC@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrudeluddgudefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpeegfffhudejlefhtdegffekteduhfethffhieettefhkeevgfdvgfefieekiefgheenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepiedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehmphgvrghrshhonheslhgv nhhovhhordgtohhmpdhrtghpthhtoheprhgrfhgrvghlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehmrghrihhordhlihhmohhntghivghllhhosegrmhgurdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 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 UUID for non-AMD systems") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218750 Reported-and-tested-by: Mark Pearson Signed-off-by: Rafael J. Wysocki --- drivers/acpi/x86/s2idle.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) Index: linux-pm/drivers/acpi/x86/s2idle.c =================================================================== --- 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 two - * different UUIDs and prioritize the MSFT one. + * Log a message if the _DSM function sets for two + * different UUIDs overlap. */ func_mask = lps0_dsm_func_mask & lps0_dsm_func_mask_microsoft; - if (func_mask) { + if (func_mask) acpi_handle_info(adev->handle, "Duplicate LPS0 _DSM functions (mask: 0x%x)\n", func_mask); - lps0_dsm_func_mask &= ~func_mask; - } } }