Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp997573imu; Fri, 11 Jan 2019 13:00:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN6DMrJXN5N/h7zl6DkXNzS6hJRMxnVetsGeN1q060uJdYYVFM0pbEvsyCsZ7XKJv5tzYKUP X-Received: by 2002:a63:8e43:: with SMTP id k64mr14670626pge.346.1547240411447; Fri, 11 Jan 2019 13:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547240411; cv=none; d=google.com; s=arc-20160816; b=gSQWTYewuLTy7rVFKw/JmOy3yU1qRXTWPyDaXS6NrLjUNSo0x6lDb3Rwetj4hd07P0 Qixy3bWRGR1Bt+SuNH2Q8E3f2Jovb17fA/ixQaiSHVqlk45okB1I3DpkPaKyjRLxuP9R sYQ/xmRG39qmeLYCcI2HthRHr6gYH1mp2a+WuKBEDlMuAd9QkvNLlmQ0CzpGfr2lYEOI S3tU9jeN4HYb62BZj+hpihw6Mb81wqOAEnzSejCFJHyacXkHWDGy6HORQnwPZUShrRec Xldk9Fq02zottdY4ahJM6kmh7bmxjSa9b651OW49/Ea9prD4bf86sote8ZeCWpwDno+W jeeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GLx9KY8aVCvQ3xoQiRX7b1nK2h1plnfqWyprCndpH5o=; b=okJKUyNZs1dZ1kuMco2V9z8ietIPvD9EVOg3maKRAt0l+s696sshXZDbu7Z9ObJKhw GF8SJWJ1Rxv21FkumpKZn/0mTNKTpIaVgVtEA25TcQKRxpjg9v5QSQQv9G/VgbQfS1EL o4hk1Vbuqq2W/5rmUdRpNw6QuvdQ+M/8U9tC8vS+9HjqLfc4BX5TNm8IrHZUkkEZyeAL 7sN8C/1lEF364V++/t9rTv5kePq46eSa14p2DFQdNNsBXsIz/RiZeDa1MNV9dbDkx+am sz9EuNRtjOdOH2HbTQAHmACOCnKe9DzMR6R9k5S6K1Dm3iJG3nAC65H3QilfLxYUV04S +Lfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C6OpjDcl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22si72093970pgh.286.2019.01.11.12.59.56; Fri, 11 Jan 2019 13:00:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C6OpjDcl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389049AbfAKSa2 (ORCPT + 99 others); Fri, 11 Jan 2019 13:30:28 -0500 Received: from mail-pg1-f181.google.com ([209.85.215.181]:43025 "EHLO mail-pg1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729479AbfAKSa1 (ORCPT ); Fri, 11 Jan 2019 13:30:27 -0500 Received: by mail-pg1-f181.google.com with SMTP id v28so6634671pgk.10 for ; Fri, 11 Jan 2019 10:30:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GLx9KY8aVCvQ3xoQiRX7b1nK2h1plnfqWyprCndpH5o=; b=C6OpjDcl3hLKk2QUAiPb4uSoEjjw+2kwNRwKPGwV3vPZAxsoa5+TDz5sV7YtbaDr0j 2XUYEsGyl4OdeH/PSYjXvVmUgaCsz8OH80n/igDQvoXxfMTpQD8Hb0cJSI32ln65BHBm W0Z5GNWpJzri8XHVNrekt1JCXxAuqd/pHs78o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GLx9KY8aVCvQ3xoQiRX7b1nK2h1plnfqWyprCndpH5o=; b=QLOLYjK1/FHW6jbFQfM64WSlK0rRPYWdRUxYJ60sCE/9wdnXpWOYgm/FHU/BDva0OI vtncqQ0xl8QeV4raeyHkS6akPTkG0S3W3TMxRbRZWMKnejZ1OG5JohoCM0TV/yfD64ym xrszAG6vBurdQiG9hohyYDyODGXeOMyTmFpYM9j5HjDwjPL0wlPNsewGBhgq9RDMrk3r l2X30KtprVdgDKAdw7CD2/erDt6Oo/70Hrn1mvy0eRF0NBKAb8bzBLKSKov3tESMRzq8 EMwwLa4XSWPf3YiwRJnqqzkNKTz906+K5cth3HOPaPg4WMCCG6gMBWcBKkrL7/E6Qd5N jQ2A== X-Gm-Message-State: AJcUukeU8W9NmhtGA3mPWN8U3WuIDNbS0pNCNrYOZYo2jd6sH1+OQOpT 9HFDU3YEyUiPziGpLpIdixBfJQ== X-Received: by 2002:a63:c00b:: with SMTP id h11mr12431904pgg.429.1547231425310; Fri, 11 Jan 2019 10:30:25 -0800 (PST) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id 184sm108509585pfe.106.2019.01.11.10.30.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Jan 2019 10:30:24 -0800 (PST) Date: Fri, 11 Jan 2019 10:30:23 -0800 From: Matthias Kaehlcke To: Amit Kucheria Cc: LKML , linux-arm-msm , Bjorn Andersson , Viresh Kumar , Eduardo Valentin , Andy Gross , Taniya Das , Stephen Boyd , Douglas Anderson , David Brown , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH v1 6/7] arm64: dts: sdm845: Increase alert trip point to 95 degrees Message-ID: <20190111183023.GE261387@google.com> References: <041258d65883df964890249a24d2a4788c419304.1547078153.git.amit.kucheria@linaro.org> <20190110011533.GV261387@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 11, 2019 at 03:54:23PM +0530, Amit Kucheria wrote: > On Thu, Jan 10, 2019 at 6:45 AM Matthias Kaehlcke wrote: > > > > Hi Amit, > > > > On Thu, Jan 10, 2019 at 05:30:55AM +0530, Amit Kucheria wrote: > > > 75 degrees is too aggressive for throttling the CPU. After speaking to > > > Qualcomm engineers, increase it to 95 degrees. > > > > > > Signed-off-by: Amit Kucheria > > > --- > > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 16 ++++++++-------- > > > 1 file changed, 8 insertions(+), 8 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > index c27cbd3bcb0a..29e823b0caf4 100644 > > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > @@ -1692,7 +1692,7 @@ > > > > > > trips { > > > cpu_alert0: trip0 { > > > - temperature = <75000>; > > > + temperature = <95000>; > > > hysteresis = <2000>; > > > type = "passive"; > > > }; > > > @@ -1713,7 +1713,7 @@ > > > > > > trips { > > > cpu_alert1: trip0 { > > > - temperature = <75000>; > > > + temperature = <95000>; > > > hysteresis = <2000>; > > > type = "passive"; > > > }; > > > @@ -1734,7 +1734,7 @@ > > > > > > trips { > > > cpu_alert2: trip0 { > > > - temperature = <75000>; > > > + temperature = <95000>; > > > hysteresis = <2000>; > > > type = "passive"; > > > }; > > > @@ -1755,7 +1755,7 @@ > > > > > > trips { > > > cpu_alert3: trip0 { > > > - temperature = <75000>; > > > + temperature = <95000>; > > > hysteresis = <2000>; > > > type = "passive"; > > > }; > > > @@ -1776,7 +1776,7 @@ > > > > > > trips { > > > cpu_alert4: trip0 { > > > - temperature = <75000>; > > > + temperature = <95000>; > > > hysteresis = <2000>; > > > type = "passive"; > > > }; > > > @@ -1797,7 +1797,7 @@ > > > > > > trips { > > > cpu_alert5: trip0 { > > > - temperature = <75000>; > > > + temperature = <95000>; > > > hysteresis = <2000>; > > > type = "passive"; > > > }; > > > @@ -1818,7 +1818,7 @@ > > > > > > trips { > > > cpu_alert6: trip0 { > > > - temperature = <75000>; > > > + temperature = <95000>; > > > hysteresis = <2000>; > > > type = "passive"; > > > }; > > > @@ -1839,7 +1839,7 @@ > > > > > > trips { > > > cpu_alert7: trip0 { > > > - temperature = <75000>; > > > + temperature = <95000>; > > > hysteresis = <2000>; > > > type = "passive"; > > > }; > > > > The change itself looks good to me, however I wonder if it would be > > worth to eliminate redundancy and merge the current 8 thermal zones > > into 2, one for the Silver and one for the Gold cluster (as done by > > http://crrev.com/c/1381752). There is a single cooling device for > > each cluster, so it's not clear to me if there is any gain from having > > a separate thermal zone for each CPU. If it is important to monitor > > the temperatures of the individual cores this can still be done by > > configuring the thermal zone of the cluster with multiple thermal > > sensors. > > Reducing the number of thermal zones to 2 (by grouping 4 sensors per > zone) is not possible due a limitation of the thermal framework[1]. It > is something that we want to address. Previous attempts to fix this > were rejected for various reasons. Eduardo was going to share a way to > have more flexible mapping between sensors and zones after discussions > at LPC. I wasn't aware of this limitation, thanks for the clarification! With this I understand that for now we indeed need the 8 thermal zones with all the redundant information :( > Eduardo, do you have anything we can review? :-) > > Having said that, we'll need some aggregation functions when we add > multiple sensors to a zone (e.g. max, mean) to reflect the zone. This > will lose information about hotspots and prevent things like idle > injection on a particular CPU that is causing most of the heat in the > aggregated zone. So IMHO, it might be useful to have information about > the hotspots (i.e TZ per sensor) and aggregated values (ambient > temperature) that can be fed to the thermal policy. Ok, it seems for now we need the 8 thermal zones in any case, when support for multiple sensors becomes available we can evaluate whether it's worth to change that or not. Cheers Matthias