Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1577875imu; Wed, 9 Jan 2019 22:25:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN72gX6Vxbx3LikQyn7UphgSP9r42ThxLcKWicvliJtoogKo8HwNxhjVdd7+7kADGQOZFpjO X-Received: by 2002:a62:2292:: with SMTP id p18mr9227354pfj.9.1547101524611; Wed, 09 Jan 2019 22:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547101524; cv=none; d=google.com; s=arc-20160816; b=NDgN9ToiocMxpJwS/XJUr+6jpouV/Nn76uLR1i8E2uUETlWMMlIJe/4WTShmPF2P1C OjAZ0pOVSExbN5jVvOraVaDygkqGP76LIvp2J0WyAO2WnOUrZyIQ2LY9l2tGieNvo0f1 VUZqdY05LOubbVv75aHMhBPNDsTTBRc63Xn9acHpK7cWplQylXaXjsWoyTBz3T6dGDCO 0ATSwW6fcV/umszIHLYHcfr4BABF4CeRuohQvtNWLt4/9d8XrbUTSMmcl82YqZ697dam WCl15GEybALZCayBwaYGPoBseKaYqQWNfV4KYK8yj0f1ddiB8qn48zYKGAO2JTtjHK53 LSqQ== 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=2BeolWeXP7bTs4CiVa1/MVZec9PsZULVRVGAQmzgstQ=; b=w+s0lopMBgV+P8GC2dzPaD3IrylixovsYVkUMDCjBeovxXJN+OQJxxebk1ViRzvc58 8WsKW2pWbHHO64fcxcdvS/aO6D4JSt1uDjcbG1eNdIfhoOHPmrtot6uVUYZNYX1niglS ERqhOd0cDWLK5UmxUwEQGZrvYKsiQJqNSC3LzkWnHfhBkQoAydESUh2/+vT9EhaCwSC1 Bo/aUwx1/il9DWvEDSKJqdSNFQO0IIWLoMoNu+LBSRTpLv0PyA9STubLcnHatlIByQX/ 7nKXgV2k6RavsLgyJ4HV3ySq7I2BzB0rUnD97RFxi/plbederwrMpNUrTJZ0jAgpuac5 40Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WvSpiRt8; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 82si32304514pfa.115.2019.01.09.22.25.09; Wed, 09 Jan 2019 22:25:24 -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=@linaro.org header.s=google header.b=WvSpiRt8; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727268AbfAJGYE (ORCPT + 99 others); Thu, 10 Jan 2019 01:24:04 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35424 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbfAJGYD (ORCPT ); Thu, 10 Jan 2019 01:24:03 -0500 Received: by mail-pg1-f195.google.com with SMTP id s198so4429404pgs.2 for ; Wed, 09 Jan 2019 22:24:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2BeolWeXP7bTs4CiVa1/MVZec9PsZULVRVGAQmzgstQ=; b=WvSpiRt82uHW3BRpPWX6eXAwOB5sMb6s9GIYQnoZMhcl0GjOPdlk3z+K/WPKJtItT1 +AeyCls7KLHd9/ayNjTyQXzpGMukwYnUuPZ5Y3LY/6lYpq3lp1rQG73g6JBGDWhV2lG6 hyNHVl+vluMUZuyBCzuBgZo659u3MhB7rxEXk= 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=2BeolWeXP7bTs4CiVa1/MVZec9PsZULVRVGAQmzgstQ=; b=AhLR3nrLYMaYKswxHsNStSRkM8dqVLlTyAXEf/wokbq4cMfL4QZqTfEqy+vxL8f35r JNprBX40JMjp61S7SD3lHsb84J2vryAivdiGXhE0jMg9H1MeY8WqzX7EBwnFzbZEFIaW cry8aC9DIIdmzLvQOcBfL8HMQb+WsVxTIPnCxTBt3PveBMLZWmVenr/wnptppgXOZO8J zrlXuC5kgiN85PNbqoj5Xx7X0H+Vlcbei29vaMXC3cf9An4KvN7jckcS4YwDn+BHRlhB mqMacH7J/l93m3xuqcpy4nmH7Yq7Zlbvfro6w1JsUPj2ilKTnqR4RF3dssc7nleiGPJZ 3GsA== X-Gm-Message-State: AJcUukfsc7ayZGxa/F6tM4OESDbtkICKOFaABKyz0xm8u9r4OU6HTzqT jIcJBV8UcJt8mh6W6qWGcE2+fw== X-Received: by 2002:a63:86c1:: with SMTP id x184mr5969520pgd.305.1547101442601; Wed, 09 Jan 2019 22:24:02 -0800 (PST) Received: from localhost ([122.166.131.155]) by smtp.gmail.com with ESMTPSA id h8sm79355162pgv.27.2019.01.09.22.24.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 22:24:01 -0800 (PST) Date: Thu, 10 Jan 2019 11:53:59 +0530 From: Viresh Kumar To: Matthias Kaehlcke Cc: Amit Kucheria , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, David Brown , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH v1 7/7] arm64: dts: sdm845: wireup the thermal trip points to cpufreq Message-ID: <20190110062359.aea3tic5aw3iuocr@vireshk-i7> References: <6c5b26e65be18222587724e066fc2e39b9f60397.1547078153.git.amit.kucheria@linaro.org> <20190110022217.GX261387@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190110022217.GX261387@google.com> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09-01-19, 18:22, Matthias Kaehlcke wrote: > Hi Amit, > > On Thu, Jan 10, 2019 at 05:30:56AM +0530, Amit Kucheria wrote: > > Since the big and little cpus are in the same frequency domain, use all > > of them for mitigation in the cooling-map. At the lower trip points we > > restrict ourselves to throttling only a few OPPs. At higher trip > > temperatures, allow ourselves to be throttled to any extent. > > > > Signed-off-by: Amit Kucheria > > --- > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 145 +++++++++++++++++++++++++++ > > 1 file changed, 145 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > index 29e823b0caf4..cd6402a9aa64 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > @@ -13,6 +13,7 @@ > > #include > > #include > > #include > > +#include > > > > / { > > interrupt-parent = <&intc>; > > @@ -99,6 +100,7 @@ > > compatible = "qcom,kryo385"; > > reg = <0x0 0x0>; > > enable-method = "psci"; > > + #cooling-cells = <2>; > > next-level-cache = <&L2_0>; > > L2_0: l2-cache { > > compatible = "cache"; > > @@ -114,6 +116,7 @@ > > compatible = "qcom,kryo385"; > > reg = <0x0 0x100>; > > enable-method = "psci"; > > + #cooling-cells = <2>; > > This is not needed (also applies to other for other non-policy > cores). A single cpufreq device is created per frequency domain / > cluster, hence a single cooling device is registered per cluster, > which IMO makes sense given that the CPUs of a cluster can't change > their frequencies independently. > As per above, there are no cooling devices for CPU1-3 and CPU5-7. lore.kernel.org/lkml/cover.1527244200.git.viresh.kumar@linaro.org lore.kernel.org/lkml/b687bb6035fbb010383f4511a206abb4006679fa.1527244201.git.viresh.kumar@linaro.org -- viresh