Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2239999imm; Mon, 28 May 2018 04:34:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZru3tbO5o015KXul3OUkm8QPqEF8bceATtfvTmwlwGp6oVWk+9rKlgYg5PhwsXOHnXU/OSa X-Received: by 2002:a62:db05:: with SMTP id f5-v6mr13155623pfg.137.1527507274385; Mon, 28 May 2018 04:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527507274; cv=none; d=google.com; s=arc-20160816; b=OrWbmch4ciO/2hMH2BXoXlJOMKKRbe31ny4+sVD6COjBqyDPSdeNARAMRkqmNV5yWJ OQQyxbBH5AqJIj/G1w++0ayI+ktYlBEHCli9tLp+LRvGdrxLP4qrAIFtuG4QU8IA/mQi oTjCnEoIyy6aVju8upRw1UcYCjEnxTXDInpjYHN9/d/fZXOQKiG/Wdw/l2qYQ5hv5tJW xOEfpp9rqB3SqOPnpFfYgGIYki4x/5rJ6w8DZBNDX/HHiquG8xiX0R0esn8YcYv7LWG1 PXHyIdPholzOf/6pKlW0iKuQ5YscGWnFJgddMc/+3R1vn9aVpVgbIgUGbvyTOQaRJhAn 27sw== 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=TOhvIueeMFGsBFxPr+uincvQrVvLYM37XdquGIqCoLg=; b=WcJqKrtFuALiqeiDEiDOEDSbznDUZmYBX/8RWkgjpUVz6/DG+q5h35xipniGF5wkQ2 i3EucHsik6Vv4OanzY2rFR2S9gT3WtivDJ0FMzQyNSRPxhaX/LXlmI6VDvk8Ctx6sQ8F XlF3WByn7aMm0MUP2B9AW1RuqRLyV0eiGXDrtT3v9iKbotKu2HOZyEkN5TVyM6JFL/oY hioRj3jo6p6jOxGIFQIab+gdwAHz7zCKS/+5BPXZNv8LngpXEDzCbg6uLmfe0AxbzNPF sRLW5TH5eEi+TjxWCYe3uJ2zvl/J+fkuOM1p98X2CWJGg8jkYpdvjygFZkvnqBu6XMDe 7Ptw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AM06kYWt; 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 k127-v6si23448018pgk.256.2018.05.28.04.34.19; Mon, 28 May 2018 04:34:34 -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=@linaro.org header.s=google header.b=AM06kYWt; 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 S1424434AbeE1LdX (ORCPT + 99 others); Mon, 28 May 2018 07:33:23 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:38816 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424344AbeE1LOB (ORCPT ); Mon, 28 May 2018 07:14:01 -0400 Received: by mail-pf0-f195.google.com with SMTP id b74-v6so2255812pfl.5 for ; Mon, 28 May 2018 04:14:01 -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:user-agent; bh=TOhvIueeMFGsBFxPr+uincvQrVvLYM37XdquGIqCoLg=; b=AM06kYWtAq0/okTGqK6Ryi96W/TrimB/CPochLauCxyQ2VEyl45E79VyYJHxxQ2t+g ZDG0Eyr38c8fTRWlpcExPvH7ZRxbvRtRZt9X094lj2Bcoa2Jipx6uhXj/kVaLgVwKnkB +WnLk/XUOOW96KbnCp7E2t9qsEoXa8gFG2GZE= 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=TOhvIueeMFGsBFxPr+uincvQrVvLYM37XdquGIqCoLg=; b=ICciHH3EsRSXvGp0K3NAVUoU0p8HjdxGrzOq8jdjT13pGL6mNYkgI3Tpbca8bvOR+y gEes/RZNEwNuw4fxatczS5cctW4pAbHp7iEEJbfy/u4cbflqkHVLPCJdoPHh6YYHhA+M du8iG3A5vjpw6jcDq1CGMShYBHnjL53YPI51HAL9B0vAEvwW5w0EgWjfdgm7e6BhbKOD YxBxDyQYOXmBsFXGT1iLbGe8goAefvNQq6mkmvs2+uBNtqBhIlCG5Lq8TObg6ShoapR8 v7cBx5G+t9vdaKm6DI3HQCu6YB+u7ET2Q9ouQXnCsuZQQMnlXy3A5mORZLiZA1tN0ZEe NCTg== X-Gm-Message-State: ALKqPwcAtJ5Kz2scFI2jHbWN33Esy6PtDjaxd/xSknDxXcsp42F7o6Rd 4zOBroVDFP7nbgcDrHIULIHIwQ== X-Received: by 2002:a63:7905:: with SMTP id u5-v6mr10201281pgc.411.1527506041241; Mon, 28 May 2018 04:14:01 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id j11-v6sm38108766pgq.83.2018.05.28.04.14.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 04:14:00 -0700 (PDT) Date: Mon, 28 May 2018 16:43:58 +0530 From: Viresh Kumar To: Olof Johansson 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: <20180528111358.meyle364fy6wuruf@vireshk-i7> References: <2a2eb28da9fecf129f6bc0ab3d3748d9f4d25a29.1527225682.git.viresh.kumar@linaro.org> <20180525211025.c73zdcdtyuvlewng@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180525211025.c73zdcdtyuvlewng@localhost> 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 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. > 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. -- viresh