Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7471111rwp; Tue, 18 Jul 2023 16:16:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGze0w2rgYmZsGTmj9pfaC7LUFK8yGJBSJ+riBB8ye3xCz46O9lWlOXfYrqMiUaMpVMiS1g X-Received: by 2002:a17:903:191:b0:1b6:a99b:cece with SMTP id z17-20020a170903019100b001b6a99bcecemr462988plg.30.1689722206560; Tue, 18 Jul 2023 16:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689722206; cv=none; d=google.com; s=arc-20160816; b=zIEhSiV3wG/2BTEBly2ltegIlAm1UufUh2/XGQhEfa9WJR+hDSLU+yQ7Y6AnRY/HbM dcopEQ45b+FuQ8NzfiRYOb2ZlPHp51qKhN/R/oQWFWAru8UXoO3RehkxsWFq/UNseHYK 9A/yJlo3Xk+zEuRWbhHJC8diILH66OEz5y/h5P62lTOOoFMo3BbeC/fega4RSsRT2/LO XoZx3I0u22zc5mwxCP88AvIRQQEUKEitwXjP9k7GVNzXiqznguBcl/3PIux4uwUsJhYO EM+XkSnny3f5xHTLlwekX8/ZdAmO2rfZnCR/pBXmvSeerNP/hqax2g8FWCxClYzn2wN4 kYHA== 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=0dM6vGQp7Yzqc9VcgY+1jMISgn/S3Msr5TJcQ3ba1vA=; fh=pEzMByEnePV36x3XCCNauQuREaASp/TIcmpU1ppDINA=; b=GnEu2oUYpcQwUZUJA2UAF6h8nhVJsMhWvYtfRNxdDcKehFbusqmQDEDfxXJDEh0+qF WF5R4AQpuPny8ShBh4lTxLOwlsWJdoIxOsD0ePz9bR+Qd3O24A3dvumjPba75Bh+yQ8L O5LvkFFoWI4sR/Wx/ZvTI0XvOQvRoYAVzDO6mGXtChXWMXHZqQAaqHMlNHGJ5cs48vFV dhabgAudI4F2wg1HquCxIUCW+RvMzKogG0rP3fdXOUx193QhqQrp5PgaEXkN1kWu1tBH XqzSlbzuFqzljYgiB3sf52wPE2so8SvEfLE5w7Ucbm6yeSWjKI/cuRlsUF4+pJAIKh+V JhTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w0bArvFa; 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 t7-20020a17090340c700b001b53a3fbcc3si2253466pld.328.2023.07.18.16.16.32; Tue, 18 Jul 2023 16:16:46 -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; dkim=pass header.i=@linaro.org header.s=google header.b=w0bArvFa; 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 S230432AbjGRWqB (ORCPT + 99 others); Tue, 18 Jul 2023 18:46:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbjGRWqA (ORCPT ); Tue, 18 Jul 2023 18:46:00 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28CE7198E for ; Tue, 18 Jul 2023 15:45:43 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fbc12181b6so64759815e9.2 for ; Tue, 18 Jul 2023 15:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689720341; x=1692312341; 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=0dM6vGQp7Yzqc9VcgY+1jMISgn/S3Msr5TJcQ3ba1vA=; b=w0bArvFa/qc2nxE5FLuei55K0a3o16zZL9S7p7nipeYsKhDa0w8YtFoBwLugBATvKk KQxIabqNDG0GX89legNxHyZRa5xlIt6r2E5wbTv6a/Nqy8tMYuhoSfHmQFB854Sf88K6 N4N9dQilcLw9j/LtBXeCqty8DiDzW34bEbyTEMEzfWSxUfM33DgfvckRS3w0catafznn Kwp92At82HRvKajEG7SAi5XVQ0TaJLuB/mq5/20S8CDsaYefiiil/bddj/af0shg6Tyq BPTiTpSi2oGyFmFoB+i8MCmGfgwAFlvegtXdyBdhz2+VAunIRMV0c3ngDQCfrsgzhuf1 RoYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689720341; x=1692312341; 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=0dM6vGQp7Yzqc9VcgY+1jMISgn/S3Msr5TJcQ3ba1vA=; b=jtUEvl13nmhfOsxFgNE2YXy+01VyMRefuj1ZrpzpGk8uhobb3yCjxrMtnj6Dwk4gSS c6xkm1uwXWxTsYGhrq2eD4/ELZK9851IAFLsI1rJKAaN1tMI11+hvPQskAhPyoQaxXew MNKmGx83ZOLLvZljuUjSDufL/PkBTYAH6JfLcUiwTMPn6KmBDlJJA5EE0oOgIY2/VYdQ MOzCCrk92yEyMqP2bs9lx0yI2WZ3VFYCpbDFPqTWqE4FWJe4FLaDPaXR7m5DhbCFgB5d TKipsSp5ihfKAy3PJN0WRLk0XPWVA61R4oY02PdT1CmKpJoiW5P1EO6T9VbAKCMDWEX/ jT0A== X-Gm-Message-State: ABy/qLaJKgjUdc/uEagDC2wO6+yVbqdT0WLFFN2W6EcpH/hl7r9U2sB6 QkHCaYjlzdtRsOkpty7W4NbL8g== X-Received: by 2002:a1c:740d:0:b0:3fc:70:2f76 with SMTP id p13-20020a1c740d000000b003fc00702f76mr3048258wmc.20.1689720341326; Tue, 18 Jul 2023 15:45:41 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id bh17-20020a05600c3d1100b003fbb1ce274fsm4382033wmb.0.2023.07.18.15.45.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 15:45:41 -0700 (PDT) Message-ID: <8b89f009-bcfe-3a90-f19e-0b5894a5ebd1@linaro.org> Date: Wed, 19 Jul 2023 00:45:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v1 0/7] ACPI: thermal: Use trip point table to register thermal zones Content-Language: en-US To: "Rafael J. Wysocki" , Linux ACPI Cc: LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada References: <13318886.uLZWGnKmhe@kreacher> From: Daniel Lezcano In-Reply-To: <13318886.uLZWGnKmhe@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Rafael, On 18/07/2023 20:01, Rafael J. Wysocki wrote: > Hi Everyone, > > 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). Yay! > 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. > > I have run it on my test-bed systems, but this is not too representative, > because they each have only one ACPI thermal zone with only one (critical) > trip point in it. Rui created some ACPI fake tables I was able to run them in a KVM machine with fake thermal zones. I can share the setup if you are interested in -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog