[v1,00/13] thermal: ACPI: More ACPI thermal improvements and modification of thermal instances
Message ID | 1957441.PYKUYFuaPT@kreacher |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5064423vqi; Thu, 21 Sep 2023 11:49:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQZC+xY+SDnJzGmQhbsHPLvcParbhMniavy7Ii4zpDAvq6sD25a6IW+TP+rlvA8Qk7vudi X-Received: by 2002:a9d:61d4:0:b0:6c4:a349:4b10 with SMTP id h20-20020a9d61d4000000b006c4a3494b10mr1817027otk.28.1695322145839; Thu, 21 Sep 2023 11:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695322145; cv=none; d=google.com; s=arc-20160816; b=rlsh/833ALut3wF5lLOCdYlj+TY2qOJkV/op15SkPEdm/J6z9vRKynhVrjiVQz1PMT s0bw4QB67eXvle1DoC3QV0cLKomFneVH8WjLyD62cXI3zF9nv8ZjxYhDVNrei4MinQYt em7l9wLo19cJkBvENJXkV/ZczRM61QzPMU3mdc9HKh1rjSf+bBMQPmnODeeXOy+fQ0IS gjawJLqHfMm3qJPFoPO5kuBGx0gu7qMHVA/RSQ24W2+wsSPheovy70+3f94Qkmekh90w p5css45mkkMYnlp/YKiplg2T6d6vSMZQ+Gut9i3BY5f1xKhvupXAonGeW/KvU1kbvm85 5jZA== 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=T95gbW1pbUwis166wjlinUXvCVz88GZ1u0GGGZngFl4=; fh=M3Xj0cy8L+JeZSSd0Q6EHM9/xVzlLsbYrLkDMv02gfM=; b=OX7eWYPl1ZxaiiMUBF0Wyih+5iXtkhlbi4VtnM+NQK8pEBXCv3m26RcMyGvHIx2tRo 3ScmtxCU5t8FakrWbGEmdoiwM7UJedYQc40cOCIiBn7+YQbwy2ujPQiI+3lULq7Sca3g rpL/YhGsqlW8RKW9/yvEQRG9XkcvOTgL/E76qei01JpFLznO1FM77WKtDBPwoh4+W73i IVw2tM8YketFlzOwcZofL1YBhXd80JVWRVJd9d7YZU4arvdpkD3GfETT8ppNBkFgvynr EaSc2d0NLkP4xhXLk/KQp0lE2ws/t0PMjUiSosGHFTgVbTN0BqbEwYOT2KpYoLfl0Dbb D+zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 1-20020a630101000000b005652a295669si1912306pgb.490.2023.09.21.11.49.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 11:49:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0B330838064E; Thu, 21 Sep 2023 11:39:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbjIUSj3 (ORCPT <rfc822;ruipengqi7@gmail.com> + 28 others); Thu, 21 Sep 2023 14:39:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjIUSjT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 21 Sep 2023 14:39:19 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2336CAF96A; Thu, 21 Sep 2023 11:07:34 -0700 (PDT) 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.2.0) id 66c059efcc43437d; Thu, 21 Sep 2023 20:07:33 +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 v370.home.net.pl (Postfix) with ESMTPSA id 0A8DA664EBE; Thu, 21 Sep 2023 20:07:33 +0200 (CEST) From: "Rafael J. Wysocki" <rjw@rjwysocki.net> To: Linux PM <linux-pm@vger.kernel.org> Cc: LKML <linux-kernel@vger.kernel.org>, Linux ACPI <linux-acpi@vger.kernel.org>, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>, Zhang Rui <rui.zhang@intel.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, Lukasz Luba <lukasz.luba@arm.com>, "Rafael J. Wysocki" <rafael@kernel.org> Subject: [PATCH v1 00/13] thermal: ACPI: More ACPI thermal improvements and modification of thermal instances Date: Thu, 21 Sep 2023 19:46:55 +0200 Message-ID: <1957441.PYKUYFuaPT@kreacher> 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: gggruggvucftvghtrhhoucdtuddrgedviedrudekiedguddvtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpeegfffhudejlefhtdegffekteduhfethffhieettefhkeevgfdvgfefieekiefgheenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepkedprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehsrhhinhhivhgrshdrphgr nhgurhhuvhgruggrsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtoheprhhuihdriihhrghnghesihhnthgvlhdrtghomhdprhgtphhtthhopegurghnihgvlhdrlhgviigtrghnoheslhhinhgrrhhordhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=8 Fuz1=8 Fuz2=8 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:39:58 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777674114765881187 X-GMAIL-MSGID: 1777674114765881187 |
Series |
thermal: ACPI: More ACPI thermal improvements and modification of thermal instances
|
|
Message
Rafael J. Wysocki
Sept. 21, 2023, 5:46 p.m. UTC
Hi All, The ACPI thermal driver has undergone some significant changes recently, but there is still room for improvements in it. First off, it turns out that a small rearrangement of its internal data structures allows code duplication in it to be reduced quite a bit (patches [01-04/13]. Next, by changing the way it binds cooling devices to thermal zones (and trips within them), the use of trip point indices can be eliminated from it (patch [11/13]) which then allows its internal data structures to be simplified even further (patch [12/13]). However, in order to make those latter changes, it is useful to modify struct thermal_instance to carry a trip pointer instead a trip index (patch [05/13]) which then allows the core to be adjusted to facilitate using trip pointers for cooling device binding and unbinding (patch [10/13]). Meanwhile, the modification of struct thermal_instance mentioned above also helps to reduce the thermal governors overhead related to using __thermal_zone_get_trip() that carries out bounds checking and copies trip point data which both are not necessary in the governor code. Some related cleanups of thermal governors can be done as well (patches [06-09/13]. Finally, it is prudent to visually distinguish the names of structure fields and variables that carry temperature values in different units, so patch [13/13] changes the names of those items in the ACPI thermal driver that are used to store temperature values in deci-Kelvin. This series is on top of the series of ACPI thermal driver posted last week: https://patchwork.kernel.org/project/linux-acpi/list/?series=783543 and a couple of recent thermal core patches: https://patchwork.kernel.org/project/linux-pm/patch/12296181.O9o76ZdvQC@kreacher/ https://patchwork.kernel.org/project/linux-pm/patch/5981326.lOV4Wx5bFT@kreacher/ It will be exposed in a separate git branch for easier access. Please see the individual patch changelogs for details. Thanks!