Received: by 2002:a05:6504:1d0:b0:1de:de76:8684 with SMTP id e16csp876524ltn; Fri, 2 Sep 2022 09:11:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR4QHYsDCqlIvakVJUGoD4o2m48IBAsj5kJypR7BnfXmVJWHb5Ue3Zng4TgM71azWlE7DGn6 X-Received: by 2002:a17:902:76c5:b0:174:e586:f6e2 with SMTP id j5-20020a17090276c500b00174e586f6e2mr21785744plt.37.1662135081370; Fri, 02 Sep 2022 09:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662135081; cv=none; d=google.com; s=arc-20160816; b=kZ83KmC1jEsHxhwgo/m+OmSNEHCbIE+rb4hJ8uH2K15VdFkV71iQj5x4L8U9cnIkET uorw5AvzrASvzgvr//Yniw4OvWHFqBDMlstlJrz6Tlyd1CrsdLDZpgJnOoECwB1PC1Bw AdcowKib6J20C1jFCgaKeCey0owThUB1h4LNQtjka82pyBDo6nsjpbWYpGWNRMTP6YWT 2txo0VmSklzdEPydk1++P0YvnwBt807hMzrRelsszRoqqafMO2zZnPp3OGEReOz3vGDJ XQuYSoehCiTLT5vLSbk4Sat/sQ67Gwc+1l8EovShrhhL2+4SfarrM/tmH2VCbeWyqvsQ YMmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=hYq4cv4cNUo/9VVzRmU4eVk/nrbDfe3lb0f5HSAbg0c=; b=vjg1KOGDPetA275Zb6PyHu3OyaJ1GnQqU7EB+gdI+sjwDDrCUqZawB/wRlQQ9fhjBh 7aI2vnap9ccWP0hwSeVH1bT0sjmLTEKOtNIa4aueXjEEiKB90JgYDxzSrRVlju33FKuu pOuruWD2Rp0BklbyJlNjZAFeVyVHpPksz3Y3V3sMRJu4nVMbJKHRTTbigPJAdw+uVT+i aTNxZWAItgz1oU4QRUTBAvXrsIN5WlTRkmLiqXwDHaEfOYn8enGb33jR1AdTZgMOTE7s nPeCDshnKPNJP7OodeFKGJRs+l3IBQeb5CD49h5h7Z/drTAcfSrk3aTW7uQ7z8+RU6vU kW+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="fXAJ+/P3"; 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 e3-20020a17090301c300b0016c7ab0194fsi2581402plh.6.2022.09.02.09.10.47; Fri, 02 Sep 2022 09:11:21 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="fXAJ+/P3"; 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 S236382AbiIBPrz (ORCPT + 99 others); Fri, 2 Sep 2022 11:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236952AbiIBPrd (ORCPT ); Fri, 2 Sep 2022 11:47:33 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A45DAE68F0 for ; Fri, 2 Sep 2022 08:36:59 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id k22so2655746ljg.2 for ; Fri, 02 Sep 2022 08:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=hYq4cv4cNUo/9VVzRmU4eVk/nrbDfe3lb0f5HSAbg0c=; b=fXAJ+/P3fhtMN1q8A3rt66vZdRafbtT3fcpkG6YbzOLJGXgMenZOZnNNgfXKlGyB5r /neSeMRbtxKr4RaUWpB2ly4PnRRPe3twwNXT5Zp04HSiIrWrtbPfxQPl4d/DCSv7Jw6P v6OpRAIcUKGWzfQf/L+mK3HkoWkVWdXaqxmdGC+Oz21BBA6qkJR+PgSYOi4lpfJwFBEk c4m+9c6wiXw6W0fyG49lUa9QfrMJ+Lu2JQOHxBNqW5Upsci/xG1gPacMteCbU+aw8w2R Wa40oIUi6Z2lVi0NDIyqyuz6OUkgO1Yegq0OH/PklUbwM23JcCeCErq8rCn2j2KUs7+z AwIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=hYq4cv4cNUo/9VVzRmU4eVk/nrbDfe3lb0f5HSAbg0c=; b=eesbZW0WPsmHQKwDXabEbz8eyiIxy0dZCpb8jjuYUdo4PQ9N3DoGXHt9O5D2mPb1du zdHvVUJbjPvT8zp31wbl9HwdNLisEPK300qePjf1lY1yF6sHMimay5yuyoN3fwwt0PLW JM1UFX6b8XKoOgXPcZOefcdOIXpVrsY+N5SqpsHWIhHs6a8yvT9oubo1oZVTu54N372S h1NSO6BZuQwqiR+UdmOaleAYqm/MW5af5YbIyYKRbWyH35AsXJeyaUQEq28TI0lIEuYu rm8F9liFE+FUyhD7QckQWmwCwbjrssDTSL560TtvL6v441knBJBD4tRK4wRtpceEm+HU kOOw== X-Gm-Message-State: ACgBeo1UzuNWF7YQijVGRUwU7o6Vpb7bcaNJnAlo1BF8ZS+YabiXsjSt lzW1ezJjL4umbyIHOrDIyk9uba+7RHpv/kR9qBxw9g== X-Received: by 2002:a05:651c:1953:b0:268:983a:c6de with SMTP id bs19-20020a05651c195300b00268983ac6demr3626799ljb.218.1662133017439; Fri, 02 Sep 2022 08:36:57 -0700 (PDT) MIME-Version: 1.0 From: Balsam CHIHI Date: Fri, 2 Sep 2022 17:36:19 +0200 Message-ID: Subject: Thermal Framework, Thermal Driver, Thermal Aggregation To: rafael@kernel.org, rui.zhang@intel.com, Daniel Lezcano , amitk@kernel.org, Rob Herring , AngeloGioacchino Del Regno , Alexandre Bailon , Kevin Hilman Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hello everybody, I'm currently waiting for reviews of the LVTS Driver v9 series that I recently submitted "https://patchwork.kernel.org/project/linux-mediatek/cover/20220817080757.352021-1-bchihi@baylibre.com/", then I will send the v10 with additional mt8195 specific code. The upcoming v10 of the LVTS series will support Daniel's new Thermal Framework implementation "https://patchwork.kernel.org/project/linux-pm/cover/20220804224349.1926752-1-daniel.lezcano@linexp.org/", plus new changes that may be requested from reviews of the v9. After that, I will submit another series about Thermal Aggregation. Basically, I need to create an additional thermal_zone with all sensors registered to it, this will allow us to return MAX, AVG, or MIN temperature based on all sensor values within this new thermal_zone (could we call it Virtual?). A series for the same purpose are sent by Alexandre Bailon "https://patchwork.kernel.org/project/linux-pm/cover/20220218084604.1669091-1-abailon@baylibre.com/", the implementation is done in "thermal_of.c" (I'm continuing on Alexander's work). According to comments, other platforms not based on Device Tree should benefit from this feature. So, according to Daniel Lezcano, it should be implemented in "thermal_core.c" instead. So, I would like to discuss it with you, and ask for recommendations and help on how to implement this feature, because it is not easy for me alone to figure out how to do it. Should we update the thermal zone to support aggregation? or add a way to register a thermal zone that aggregates other thermal zones? what about applying some configuration to a multiple sensor thermal zone? does it override the trip already defined in mono sensor thermal zones? And many other questions that should be asked to implement this new feature... In my honest opinion, we should clarify together how it must be done. Thank you in advance. Best regards, Balsam CHIHI