Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1477324imm; Sat, 2 Jun 2018 01:48:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI/E+ignJvSb4dWjXhSOv3ukelCSQhGcInnMB7uIpXWGrL8UGOkBKEX422AMgPzG7wAjemR X-Received: by 2002:a63:b646:: with SMTP id v6-v6mr4817999pgt.276.1527929282911; Sat, 02 Jun 2018 01:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527929282; cv=none; d=google.com; s=arc-20160816; b=NEgAJjPT5s4Z2ohtBHIjCI46botbPb7beB+7vSvX+Od+FPRLtgB4s+Vv082Ot3RFIo /6a2x6yQ+OQSZ/DAnn5aisILwCD0WLkn17A+hNtul/ZuDiVTXpmWhhUVhkPafl0ZHmFW QzWFOe+DU11agT5AtmJ2ZfCQMmZjglhEkbGTKg8pBEZXQr/hx0gAz6/0TcUWu5GJjxuh mhNY45GKO+xNEyyNCMynaPp7JiN+B0gFQPIiEV0r60f2cZiiClUdn30zgq+erD1x07/w EPgcdtFLzwomyPwzoY2x0wBf0Zu6+oQbJDVfgIIUHTjQbSM4WooOFVy59RFkXGXNCMwi YRng== 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:arc-authentication-results; bh=1vXJ2FUiCHRgVR6rhpMb5UA9h2JDJbjMgkFUXZAAWqs=; b=lkMZC7Ypj+Aa0sTMLJBScyQ2BDBfW2vzDu975OtBdBf5XhqtA4p1LWxkUi3GO80rFd 28oWWgHnOfA7aq1IrBLjxIW/feLx0tzZMzBHdygjMTtzlOUr3pONADS1vQD8zsts0EuQ e1fXrOnr8kxR85+N0CWVbNfip3wuH1YXGkYsCGvuAMPMSspnkjfvmub/hq9FHXtyXfce tbXRGBQ6VxVPaq0rs3ssBFpYUM9qxE2450Rca4ZIdjWisOglFlGAx+7rYNp0y7i2rClc i/CzfsZXWkntO5DI0gr1TsKTFcLtMIVIYLMtFXbdoDMdBePwdtqjbS6IHUYc3q3zA74M fzQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=nYkflgv1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f34-v6si25255703ple.165.2018.06.02.01.47.47; Sat, 02 Jun 2018 01:48:02 -0700 (PDT) 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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=nYkflgv1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750940AbeFBIrJ (ORCPT + 99 others); Sat, 2 Jun 2018 04:47:09 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:42176 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbeFBIrG (ORCPT ); Sat, 2 Jun 2018 04:47:06 -0400 Received: by mail-lf0-f65.google.com with SMTP id v135-v6so18117318lfa.9 for ; Sat, 02 Jun 2018 01:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1vXJ2FUiCHRgVR6rhpMb5UA9h2JDJbjMgkFUXZAAWqs=; b=nYkflgv1dUwZZk8+eb1C9OM1P1IL6JFs7Ho6cOH9BQI1aqeIUx4+UpEZWqwQPcgQCr pa2zbhs3jZgKQef1Nf5xJ4tlv8z53WUpy2hac9vyZ9r6o/J1ku0mO+k0ZaUmyPRs07b0 JmtiugKXXWkuA3j3X0QtKSINIv8DUR6Xs/2WHYvzrBCFpubu29fFe0pNE25WkbAWH1bW 0Nk8sDNgndnLhMyBQ4jVJeao5+fm7X24KKZ0UIFa8axz9Ey7wVpsUxt3oUgTaz5+EGCN lMTHMUqEY4QB9kCNHeitppdVcCxxT7YM57tTUCGxKDk4csXQ49jmGkwzzNkzvYr9X29k C5Vg== 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=1vXJ2FUiCHRgVR6rhpMb5UA9h2JDJbjMgkFUXZAAWqs=; b=Q5JvYas9cGNp3e0RrBsxhIA8Q0OOWnlWTKkVZiZaZyEeeU9ypHdpjfIVS6hKzcJIJx a9QuocgzYC/SBvh3pfXEPjs6JQ6QV6cmN4GweGN+keI76lcBeoPE0lnFN+7A8q4iTG8z 8+mr2YTi0UqaWg3+uzjjRl3qYfARR3oWxI93Wj9wlrEL3iLxlwbs2KbQi1nJEDgJrjNf mbr8xbfPFCuM8kkch9hsCkTfoMQuFgHy42yPxH9ZzLEwcnqnPKd4h3gQwxEjj3Lvv/LV NqtNM/FZ30S6yGoWmYi6pIXRKt7vv8N6Hh5s1B5jxxEZ8Sz7uKS5PpVk86rGfdKE0L4+ 57gA== X-Gm-Message-State: ALKqPwc/5A/ejyBxRTTQambl8ux8Fx2S+XIuIY0xwf3YjUeecYPTVXc3 A9gaBov3L3G9f4cScEmW/URjOw== X-Received: by 2002:a2e:1155:: with SMTP id f82-v6mr10138693lje.75.1527929225009; Sat, 02 Jun 2018 01:47:05 -0700 (PDT) Received: from localhost (h85-30-9-151.cust.se.alltele.net. [85.30.9.151]) by smtp.gmail.com with ESMTPSA id h6-v6sm1932257ljg.16.2018.06.02.01.47.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Jun 2018 01:47:03 -0700 (PDT) Date: Sat, 2 Jun 2018 01:14:18 -0700 From: Olof Johansson To: Viresh Kumar Cc: arm@kernel.org, Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Carlo Caione , Kevin Hilman , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] arm64: dts: amlogic: Add missing cooling device properties for CPUs Message-ID: <20180602081418.jcl2vjc6saoj3z3d@localhost> References: <2a2eb28da9fecf129f6bc0ab3d3748d9f4d25a29.1527225682.git.viresh.kumar@linaro.org> <20180525211025.c73zdcdtyuvlewng@localhost> <20180528111358.meyle364fy6wuruf@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180528111358.meyle364fy6wuruf@vireshk-i7> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 28, 2018 at 04:43:58PM +0530, Viresh Kumar wrote: > On 25-05-18, 14:10, Olof Johansson wrote: > > On Fri, May 25, 2018 at 11:10:01AM +0530, Viresh Kumar wrote: > > > The cooling device properties, like "#cooling-cells" and > > > "dynamic-power-coefficient", should either be present for all the CPUs > > > of a cluster or none. If these are present only for a subset of CPUs of > > > a cluster then things will start falling apart as soon as the CPUs are > > > brought online in a different order. For example, this will happen > > > because the operating system looks for such properties in the CPU node > > > it is trying to bring up, so that it can register a cooling device. > > > > > > Add such missing properties. > > > > This seems awkward compared to just having one cooling-cells in the /cpus node > > instead. > > Well, we don't allow that property to be present in /cpus node right > now and it is per device. And then we may not want all the CPUs to be > cooling devices really. And what I am saying is that it sounds like a broken binding if you don't allow that, especially since it'll be a super common case that all CPUs will specify the same cooling-device specifier. > > What's it used for? I don't see any properties in the device nodes on meson-gxm > > that have any cooling-foo cells in them? So why should #cooling-cells be > > needed? > > This property is required to declare a device as a cooling-device and > the device here is CPU. We use it as a cooling device by limiting its > higher range of frequencies, so that it doesn't generate too much > heat. > > It is already there for CPU0 and CPU4, but it should really be there > for all the CPUs, like we have clock, supply, caches, etc. You have #cooling-cells in the cpu node, but the actual data is in the thermal-zones nodes. Why isn't #cooling-cells under thermal-zones, next to cooling-maps? -Olof