Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2579102rdb; Wed, 21 Feb 2024 12:05:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVdeHU6SMHhKsqhpPYwuL1h+dJRU7qs9nuLn7GYwftYmItCfVPzIY17VOBMVLH0QjVV9X7i0q42aDRxsr33s2gO+41Wpf6gIxr3GLcXSw== X-Google-Smtp-Source: AGHT+IEuJQED8CjuIEnNFT+T0Z/52rmSZuU4+vbGb9UvWFXy5sHsjT75eKIPOhUiAZXozMhGhyvb X-Received: by 2002:a05:6a00:4fd1:b0:6e0:41fa:7a15 with SMTP id le17-20020a056a004fd100b006e041fa7a15mr22426296pfb.22.1708545952411; Wed, 21 Feb 2024 12:05:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708545952; cv=pass; d=google.com; s=arc-20160816; b=YzS8Aoj71Qf0zsdOEiYr0vYJtwS1ZOCRQkbpO31sG37ho+c5vmeVtpAcXGjjjTTdMe uZVV61DTep2ftfZ7Gg85kdatwF6Lql4e4BZvbMk+DpkA7qXXwR29OgRImlUtbMy6m0vz kVCQr+IKe42ks84xUSYQUYvHGucDyEDrfeBJfvNqkqCuo65ewSbdDKokCVYZRbQcuKb1 e0gVhSQrS7bDAoIShkPqiDv7e7q2cqDGE2aNiLHBdm0riRLO1cTKEZPFeTYFBaZc1kyW BIXtbWn0i6CQLtRo3Hocak1wp2MMIRqxZnC6i1FpvjpfCQ/p49CuQqI3i0MB+N7CGx/J aL3A== 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; bh=LmB0iknHxViWwbZcrCm5UpuFgLv/BO2ofbLDsiinjCc=; fh=s5Fc0MEg8Xcp85xwyejK4S4zs7msQB7g1OY0X3YpOJg=; b=Nbx31rRxzsXUB9+5ZKz2XZCbQ44+zYIGTHAVhZHbn+UWfQkDVShNcSQFoRh+1R5F9r Jnghep1cHhwAO2BYmdrdSmAjG4zJpzjmZIbBXhObCA6Ax5FIGYOXVdGTSECbsdznBxNY L0DZWKCMpgltgNkQyBqh4WxzgNZmpmPiq0QIzrK29KOfv2laE6sdW9zBKBjnWfz7RBMW xy8Aw0wc9BH2KpwUdUdwcURQefgch6JOYQicnP0y8mDccKcRVL+bdtyWuasydpw5CpuL LqLYE5XYlE0kRA3umvBP3YuMg/2ylZePqMVOwu2fX4NGxpZU/FKCJcOpRZcHhVlJFStu seoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-75447-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75447-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 jc41-20020a056a006ca900b006e47b2615cfsi3762362pfb.179.2024.02.21.12.05.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 12:05:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75447-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; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-75447-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75447-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 90005281B67 for ; Wed, 21 Feb 2024 20:05:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C53B86151; Wed, 21 Feb 2024 20:04:50 +0000 (UTC) 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 E42EA86AE2; Wed, 21 Feb 2024 20:04:47 +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=1708545889; cv=none; b=hWuq6GAgk42sm8zGeI5W5PmOye8zKF1Ds6OXd9XLoTziJ2r6d+29oDZxbhNSzevLL1LMC5cPBBkrPh9U0iT8FRcbiSiDAH0My6GIlt82c3nrUM2lvrtLbkZNIUFP9oLhhFVEdcpbv3nSvpfon0DvdhSm79t6IDlHHoHxMsENvyU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708545889; c=relaxed/simple; bh=h0QDIXkO328md1JVNs9+5Q4VMBdbDuIpCSY5aVTIxVg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=XntpockbxAMYZCTU5gozpp8if7LU3Yw/qjvFxqnhqDz9OTj7av0h6OJH7W2UvC6gZzLOZJ4bCWzjR8775Vm7F3L5zH9AnbNIVASRoHt17ZGn5orK/dgZCskeXXz1V+cjjQxN7SGGmHCuqrtMU42t9LRYCxCBTDXOt19GWUKxQKA= 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; 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 5.4.0) id 1608f778132f46bd; Wed, 21 Feb 2024 21:04:39 +0100 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 6CBAF66A243; Wed, 21 Feb 2024 21:04:39 +0100 (CET) From: "Rafael J. Wysocki" To: Linux ACPI , Jonathan Cameron Cc: LKML , Mika Westerberg , "Rafael J. Wysocki" , "Russell King (Oracle)" Subject: [PATCH v1 0/4] ACPI: scan: Check enabled _STA bit on Bus/Device Checks Date: Wed, 21 Feb 2024 20:59:45 +0100 Message-ID: <4562925.LvFx2qVVIh@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: gggruggvucftvghtrhhoucdtuddrgedvledrfedvgddufedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepgeffhfdujeelhfdtgeffkeetudfhtefhhfeiteethfekvefgvdfgfeeikeeigfehnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeeipdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepjhhonhgrthhhrghnrdgtrghmvghrohhnsehhuhgrfigvihdrtghomhdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehmihhkrgdrfigvshht vghrsggvrhhgsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtoheprhgrfhgrvghlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigsegrrhhmlhhinhhugidrohhrghdruhhk X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 Hi, This series adds _STA enabled bit checking for processors (in all cases) and for all devices in the Bus Check and Device Check notification handling paths. It does so without any side-effects on non-processor devices, unlike https://lore.kernel.org/linux-acpi/E1rVDmP-0027YJ-EW@rmk-PC.armlinux.org.uk/ The first patch fixes an issue with failing Device Check notifications without a valid reason. The next two patches together make Bus Check and Device Check notification handling take the enabled bit into account. The last patch modifies the processor scan handler to check the enabled bit it its add callback. I would appreciate testing this on a system where the enabled bit really matters. Thanks!