Received: by 10.192.165.156 with SMTP id m28csp598671imm; Mon, 16 Apr 2018 05:50:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx48zYcDH3lzUwPQ6SyUs8PRAdUrHwYPwEUBLm5N+sgY4jAd5eVVkAPFM4P22wyTrxq1w8hVW X-Received: by 10.99.98.198 with SMTP id w189mr12579218pgb.263.1523883039256; Mon, 16 Apr 2018 05:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523883039; cv=none; d=google.com; s=arc-20160816; b=rQsxDdvQmLRdVQk3gMDbrg1eguOblqgLaZlf6fyid7DdbsVkE1mmV7fDWvBWLbg43Y wQf3cpGR1Pw7QZ5TlVOVbm6RJdCDMuxWWeWHoUK1Daleivwd7Q+h25Ao2Ac24n9pRZCU tzkIAZCAJ3ElwE8EcbiDAZqo46JSxNQO/TRoW6Vr2wQ9VtH4zIXJgHfdOl2iJdF1Jx3j KQFPn/IWrbE6Oi5qK1/qRC771NxAG3rvHM8T8l1G+5eln+wIbvNo/ItVU1naou7D62Fz OgSIkpNPx0qwyHFwDXiUMPCsOoogrCTsnFxS11a8Ee4FqEgskG0oMCvXlot9fBhh64UP TDaQ== 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:arc-authentication-results; bh=8vrygJRYo69hmQ1gAmclzHy2ULuCguuCh631wUIWc6U=; b=NIeVOaBBv668ueb3w3CXaE+Xnnz1O0KtORqntE0tuv6LABgcWEaYnM8rDXVItP/Xp8 3uR5S8/xnjS/Zq08VBk/u63FdlRh5ZtoRtkS1Cf6hDbA1+OPruhUcvM0QPPzB3iHqnnA oLUHyZEGr4ES+VcbVgJ90buNa9ikcqqcXmM6keOPMyyOKSOgV70yM/1trlhKsVtTY4DM +fVm14t9orjA/QtQ6AsngelgRlalrA/X/arZHoWmm2HxHmGcR4Y6xNVFyXsITsDPzNq2 i637HaIcYkW/RUD7itflY6OzVDhI9qZuHds7QPjsN1K6g8ureMxNUdhZFFK0vKXiR3Mk W+oA== ARC-Authentication-Results: i=1; mx.google.com; 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 o5-v6si11763394pll.269.2018.04.16.05.49.54; Mon, 16 Apr 2018 05:50:39 -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; 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 S1754434AbeDPM3Z (ORCPT + 99 others); Mon, 16 Apr 2018 08:29:25 -0400 Received: from foss.arm.com ([217.140.101.70]:58924 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753697AbeDPM3Y (ORCPT ); Mon, 16 Apr 2018 08:29:24 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D0A341435; Mon, 16 Apr 2018 05:29:23 -0700 (PDT) Received: from e107533-lin (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E60463F587; Mon, 16 Apr 2018 05:29:20 -0700 (PDT) Date: Mon, 16 Apr 2018 13:29:11 +0100 From: Sudeep Holla To: Viresh Kumar Cc: Daniel Lezcano , 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: <20180416122911.GC3706@e107533-lin> 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: <20180416095006.GC4244@vireshk-i7> 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 Mon, Apr 16, 2018 at 03:20:06PM +0530, 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. > > > BTW, Am I asked to change my code to stick to something which is not > > merged ? > > Sudeep looked pretty confident on how the meaning of this routine is > going to change very soon. I will let him respond on what guarantees > we have that it will get merged :) > Viresh has already summarised it correctly. I don't have much to add. Unless the system has multiple package, this routine will return 0(or some fixed socket number, I don't think it can be different from 0 but theoretically it can be anything but has to be same for all the CPUs) -- Regards, Sudeep