From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 459D11531F2 for ; Fri, 29 Nov 2024 20:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732910445; cv=none; b=VJ3x12newPuT/FIc7vbIZY1KCPeJnjeHxdNUjzZ36muzqbM/tsmT+qbQTf+D+WliUItrZzXOCnD+SLCv9fIqlwHGD4uUjVhswQBG4DlfWQQjFLsLFydVt4Y1OoTOr3W/A/U5ECIskmfHFNkRfo1U1dkr4SnPZGemR+ubirz9NgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732910445; c=relaxed/simple; bh=I6vhUfkKB8L2+0ZseqkvOp9WgX+MEIh0yWn2aYb0khM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ga7ZXp6/wpjf+miAgZRt5hcdjn+nKU4VORm2+jyqTMqWpWkmJqMR3yJdbHMswWQQzkXl15smcDbnk13KpLRLZXz0FIIl4vuWD679FdxudWtTT6uLvmmEPmJVUSdY+eHIE8jbAFsv+kP1SDQnHpRXyBAyU0YGyQuVfWX9eXqGPg4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=V1s8HmIY; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V1s8HmIY" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-434a1833367so13807275e9.1 for ; Fri, 29 Nov 2024 12:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732910441; x=1733515241; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hXMhlKyNUyXAehCvYmXtBGlWlyuXZ6rNCKB5eusJ9ok=; b=V1s8HmIYRyEM9tsFI7IyM23vAUitjHwPNrT4JW8qSFf7hWAkH/dCn9vfCnzpeGhyNC mhgkLsuI52EJRCjl37E4I1ju+GFdQM68g9RruVjqI9QesKCheVb1mO5FxPQUwvyTyUdi 8dmOCJ00GshE8BYyh68x1LzvNFgE8CGT4yNzYt7xleK15e1nQdKsLmgvGFYi669EF5RL IZ0PLdwl/GZ6vAOHx+pvYMSwXPhu3LcF1DH3ef7YxCiooPa+LOiJBzgKY7mVBQ0guYzm 2ctJbW4EzZr48TcdGN7q8FIXyixXW6pWEoXtpyOqwj398xWJYV2osXFaiDFZau//ibBq A20Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732910441; x=1733515241; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hXMhlKyNUyXAehCvYmXtBGlWlyuXZ6rNCKB5eusJ9ok=; b=csscLgozslA9yy5OuoDNrZabV7HOmlhY7kd/dW2fVPCcW2zcGuz+NPkbc8MXzQx1eI mFuogPSiLK2a3ZTfZVKkeE4trZEHUrNS4oetY15/D0+jMgOGAowIZukumdc66Qm/C0n0 J6E9KwgHFnbi/0Y6VTXG8b18EBkhlc+23gZmL4OoB9WRFgEP3Bsh1zccVo9k9HA1EzBV jgWu+eK3xmsHLXcAozbIi/kDepIaOLw3MizdteNaH91ZQJKkZezqkm74un08ekuPqxEF sluhjRL7QVLxWV8QOra/OAPDKT/vQyeuI+5Sq6NJpuxf50NoZcenfN62R9BPcJLqZTL1 V4Xw== X-Gm-Message-State: AOJu0YyprP0ncT5cPinQCl7Oby57AGMM/W8vSENh/TIcemxHsFLq6kww 5+jY4MATWhrotQpxx6xoeZTbIClOhOJYXJwETUE1tpgJXECIhiI4FNjo5pb7jTA= X-Gm-Gg: ASbGncugM1Nf94AaAtn2TbPxo9BxNK9uiLCQePJFe8EMRVyaZiAH5/g81Q+mvbv3/nr WHalIVE+2MShD2J0yshkYmdmoxZ9DKXvSauM86yKWBFsaJrdLuP04KIuwJ6L7PN8vc3EjWXOkzx IP85DBMcp8AZr+90oGRplK7SYnARt2+r1A0LMAYut+DG9GA03yJG3ecNH4FXiZVPLKWvnWHKFEs Di6WtANX4cZMUG9torXXqtrgQCn+PSi0sL/3KDuxMTWVyJitZCC6sgdXR5RMEGCmg7yUJgYCEQz M1cp2ms6QxPHug== X-Google-Smtp-Source: AGHT+IERDYwDGnHxt4PkrEbc7nYmk1O9LCWEyDw4b8b+mn5ibUuFnpDyTpQ+9yD3eVcYFhLRJEKXzA== X-Received: by 2002:a05:600c:3b16:b0:434:92f8:54a8 with SMTP id 5b1f17b1804b1-434afb29148mr77259745e9.0.1732910441500; Fri, 29 Nov 2024 12:00:41 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-434b0f325fdsm63936945e9.30.2024.11.29.12.00.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Nov 2024 12:00:40 -0800 (PST) Message-ID: <20d3a0be-ba5f-439f-80ff-2e2bda3bb144@linaro.org> Date: Fri, 29 Nov 2024 21:00:39 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/5] thermal: multi-sensor aggregation support To: Nicolas Pitre , "Rafael J . Wysocki" , linux-pm@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nicolas Pitre , Alexandre Bailon References: <20241112052211.3087348-1-nico@fluxnic.net> Content-Language: en-US From: Daniel Lezcano In-Reply-To: <20241112052211.3087348-1-nico@fluxnic.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/11/2024 06:19, Nicolas Pitre wrote: > This series provides support for thermal aggregation of multiple sensors. > The "one sensor per zone" model is preserved for all its advantages. > Aggregation is performed via the creation of a special zone whose purpose > consists in aggregating its associated primary zones using a weighted > average. > > Motivation for this work stems from use cases where multiple sensors are > contained within the same performance domain. In such case it is preferable > to apply thermal mitigation while considering all such sensors as a whole. Do we have a real use case where we can compare the per sensor vs aggregated sensors approach ? > Previous incarnation by Alexandre Bailon can be found here: > https://patchwork.kernel.org/project/linux-pm/cover/20240613132410.161663-1-abailon@baylibre.com/ > > diffstat: > .../bindings/thermal/thermal-zones.yaml | 5 +- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 210 +----- > drivers/thermal/Kconfig | 27 + > drivers/thermal/thermal_core.c | 643 ++++++++++++++++++ > drivers/thermal/thermal_core.h | 14 + > drivers/thermal/thermal_of.c | 86 ++- > 6 files changed, 780 insertions(+), 205 deletions(-) -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog