Received: by 10.192.165.156 with SMTP id m28csp453302imm; Mon, 16 Apr 2018 03:11:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+3qzm4XoIs7r6Dxu67sgAW72zQiRh6OyPUPxLW3uIsv+R4mMJzc6135w5Z3ycaCSNqpme3 X-Received: by 10.98.7.152 with SMTP id 24mr20986820pfh.94.1523873516764; Mon, 16 Apr 2018 03:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523873516; cv=none; d=google.com; s=arc-20160816; b=h0sFxh+Lo8xfLl/xcExAWqQMcrZ7qeBhUUrAM62aGq+hSBi/TQriXsMq2bjsLDMlkS RN9JaXgxjgaY8KoOrKL9qicdu1ETP1f9ZOG2wddLUle2vZof64esZzPUXjN8SJMlYkpX GBSOZMiaz+zt92F4DWndxWnXBv+bqKr/oiQAKFHRQWk7VCOsFbUW+lh/FyBL1j2mPLac TfXnsBqwVEeI59XpiG0y+qmxiUUbHxbSeIFcTUiW3ZiHu3qEyMRjV8AuLlVTWblFOIoj +/Y609M8HSsYuYKLuaNFcAdQTFIJ7CFZm7eUgT0KeRNDHqB/VJtPeCv+8tYt67414xWA 3Naw== 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=eOK2h6tDQwvQbgabdpdjoZBsRNjJ7GBEUjnsRDfDr0c=; b=IgItMzHaP/lNHr4C9LPU1dfvWdaL/0cHSDHx+wdjTch1KiTlqwf2FSX9PiU7VPxWA8 AvNd8knVJ/N+lD6MGRhsilH6RXPcxEfBZ53R/uX7OC4JQ3e2UU84rwtFbLpbIkM82Uko G+Ia80gJmHMEyHY//7xF66GODcjN8eUnqr0CQ2nl0zhUf6r4ktMHzsZ4ygxH52hJrrze 9FAuggOrceLBRw89R7bTjl0B3nnDlWjMdwW7YsJY6DnUk5KjCModx4Ki0Vb5y//anKkr uxepGgIpjZjqDSXYOFpErzKXybFTmjKt6K55yLIhHITvVHDWOK45eY4F+QwXRDUmpUJi xb/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iJe45sA1; 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 131si2444185pfa.246.2018.04.16.03.11.42; Mon, 16 Apr 2018 03:11:56 -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=iJe45sA1; 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 S1753197AbeDPKK0 (ORCPT + 99 others); Mon, 16 Apr 2018 06:10:26 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:41130 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040AbeDPKKY (ORCPT ); Mon, 16 Apr 2018 06:10:24 -0400 Received: by mail-pl0-f67.google.com with SMTP id bj1-v6so9750172plb.8 for ; Mon, 16 Apr 2018 03:10:24 -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=eOK2h6tDQwvQbgabdpdjoZBsRNjJ7GBEUjnsRDfDr0c=; b=iJe45sA1KgbGJ92ad5Z5ssT7mNRgwhs6LCl4Y9QDryB4VDPTTi4a0HcOPtHyaGUB9Z OhbazDAoMVNc1No3kT9v6UpPI3faLqYwZE2O7TOTqCXES3xvMCikSNDTki3PokcWyx8Y nedG1CMgdrvp97n0KQEm3fud2XIRvtVPYly2I= 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=eOK2h6tDQwvQbgabdpdjoZBsRNjJ7GBEUjnsRDfDr0c=; b=h49ZhXdzBpoYzh/9Q/qR9AGYCbM2JBgQyyhdEhSD3SUMJOfsHPcxY8lU4cSYxu6UqZ KQP0BGca29JWqlygSpm1jHYeuSi22py9JAjYFZFYoIyha7ycwIl02t16aRvy+6guM75/ ItYwYr/7a4B5MsidRPOUAYlhyhfMMi+FVa3BBYv8HdQZjIf7JcNcz3Q0NM6c1ilUFNjO bGGMRsPImRIRspqyAmPgGKHQCTU0KzPDdEvZ0sj8NF638sazcXVy6OXpKH2EFeIFgDRe xlJMrbm9CpL/Wt99oixcqwZln+MaYOFlcoHk8EsZkZ+1Fo7NqL7wI805gWHCcIAQu+C7 8c+g== X-Gm-Message-State: ALQs6tBJ7DKXVEztKzgP/Sdd4TeiVSte21Lequ3n5fD+XtY7tLy7mR86 7Qb+sAFZKzUoGvdXU8yex99ITQ== X-Received: by 2002:a17:902:6045:: with SMTP id a5-v6mr8019902plt.138.1523873424274; Mon, 16 Apr 2018 03:10:24 -0700 (PDT) Received: from localhost ([122.171.77.91]) by smtp.gmail.com with ESMTPSA id h21sm18279266pgv.57.2018.04.16.03.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 03:10:23 -0700 (PDT) Date: Mon, 16 Apr 2018 15:40:21 +0530 From: Viresh Kumar To: Daniel Lezcano Cc: Sudeep Holla , edubezval@gmail.com, kevin.wangtao@linaro.org, leo.yan@linaro.org, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, javi.merino@kernel.org, rui.zhang@intel.com, daniel.thompson@linaro.org, linux-pm@vger.kernel.org, Amit Daniel Kachhap Subject: Re: [PATCH v3 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver Message-ID: <20180416101021.GD4244@vireshk-i7> References: <1522945005-7165-1-git-send-email-daniel.lezcano@linaro.org> <1522945005-7165-7-git-send-email-daniel.lezcano@linaro.org> <3f3b3b7a-3b74-aee2-2fac-f2759babe3f0@arm.com> <939f7943-feec-aaa2-3bd3-59a6618330c0@linaro.org> <20180416073729.GA4244@vireshk-i7> <0a3164f9-4738-e24e-6ed0-2c75024c304c@linaro.org> <20180416093747.GB4244@vireshk-i7> <4abf0d97-d2b8-46ab-3c05-4a11510ac3fe@linaro.org> <20180416095006.GC4244@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16-04-18, 12:03, Daniel Lezcano wrote: > On 16/04/2018 11:50, Viresh Kumar wrote: > > On 16-04-18, 11:45, Daniel Lezcano wrote: > >> Can you elaborate a bit ? I'm not sure to get the point. > > > > Sure. With your current code on Hikey960 (big/LITTLE), you end up > > creating two cooling devices, one for the big cluster and one for > > small cluster. Which is the right thing to do, as we also have two > > cpufreq cooling devices. > > > > But with the change Sudeep is referring to, the helper you used to get > > cluster id will return 0 (SoC id) for all the 8 CPUs. So your code > > will end up creating a single cpuidle cooling device for all the CPUs. > > Which would be wrong. > > Is the semantic of topology_physical_package_id changing ? That's what I understood from his email. > I don't > understand the change Sudeep is referring to. > > I saw this attempt: > > https://patchwork.kernel.org/patch/9959977/ @Sudeep: Is using topology_cod_id() is okay in that case ? -- viresh