Received: by 10.192.165.156 with SMTP id m28csp450215imm; Mon, 16 Apr 2018 03:08:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+/79esNZLIBsfuO2n3YiQ/51vGAZ2hCd2GH+2qCITvoyMxdn/EPKC5RG8jN5gLdYxrf1/1 X-Received: by 10.98.93.20 with SMTP id r20mr21030352pfb.53.1523873292920; Mon, 16 Apr 2018 03:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523873292; cv=none; d=google.com; s=arc-20160816; b=dL21EbnOocqRBGH+tzH3xUIj5ABp4Y0kYVeVnuxOFwS/rvjSfNmgqZjdRqZeWNmK7V cYojIqeOAx6YNgd9ZkJ2rosv6Y/3Xp7UT88VCyMGeo1ZtF+XS0MmYOI+8NPHwqAL1v3d BJSaJEaMtpIRM/diWo1ukIPRcyqtwUa9wCX5KrE5v2L7CIBPgGoUI0qVneYUvmoxiPOU t/q/HRZAqOB6LGI+1bXq7uUJc0cvh0fp5BYfRNv0ILuuiGQNM9GO30g+kkStq9y9CSfV JnECZvvzUuTiZ+QPsHnJr6q9/9l3lPNODFEtp+xHajpwmjqiIAQSxdEdVOnEOy+CCyL8 jYaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=CizoRoVdHagdesOCGO0Hp2GylUoCKdSzn96wv5Dx3Cw=; b=tmj7C7uHPHi908lQQKOg7qleydP1RMP4cJCXZ3HAcdpgChhh9849NuRa5j4aa4uROC n8TvG4yyQlOG3RIwmCdT+k9lld1Gik3tjL0z/U2ZKvCuRuKhWjFHcJARcqzaxe9kV8NJ FCUClgJN8o9+BtkoetgsXo8jhzlXtwEQHp2WVK7uLl/uOXNJoMZyL0dApoqrYVpWc1RZ 8NNdBMGKtDiLeCku37HyEGJpXc8PlRSa5xRTlmfvICCNZp9uZG5vp8Y7M7J+SrYrdztM KDj/mWy3KplNeQoSx7FndXGcRw8yOL6FUAgiwrPYMqdNdH673eJ3zf6M0XT+Zp5XgMYf /SIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TfyQ+omg; 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 z18-v6si4638222plo.241.2018.04.16.03.07.58; Mon, 16 Apr 2018 03:08:12 -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=TfyQ+omg; 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 S1754134AbeDPKDn (ORCPT + 99 others); Mon, 16 Apr 2018 06:03:43 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:43555 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbeDPKDj (ORCPT ); Mon, 16 Apr 2018 06:03:39 -0400 Received: by mail-wr0-f194.google.com with SMTP id y7so24236448wrh.10 for ; Mon, 16 Apr 2018 03:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CizoRoVdHagdesOCGO0Hp2GylUoCKdSzn96wv5Dx3Cw=; b=TfyQ+omg9lkpExIN7xvv+nJe0Kqy4QeJmZ5rWqPqwkV9gofoBZtLuDU6+1JHQkxo7G 0CkvAMQw0Ft6fglIFKy1Wg+SUGZ85tJadjHBRcEWUTqeYRi7fSYkPcobaXI49ZtO1yU6 kUljxQhg9+j/k2z7PLNeah+uFBHFFImOEdjiM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CizoRoVdHagdesOCGO0Hp2GylUoCKdSzn96wv5Dx3Cw=; b=kRIz29c+JHK6zc1xzBn4RioCZGLmzl97Ll5xR+ljDTA4Jff9ei2OozquUdGg0d/CnK yGByXl1tvRecPX2J9Rm4BpPQK+Gqu6nUHB4fjn2F2GRCKIpVFJ21CgEHmCtIb09OITLR hT7fyfZ8r10fmapFsD6IRakrhlGAyJ/H3IK59JRtOXhRRUCV5tzXr99LbEWBfwwf7hP5 IgDKBe7iOrZkasxNyqzDgNVwsBCo3cYb3xu4Cgng73V9CVhMZixvjfo/NwW4FkGpIFqM iBt3h3k2JfpoOi1JH4pDdcNl/7LENBYbPXoAtA3DNfsjq5CZJAiAHgqrMobbYa0kf4HN Ynpw== X-Gm-Message-State: ALQs6tCYG/gxogR63NjvnBg1D93qN7QoulEuauSbZpYdXfJgZ3wtL5k+ 4sqX3gO1WmT1O7JRuQKFWITC9w== X-Received: by 10.80.144.120 with SMTP id z53mr31006969edz.163.1523873018377; Mon, 16 Apr 2018 03:03:38 -0700 (PDT) Received: from [10.1.192.61] (nat-wifi.sssup.it. [193.205.81.22]) by smtp.googlemail.com with ESMTPSA id i15sm7047257edb.56.2018.04.16.03.03.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 03:03:37 -0700 (PDT) Subject: Re: [PATCH v3 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver To: Viresh Kumar 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 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> From: Daniel Lezcano Message-ID: Date: Mon, 16 Apr 2018 12:03:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180416095006.GC4244@vireshk-i7> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? I don't understand the change Sudeep is referring to. I saw this attempt: https://patchwork.kernel.org/patch/9959977/ >> 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 :) -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog