Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1828167ybt; Sun, 21 Jun 2020 00:24:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh8PhkYggaPAd6gGubJa28F0EF2ppZmOkM/9jWP0vMtKk+TwPuHAZ/A+7YSV2yoJrSCIeM X-Received: by 2002:a05:6402:311c:: with SMTP id dc28mr11255163edb.184.1592724255104; Sun, 21 Jun 2020 00:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592724255; cv=none; d=google.com; s=arc-20160816; b=dfXIDeNNy7ajejqVAroNYRwQMY8ffvKcnSUm6MBQbuSvUOr0aTND9btPIDo5FBqarM tq14iSkQUzfN58l/tnGxa+aoeI00QBUIhuqUWZ50ELIFSk4XaoMieOhVOSjCbFSvIX26 17NvT+QCX61hVc2jIRkieZ2gLTwW9+EyQlgk7EOCJzEBLVuVGSEq5t/xDEg6YXZjeTFt BD/qsJInAEcUJgCLB3J+S1OOOCDJNHaGrYdSNZPv6HkkuzJ82p9wtlQ5gOiXq5Uw41P+ dzTYccARNVGtzd2lV805e1R6K9cUhr/VECi9MkSVsc9IehRTlj6+fydwHznFzXg6I6sj qGSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zhhnd4ooynuYp+DByQntd+/eACdv1P9A50jueK+9Jz0=; b=zvufzKONv9y5zB+JmSfEiS5OSFDueFPFZs0zamRzcw5kQofHJtj+qrQ7Y8Pu4mWdC/ OfLbMkY5qNCy/vooakxW6Z2ewNFfMrpHrucBXiCH3uQeUHoXTJh2ywjjT/M7Gw66GwBR WNBfgZi9G+yHlP7sXjzxbzXzxhPt8mqXs9rYNtMmewS28ieH9x3DGYgP4LQ7pkYS1qMq g/HN8QfmC5LBQo9Ms8vyZFgxNp4FSIAXR8+wqMREH8iL97Vrp5EobeEU1WhIrLy936Qy xUJi0XRyVyFZ45+UWR/Cpt9cq8G+ZKiUSAXAgjK/yPewSWSN3w+pzvBl9vfPfSkx1/xa 6mBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yt7zuV6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id lz14si2005421ejb.65.2020.06.21.00.23.50; Sun, 21 Jun 2020 00:24:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yt7zuV6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729413AbgFUHVc (ORCPT + 99 others); Sun, 21 Jun 2020 03:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729388AbgFUHVb (ORCPT ); Sun, 21 Jun 2020 03:21:31 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64EC6C061796 for ; Sun, 21 Jun 2020 00:21:30 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id y17so6087062plb.8 for ; Sun, 21 Jun 2020 00:21:30 -0700 (PDT) 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; bh=zhhnd4ooynuYp+DByQntd+/eACdv1P9A50jueK+9Jz0=; b=yt7zuV6i6+kuAthGmj/DlOb4D50uMszJWqg3anEKpSeMOmcg+ci2KBcvYWRChL2n1I uY58D9qvZmXynLUO2XjAdZje5PKshv7DEzG4kEW0GLW661dQ/3NiLnzkDD+cD5i+Lyu7 Nepf5U5yH94YPZCd3al6F+60jUOMoMR0luaFoAF9IAiG8jJ/EwdIlsYdqFZFMQeFQNK2 58oVfyVV+WSkes/l+iAKwUZf19DhK6tYuQcWWNDEcC2FVHHLqtNMSdfUOl0Vx9DBBZU4 y16F1XtYEi340XdbzH1u42PWqLRbB9BzKJXBXxlNWs0xo+rt9ot93mU3mJ7hwhhKZPLm TOag== 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; bh=zhhnd4ooynuYp+DByQntd+/eACdv1P9A50jueK+9Jz0=; b=gQpXSKwfdH4Pw2Cxih7sHuQDiXzh0hde1fpw1TydxZjRrVVrEIxwIXA0BQAymrb7u8 XK3pdADLz/3QJ7k4QxQzicP5HDbG26wWDSnp7wfOI4BPwZJB6qaocCdegihL/D1wE1qJ ckzb/dWcMFST+7pD7rA1hmhRVtMfy7xz4nuVKYq5rBCiI8CoCIVGejO7QBVZA3pfEpew nIs+d4/3XmLTDFKeBx+cVgARUPFzNIcW2DRxdFAEboHcDAaVUBI8UPzVn9MMGzqOcrd7 QUDh5O7c52PzRpPg3ySvveg5hRiGtrZc1FvFhUC8/AV1oGJAL3pxJRP9Xt1NBNUYxNgL 0oNA== X-Gm-Message-State: AOAM531IzGJYci/fq22waUJPnbD3tH3m6N6axYYkinJCmXnss4aGNhuR 1WD3ihFHkiNMpn+8SNuRn0GfLw== X-Received: by 2002:a17:90a:eac8:: with SMTP id ev8mr11655642pjb.80.1592724089756; Sun, 21 Jun 2020 00:21:29 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id e124sm10106487pfh.140.2020.06.21.00.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 00:21:28 -0700 (PDT) Date: Sun, 21 Jun 2020 00:18:41 -0700 From: Bjorn Andersson To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, sibis@codeaurora.org, manivannan.sadhasivam@linaro.org, dmitry.baryshkov@linaro.org, Andy Gross , Daniel Lezcano , Zhang Rui , Amit Kucheria , devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 3/3] arm64: dts: qcom: sm8250: Add thermal zones and throttling support Message-ID: <20200621071841.GF128451@builder.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 08 Jun 23:44 PDT 2020, Amit Kucheria wrote: > sm8250 has 24 thermal sensors split across two tsens controllers. Add > the thermal zones to expose them and wireup the cpus to throttle on > crossing passive temperature thresholds. > > Update the comment in the drivers to list the SoCs it supports. > > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 766 +++++++++++++++++++++++++++ > drivers/thermal/qcom/tsens-v2.c | 2 +- > 2 files changed, 767 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi > index deaa8415c7b72..5cd18cd8a675b 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi > @@ -8,6 +8,7 @@ > #include > #include > #include > +#include > > / { > interrupt-parent = <&intc>; > @@ -86,6 +87,7 @@ CPU0: cpu@0 { > enable-method = "psci"; > next-level-cache = <&L2_0>; > qcom,freq-domain = <&cpufreq_hw 0>; > + #cooling-cells = <2>; This doesn't apply to linux-next. The problem seems to be that, as pointed out when I submitted that patch, the previously anonymous "cpufreq hardware" is now replaced by the "EPSS" hardware block. So we need a new driver (or update the existing one) to support this new hardware block. Presumably though, without this there's not much cooling anyways - which is sad, as your patch looks good. > L2_0: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; [..] > diff --git a/drivers/thermal/qcom/tsens-v2.c b/drivers/thermal/qcom/tsens-v2.c > index b293ed32174b5..58cac8f2a358c 100644 > --- a/drivers/thermal/qcom/tsens-v2.c > +++ b/drivers/thermal/qcom/tsens-v2.c > @@ -26,7 +26,7 @@ > #define TM_TRDY_OFF 0x00e4 > #define TM_WDOG_LOG_OFF 0x013c > > -/* v2.x: 8996, 8998, sdm845 */ > +/* v2.x: 8996, 8998, sc7180, sdm845, sm8150, sm8250 */ Even though it's trivial, can you please send this through the tsens tree instead, so we don't end up having unnecessary merge conflicts. Regards, Bjorn > > static struct tsens_features tsens_v2_feat = { > .ver_major = VER_2_X, > -- > 2.25.1 >