Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4455071rwb; Sat, 21 Jan 2023 12:18:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXtqHitvB3se5eWtZmR9rknN/SiN8G0djVu3wOWMViEtbYPUfsGJCznjjfdoGr7EsLCrlIPD X-Received: by 2002:a62:148d:0:b0:58b:ca43:9c05 with SMTP id 135-20020a62148d000000b0058bca439c05mr17723628pfu.16.1674332290152; Sat, 21 Jan 2023 12:18:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674332290; cv=none; d=google.com; s=arc-20160816; b=ODtLqkY0BaqGgt5BF3VB/5hy9ZGnd6wunR+EiZz981Z4rswa/HoQjp5tnuqu8DcB3V Bx/cO/qbA2ExAGjyNvBkk6KeT0CZDxhV4e46I16ylrQ7VCCHYS0W+I5GAZR+HYClFgVf 20Eru15mjgB+BqRiofuqm0radxbshLetSpxbaorDYY6ckTgJ0yeuwCvs02wdiJ9WzXqu 8IWQ+Vw2VissE5lev3V+dbubKSFaixfdj41IpZ3SIy8IXA/xyE2kYhRbOFzDl7CKKf4p hW9clUnuo4WzVYpnHg2g/DQxOrQOj182zL4YZ2qHhSGjOHDaKzCQjuG/jZ89rHhs+p4n U6Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vuOj7Pmh+wtlsvEuWLR7B+JQ5ULsnR92v6e8rmeN4V4=; b=j1J3y1nUwqhXwBtXUds+R2uqSSprE7TMqZZAr901hvErws6s0ToGnIh5Zx2rL432A8 cbGv54BqfR3QzMCMBclSljRK0dQMf3K6LJED774CMdBUepcJvopGE6FN51MBfdjQ+m6M GQrRV0fO3tA7wQq6eBIuqfj1gMXLYt4oHmoCvOE0Tg2T+UAh6bv7/QwWe7iaW0m5bJ6O Y+cT5uT7Ug32DTPw1vwOCj3grnFclbzRqWbq4daGgEHNQf8dq67sYBptRUU/pbX7EIcu XYGIGuEXUW4E8tg2Mjoj5NMfTY1CGiKeT8nr6jh8tL4ohx6tgSA7E5r2abJTL6iUl4PK 7G+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vxNV/79K"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020a056a00159600b005752602f950si37025966pfk.208.2023.01.21.12.18.01; Sat, 21 Jan 2023 12:18:10 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b="vxNV/79K"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbjAUTco (ORCPT + 52 others); Sat, 21 Jan 2023 14:32:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjAUTcn (ORCPT ); Sat, 21 Jan 2023 14:32:43 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0089110E5 for ; Sat, 21 Jan 2023 11:32:40 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id b7so7544052wrt.3 for ; Sat, 21 Jan 2023 11:32:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vuOj7Pmh+wtlsvEuWLR7B+JQ5ULsnR92v6e8rmeN4V4=; b=vxNV/79KVG5SXbw645DYl7ZmnzkZ2bNAl8nbl8rg4aAHlUjiekTObitSq7TqJdDhik xqQTQLdRL1mzqQJJGzISuY7pC3pyBMRmUXzqS1gaW9gyqK/It3JomhJlsbhSPaYZglBH krI9ydHERNj96zSL7OXi41OhznkUbfpjCd0trfcQAwtMgIh7wuVZhL9byrN8/6r0BpXj tbQpM69gMG1DefDFn2UeI/a1pqD2lJJd+ur5o4/B0sFlYwlqHOAh01l2GXnA+IwXVhXZ jA/FXcKoEQPDuxKko7egVshqz4TNsaYHLd+WZnxnlGbSVcF+AmbKQ1a4wfuFdurvVkeS TXLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vuOj7Pmh+wtlsvEuWLR7B+JQ5ULsnR92v6e8rmeN4V4=; b=FABX3QWO7TslRq/282BLz0kv9trfdHsu8cRkBQu9D1fTa/Zyx9VO+lThDcRP28JgSb 6Q3ZyeqmfaWctBEHODzuMxl/r055GIUpxkwv2//EN17XXPhVcRrZ9jKHbxCbgD13YfM/ 0ZXM7ShQl4Gi0GqEkXJdxuc1xJxKhrbin3wvsoactkXHHK+e4eJpnkf4fSHBRv/Mmr6J Ix2qnMl2OAB4ouIt//4ytlI6pF7ZAZXsjE7GaLOOrL0TWkNa7QONOjICy7W9aEj7Gc1n YgnRuHLJr58sulb2GsVcgDgOj6ps3N5rZQwisKhCLRht4ssSWvEHm99OuIYBtu+/qO87 MDUg== X-Gm-Message-State: AFqh2krIfBI/ysrLuchQfLxC5/RgoywvZVunJE6GPZQRZ+oEZH8JBXHi GnEWcNLUuVg0/I2u1CpX9GLdYA== X-Received: by 2002:a05:6000:1c04:b0:232:be5d:5ee9 with SMTP id ba4-20020a0560001c0400b00232be5d5ee9mr17823457wrb.64.1674329559335; Sat, 21 Jan 2023 11:32:39 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id d3-20020adfe843000000b00241bd7a7165sm901114wrn.82.2023.01.21.11.32.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Jan 2023 11:32:38 -0800 (PST) Message-ID: Date: Sat, 21 Jan 2023 20:32:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v6 0/3] Thermal ACPI APIs for generic trip points Content-Language: en-US To: rafael@kernel.org Cc: srinivas.pandruvada@linux.intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, rui.zhang@intel.com, christophe.jaillet@wanadoo.fr References: <20230120231530.2368330-1-daniel.lezcano@linaro.org> From: Daniel Lezcano In-Reply-To: <20230120231530.2368330-1-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 On 21/01/2023 00:15, Daniel Lezcano wrote: > Recently sent as a RFC, the thermal ACPI for generic trip points is a set of > functions to fill the generic trip points structure which will become the > standard structure for the thermal framework and its users. > > Different Intel drivers and the ACPI thermal driver are using the ACPI tables to > get the thermal zone information. As those are getting the same information, > providing this set of ACPI function with the generic trip points will > consolidate the code. > > Also, the Intel PCH and the Intel 34xx drivers are converted to use the generic > trip points relying on the ACPI generic trip point parsing functions. > > These changes have been tested on a Thinkpad Lenovo x280 with the PCH and > INT34xx drivers. No regression have been observed, the trip points remain the > same for what is described on this system. I forgot to mention this series apply on git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-pm/thermal Thanks > Changelog: > - V6: > - Changed thermal ACPI function names according the changes done in the first patch > - Put back the GTSH function here as it is specific to int340x > - Propagate the function name change from thermal ACPI > - Changed the functions name and prototype to return the temperature > instead of passing a pointer > - Removed the GTSH function as it does not belong to the ACPI standard > - Changed hysteresis -> hyst, temperature -> temp > - Changed message level info -> debug > - Changed error messages > - Return -ENODATA error only > - Fixed description functions > > - V5: > - Fixed GTSH unit conversion, deciK -> milli C > > - V4: > - Fixed Kconfig option dependency, select THERMAL_ACPI if ACPI is set > only for the PCH driver > > - V3: > - Took into account Rafael's comments > - Used a silence option THERMAL_ACPI in order to stay consistent > with THERMAL_OF. It is up to the API user to select the option. > > - V2: > - Fix the thermal ACPI patch where the thermal_acpi.c was not included in > the series > - Provide a couple of users of this API which could have been tested on a > real system > > Daniel Lezcano (3): > thermal/acpi: Add ACPI trip point routines > thermal/drivers/intel: Use generic trip points for intel_pch > thermal/drivers/intel: Use generic trip points int340x > > drivers/thermal/Kconfig | 4 + > drivers/thermal/Makefile | 1 + > drivers/thermal/intel/Kconfig | 1 + > drivers/thermal/intel/int340x_thermal/Kconfig | 1 + > .../int340x_thermal/int340x_thermal_zone.c | 168 ++++------------ > .../int340x_thermal/int340x_thermal_zone.h | 10 +- > drivers/thermal/intel/intel_pch_thermal.c | 88 ++------- > drivers/thermal/thermal_acpi.c | 185 ++++++++++++++++++ > include/linux/thermal.h | 7 + > 9 files changed, 263 insertions(+), 202 deletions(-) > create mode 100644 drivers/thermal/thermal_acpi.c > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog