Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3518332pxj; Mon, 24 May 2021 08:30:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx50r261IeUPp2SQrMlj5AJUL4F0rqLSFCeHfwcPH3fjcK0jTLJXGHsQdNbk2Fimu7qiRrt X-Received: by 2002:a05:6638:118c:: with SMTP id f12mr10140721jas.143.1621870227238; Mon, 24 May 2021 08:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621870227; cv=none; d=google.com; s=arc-20160816; b=b5YiRWa0xgnxgWWdYzcc1yH/53bs2unvBr1KDJS0QJVvPGdnrx4KDGa6no1WJz+u1Y vS7eF+oX8RJy11yPESKAjI/VNp6VvNdrKcmcUa6c4xvrhWUjhS/SmmfLtPgrUXev4Zr3 Sgh9STfKHXP6Qpz1r/QaG8V/PWyyAdnYtpJyfpuF8c+DOYSc9tbI9vVXw7+QRtKiUD3A GliK2/CfAyaZjulGAUA+AKNsLmvL1XkvvQJSMbT6xGxVVwyBhKYM/35TBRRY7/B7J4k5 lb5g/3JAMOtJTn62nEQ5gUZYD7pVeOtFUnGaUMaVwLvPrXn8pPAPgpu1eS40s0itoWCz l/VA== 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 :message-id:date:subject:cc:to:from; bh=pEY6P7NvFaVD4juzqNKAU/eR+bW8btNeBQS/BMI9qsM=; b=TF/1+d6mvVdv94t/HEzMFZLZ6XsTi4WiF2CmAum2hbzLPify4aXTOmnGilCmBf4bfo TqMZZvhu5hgY/IW6n9wjfimQdrY0UtTOIvItPmTz4C+vO/7PV1LXvJnHR1HevwnPg5je 9xS7kwjg6SwqC7eafvKP8Af7ZrW/UV6hcOaQg/XMQcEwQ9jBaJr6Vuh7y4L/DKA+5SLJ p/W7btKgHQreOAe2EU4GfEl2WiA+yemw+XRydj3av+w5JGDXEcCIMFc6bFHBku960Bcr TOSAQwM4+9TrERxw+PjS2hYY9YNa4zB2JPB46CjFFCK29kQorxE5WM4n5LkwcTeMxWcJ NpPA== ARC-Authentication-Results: i=1; mx.google.com; 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 k25si15321813jap.38.2021.05.24.08.30.13; Mon, 24 May 2021 08:30:27 -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; 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 S232662AbhEXPaY (ORCPT + 99 others); Mon, 24 May 2021 11:30:24 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:59546 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233468AbhEXP3J (ORCPT ); Mon, 24 May 2021 11:29:09 -0400 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 2.0.5) id 71b85afe052eaf1c; Mon, 24 May 2021 17:27:40 +0200 Received: from kreacher.localnet (89-64-80-49.dynamic.chello.pl [89.64.80.49]) (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 v370.home.net.pl (Postfix) with ESMTPSA id 3203C66971F; Mon, 24 May 2021 17:27:39 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: Linux PM , LKML , Zhang Rui , David Box , "Rafael J. Wysocki" Subject: [PATCH v1 0/3] ACPI: power: Keep track of power resource states Date: Mon, 24 May 2021 17:23:17 +0200 Message-ID: <2074778.irdbgypaU6@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 89.64.80.49 X-CLIENT-HOSTNAME: 89-64-80-49.dynamic.chello.pl X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrvdejledgledtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvvefgteeuteehkeduuedvudetleevffdtffdtjeejueekffetieekgfeigfehudenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeekledrieegrdektddrgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepkeelrdeigedrkedtrdegledphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepuggr vhhiugdrvgdrsghogieslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehrrghfrggvlheskhgvrhhnvghlrdhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, This series changes the handling of ACPI power resources so as to track the state of each power resource in the kernel in addition to using reference counting instead of relying on the values returned by the _STA objects of power resources. The underlying issue is that on some systems the _STA always returns the same value for certain power resources even after changing their state with _ON or _OFF, so it is not reliable in general. Patch [1/3] changes the data type used for representing the state of an ACPI power resources to u8 (cosmetics). Patch [2/3] introduces the power resource state tracking (refer to the changelog for details). Patch [3/3] simplifies turning off the unused power resources with the help of the state tracking mechanism (refer to the changelog for details). The series is not top of the patch at https://patchwork.kernel.org/project/linux-acpi/patch/11762320.O9o76ZdvQC@kreacher/ which is going to be pushed as a fix for 5.13-rc. Thanks!