Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9357874rwl; Wed, 11 Jan 2023 04:53:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXuy1mHySs9Upo1RquHqMPDB5N0CeZ5othSuNj2t04LL3N4ftowclYWt3aOV+vXRyXSZC8o0 X-Received: by 2002:a17:90b:4d84:b0:225:f9f9:746a with SMTP id oj4-20020a17090b4d8400b00225f9f9746amr54301764pjb.37.1673441637674; Wed, 11 Jan 2023 04:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673441637; cv=none; d=google.com; s=arc-20160816; b=S70LZic4I0XmQZGAVM/TCKOQY77HJulskGDiNm8bfVXCPliZpOEAhvXCi2mq1T34o3 v4qGM9BPL8euhkFD4N0mhJwHlKjS8wCoF1+7D/fVny/ONgsx4w7uPT1aO5UZ8gUyDqWo vo1sIEOoT59wEAwAKJwFO7xpJGFeB+wyi/XgCmYsJP3lp77orwobVTyd8PfVrBwmFENy whjDnTOZzXgV9DWOV5HgoBnINAtXAPBA3IpA91aOWwDbnQBmSJNXJAHivV7yXVqKcLtN 2tgMPqRJ+wvLkcgph6d0grqLp+wD4nYY+pVvO9Xjf+aCcarCGHw0jPUTx3CJKnIzgKUt pU8Q== 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=dXEkUlcaRJU+IZrJi8CuXIJgOt2qGuXk03UCGnHzGW8=; b=RMgP4WK+wA0NB/jJoOHzFROR0Dh513IjKLTny/78r0oie5TnX2tKj56mQfD3JKVMyb seArymctfmLlDnpfPueLzTA4NxKz0O7H8OHxpeUV/idffzqnkycA2MEnnOrcVNvhVQ+Y iFCrG2BUkMqOBPcgQ2bPvolnMaPgZ9aFlX48q/qiWAjFqf6PIhYVp1wk3zH/fVBAdsSG OXMtvQBifUMoP+WRQZmvvdGHiGmJqQQHQqfkToQrO4q7lee/HZ1I2juxTSrnjviTvK1t yZcN4eabuLx9VHLTZ9Kz5e+m0kWeX5CowgiKh/YHk3WN191icV5ZRFexr+YAGvvuNfNe 1AyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yN6iKXVK; 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 x19-20020a63db53000000b00461f71a53e1si13909362pgi.505.2023.01.11.04.53.51; Wed, 11 Jan 2023 04:53:57 -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=yN6iKXVK; 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 S229509AbjAKMWj (ORCPT + 53 others); Wed, 11 Jan 2023 07:22:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238818AbjAKL6L (ORCPT ); Wed, 11 Jan 2023 06:58:11 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39760D10F for ; Wed, 11 Jan 2023 03:52:39 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id g10so10914820wmo.1 for ; Wed, 11 Jan 2023 03:52:39 -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=dXEkUlcaRJU+IZrJi8CuXIJgOt2qGuXk03UCGnHzGW8=; b=yN6iKXVK/HZx6HeigqN595bqeJFf4kNM93BVsX1Ko1VOfFPizK5vyIFhlEGjTgRKpn EhERQVYtQkj3hw/WU1TK0papqOuxEDWyVlojbyQmOPDeWv80BWWZwklWliAPKBP3CLuU 7kMl7muYT4BjlyvbQECmrif9aT9/6PezYGYUSuX0LGsjrOjCM3JCaUsozXxajlFoNdhf +2ZsLId48z8Q4iHOin+PSLNGgIPYHX1ZA3UsWrIYUtdCmUEAm9Ej7AFy9O1K3B+0iaFQ inrbW2z6x/BnVkUhgm+pB7F1uAqoSHYgW8b91SnzxsuNEIF+dLTHCTMiSVIs8z+EdOh7 8RAQ== 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=dXEkUlcaRJU+IZrJi8CuXIJgOt2qGuXk03UCGnHzGW8=; b=VKfvYQACc7uMgZUBaARtRKJBlEAa5rgknDzBj+Pg9A48Pf9OSA/6pUNlbF3QgQUn5q IOOJ7CNOsB1WNvfQbCPUBzvgXq2jXjQ0xDbqTj6Rf+fLDENXKKf6nQUqxfhGBr67e1uT sPUWN8g7GC2hGDaza9b/EQ47duAM3ekaw5UPpSUgIraCsn91973Jyv1J41OyZABtYpD6 h+EQRYzNhrZn+rlZscnVUN4HHY6l+MGcKL/k0jg7ESGPDeQJZKx8ndmppuZpNClk69OA RJnWQCeZjCzGv/v9egRaHl2WjcXzSsI3bG6wgNV3RCfnBxPgCtmA9LI/dgs8pHtx5qcJ ae9w== X-Gm-Message-State: AFqh2kqyr23Nstnn+SaZCaHcibJdCJFZFTmWRLnvp7Z3ohs8dvC99hGN KvObBtim/Jdrp10OF2WB4PpTHw== X-Received: by 2002:a05:600c:b90:b0:3d9:76fd:ee06 with SMTP id fl16-20020a05600c0b9000b003d976fdee06mr43025072wmb.32.1673437957647; Wed, 11 Jan 2023 03:52:37 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id g14-20020a05600c4ece00b003d9ea176d54sm17933292wmq.27.2023.01.11.03.52.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jan 2023 03:52:37 -0800 (PST) Message-ID: Date: Wed, 11 Jan 2023 12:52:36 +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 v4 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: <20230110151745.2546131-1-daniel.lezcano@linaro.org> From: Daniel Lezcano In-Reply-To: <20230110151745.2546131-1-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Can I consider these changes ok for thermal/bleeding-edge ? On 10/01/2023 16:17, 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. > > Changelog: > - 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 | 177 ++++----------- > .../int340x_thermal/int340x_thermal_zone.h | 10 +- > drivers/thermal/intel/intel_pch_thermal.c | 88 ++------ > drivers/thermal/thermal_acpi.c | 211 ++++++++++++++++++ > include/linux/thermal.h | 8 + > 9 files changed, 287 insertions(+), 214 deletions(-) > create mode 100644 drivers/thermal/thermal_acpi.c > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog