Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2226448imm; Mon, 28 May 2018 04:19:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJUg8tllTQSd7y43rzj0I+mjMQ9g5wGFIe/C8WDGj/8K/ZYJC+mI9ZUcFl35lAxadJO0I2 X-Received: by 2002:a63:7b07:: with SMTP id w7-v6mr3615641pgc.199.1527506355215; Mon, 28 May 2018 04:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527506355; cv=none; d=google.com; s=arc-20160816; b=IHupyuRp1bXdLoraHW4bMTX5SjiaTUSprX85XrrSmVT5k1iMj241JgDZxYtU0ZEGRi W/frjod4Y5lZ499Jt61KuFHe77N5sIWgNQ68CeAZkTz2uCU43LJqVw60uNm7GbxvYkN7 bQ1RKpmpaDjjwwatk06jdYBkB3JWs47lp5DS86YNUTTBAR3RWfCOkkYpr0nyBxFx7YKb /s9Q/mqAi3pczus0Oo3luaK8uVvMWuu6vuGy750fvInz76usbSg/KgpC/RVsVBWhjCnj 3XrEPDHNyuDTjq+6njK2WlskgfPlUf0emIlFKdvKI47p5ryHQWO9G/NMVMgwziK2CoXA UPhA== 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=P5brJajZI3Iu4vDJ96ZcyZNidq2LB8AA7hUgpDLr1C0=; b=pSDUXvHXU0iRJgA3zgRTy8PhJAIWZpo8LsEFJB3OkPByATop970yowuaNHBIRxKHB0 NE3qE57k6o97/ZHJVgi8Dkjct0DN8QTK5ywz2THFmVe/mfix3hoYEg+MgF4Lg2CVxSzf rU3JMCxpD19p66ozRPlKtHsuPRbmnYvfU1MX3FuBG/ZLczqmSWxcpx8oRIn+IpPnqJIF EdDr0/VBU/qeQhHc8rbiYvcbrusGmSt4EyBB6+d6S8YcVtzGwoJtc/bInGUfmCLx+ofR OMGyifRWaJ/7A/qcSpCTZ3SOM2Y97banz2mZbElAF/Y0F1YoThCmjgUu3Bhld3bgu3ei 4/ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aUQhOTQd; 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 b3-v6si29687774plc.14.2018.05.28.04.19.00; Mon, 28 May 2018 04:19:15 -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=aUQhOTQd; 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 S1424769AbeE1LRB (ORCPT + 99 others); Mon, 28 May 2018 07:17:01 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:43547 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424436AbeE1LQz (ORCPT ); Mon, 28 May 2018 07:16:55 -0400 Received: by mail-pg0-f67.google.com with SMTP id p8-v6so5157520pgq.10 for ; Mon, 28 May 2018 04:16:54 -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=P5brJajZI3Iu4vDJ96ZcyZNidq2LB8AA7hUgpDLr1C0=; b=aUQhOTQdHgkz9LsNz83bqZ8AoZMAdkR8aHTkkaZOh+KuNxY0w3xpO31MeGZjrwpl++ KJtidcgXaWpqyxj40e5yJE7hbo3b26vfEpjnWva7QQuYkZWfmK8YSNbka5IVN3hYNwcy /EHqz+k5ORepXCZYPj8nbWTTlnD84JuK2G5fY= 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=P5brJajZI3Iu4vDJ96ZcyZNidq2LB8AA7hUgpDLr1C0=; b=FBw6ZjhKT8lPeZ4F7o7pcQVCHWgFvps/y+Q4SwwJm4BKEPVs4pUzxjb940OQU1fPq1 lgGzXiZltOi3c8e0cXHdItfTo6P+Kp7fIRu+ELWxOL5WV+SYnPAjbx2aJm/s6LyaPnJn vy5P54vvqm0oaLqdILwVypY+56JsWdJWO1+msOgiKqNzQ+JJ4/mSVanFNpmFm2q71C90 cSL3hSesL8xqfBgJS0oYV0sBwybCH0aGVSTP7f/GNQ1/d7wg8DdEjDw312Yt33Fud2yZ OtYTk1d10dGLC+PQYtZeHjI33WYgllZw3xxzuQjhogWKZ6AZd3TtVFJMGr16WGiansBT mpmA== X-Gm-Message-State: ALKqPwcgwTx0+lJc7DrJMISUzg98ys98qziCBV6rIEECcDBYQFfHBFY+ Mr06cunt5fCaTjzRcWc60FCUtA== X-Received: by 2002:a63:2f04:: with SMTP id v4-v6mr4970342pgv.33.1527506214564; Mon, 28 May 2018 04:16:54 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id b89-v6sm71401977pfd.85.2018.05.28.04.16.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 May 2018 04:16:53 -0700 (PDT) Date: Mon, 28 May 2018 16:46:51 +0530 From: Viresh Kumar To: Neil Armstrong Cc: Olof Johansson , Mark Rutland , devicetree@vger.kernel.org, Vincent Guittot , Catalin Marinas , Daniel Lezcano , Will Deacon , linux-kernel@vger.kernel.org, Rob Herring , arm@kernel.org, Kevin Hilman , Carlo Caione , chris.redpath@arm.com, linux-amlogic@lists.infradead.org, ionela.voinescu@arm.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/6] arm64: dts: amlogic: Add missing cooling device properties for CPUs Message-ID: <20180528111651.s7xl7e46sfduqk6j@vireshk-i7> References: <2a2eb28da9fecf129f6bc0ab3d3748d9f4d25a29.1527225682.git.viresh.kumar@linaro.org> <20180525211025.c73zdcdtyuvlewng@localhost> <9f9cc086-6069-afbc-d3c6-46608ff35b79@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9f9cc086-6069-afbc-d3c6-46608ff35b79@baylibre.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 26-05-18, 10:37, Neil Armstrong wrote: > Hi, > > On 25/05/2018 23: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. > > > > 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? > > > There is no reason to have the cooling-cells on these other CPUs, the DVFS is > controlled on the first CPU of each cluster, here cpu0 and cpu4 and only > cpu0 and cpu4 are used as cooling-cells. First, this is an incomplete definition of the hardware as all the CPUs are cooling-devices here and DT shouldn't be written assuming how OS will interpret it. And then it is broken right now. You can offline your second cluster (4567 CPUs) and bring CPU5 up first. You will see things breaking. I have explained more in detail here. https://marc.info/?l=linux-kernel&m=152750569414761 -- viresh