Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10965116rwp; Fri, 21 Jul 2023 07:23:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFfYOLsxsAy1cv8iX+koZUeroX6A4BcddFPuAw2riCU5iGPaYLAYo2b7BRme3P5A2QFvXQZ X-Received: by 2002:a17:902:cec6:b0:1b8:3936:7b64 with SMTP id d6-20020a170902cec600b001b839367b64mr3535981plg.1.1689949431864; Fri, 21 Jul 2023 07:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689949431; cv=none; d=google.com; s=arc-20160816; b=BYaE738U0Jvu2rkoMmQSqgs9iRSVhmyxsKS7KvT6J9N2R2Q4qbYK9FZ7selhia788Q aN242b3w6466Sfgvq/phT1ewXZnok0VHV6Lztuxc/QS2qfEeLjJePYg0Ig3l3jCkGD8m sVOAdgfNtOstE4ziEw6NzoQ0hy1MZqJmORGXAc6akzO40x37MmfNv01isaIC3tCoFfXm m+BzyVZJFE9DNWvmSn/GPkDqIyVyEWlBh6dHB6ePxh2Cfn+Fj58LGfCQn9Rb0QP3BWXC p/bXlE/3uf3UruzDuIph40gvYSxMQW9D30hIF4EL1R5G38+8kCkhpxbXaCi5nYwPssTU 2u+w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vw7wiCTluq772u0k8AI1jrMM7BnYEX8tJGQfn+vxdxc=; fh=WAm0nkxw3rD71A4QzwJS1JiPPKRsyn91IiWMPsOrzoY=; b=oHXu0yxHgwUsGSuSabLQ7Nv1+hc39F98bOtKaC4lweCrQQmxMCMGEDm4Oyl/f6mrK1 uRXaiF6f6nhuOatKDXOW1QbQVhJD/V+BV7+P8/BDh4AVEOfeDdZBCWYVyfD2HPafomL8 GpYeT9t0ncheSNwWo1iqL4IXM/v8uAKZ/pp+1AvlSk3ahCJA3FXKmaa8qCIGHQEoOwTY c3sLjJa2SDyS3N49GntRRC55WOiWYKXDzPnOEAWd/7aXkoON0QHirEf9mlWpDDhEObNy 4r2OFfujyTHW+DI1qYucW/HO3O6rzpyWcRPQzxR2DdxuBjX7ONXEwtEz/QYWP8f/77aW kEuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a17090332c300b001b8805f98e5si3339251plr.591.2023.07.21.07.23.34; Fri, 21 Jul 2023 07:23:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231705AbjGUOHd (ORCPT + 99 others); Fri, 21 Jul 2023 10:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjGUOH1 (ORCPT ); Fri, 21 Jul 2023 10:07:27 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56FEB2D46; Fri, 21 Jul 2023 07:07:25 -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 88502d5a1f03cecf; Fri, 21 Jul 2023 16:07:23 +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 DB2876618EA; Fri, 21 Jul 2023 16:07:22 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada , Daniel Lezcano Subject: [PATCH v2 0/8] ACPI: thermal: Use trip point table to register thermal zones Date: Fri, 21 Jul 2023 14:44:54 +0200 Message-ID: <5710197.DvuYhMxLoT@kreacher> In-Reply-To: <13318886.uLZWGnKmhe@kreacher> References: <13318886.uLZWGnKmhe@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: gggruggvucftvghtrhhoucdtuddrgedviedrhedvgdeikecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvffeuiedtgfdvtddugeeujedtffetteegfeekffdvfedttddtuefhgeefvdejhfenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeejpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepmhhitghhrghlrdifihhltgiihihnshhkihesihhnthgvlhdrtghomhdprhgt phhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=7 Fuz1=7 Fuz2=7 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Everyone, This is the second iteration of the $subject patch series and its original description below is still applicable On Tuesday, July 18, 2023 8:01:20 PM CEST Rafael J. Wysocki wrote: > > This patch series makes the ACPI thermal driver register thermal zones > with the help of thermal_zone_device_register_with_trips(), so it > doesn't need to use the thermal zone callbacks related to trip points > any more (and they are dropped in the last patch). > > The approach presented here is quite radically different from the > previous attempts, as it doesn't really rearrange the driver's > internal data structures, but adds the trip table support on top of > them. For this purpose, it uses an additional field in struct thermal_trip > introduced in the first patch. In the meantime I have updated the patches and tested them on a system with a couple of ACPI thermal zones. No differences in functionality after applying the patches have been observed. The update is mostly related to adding extra locking around trip point temperature updates and some hardening of the .get_trend() callback routine against invalid trip point indices. Please see patch changelogs for details. Thanks!