Received: by 10.192.165.156 with SMTP id m28csp672025imm; Mon, 16 Apr 2018 06:58:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Bdi63Rj0qsELrEEnpcQJe3hdvbOxaUIvOZYEyJIluSdU30PU5RREudeHZtPh4nAXeFE6j X-Received: by 10.98.93.20 with SMTP id r20mr21751977pfb.53.1523887118303; Mon, 16 Apr 2018 06:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523887118; cv=none; d=google.com; s=arc-20160816; b=UpkBiTqAHRPuSNtz0D8Bwy31i2yPY5VRNYryaEQZ1D+r0/Yp5kavuv7oiLlMVrruQF 10/Rjh4kRgNmmSQbUPSWwtQSmdAwolIF1ZGv6a/84iaisLvW13rvaGxGE3NT1nLjLkaX irE/OhW+syvPOtCRHT4o8Z7EyuP0Sy+MTh9Qif3x6sqSwVZtNqByGMg2NE2Bmbz5nG0H SFAMG7UytBYadsvBTUN+G+QCn8CpZJZd7HWAI/AuAZKKILhMplTv5eNhDmMxLciVphBc fAHlRhh5yC70Z5Lfx6OxU4rCPRnuM5pr9GDDa7Vz4N6wTaBBcY1YE0s7cWvyXkMpuP64 kOhA== 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=KKf6fqKuB+HmMORyXO3tyAF9JL3DscMpSDFLKOedYHU=; b=sPgO58PguzslNQnTpDWJqBRs/sC3GfXlt8jrsxKdrHxXMzlWb+BUcxvMpbgGlOTHp6 XruZb9yCQZUbV/shINqiB1IhETow/B3P85Gm2pDx4jRRKo/9Kcqg2UCgOL9zbuQG5wfb 5XYOLPMV6ez9XPuwMO+5vr9UsD11m5OkQHLVAhY0wB+dAFOjIR+5GD+VQ0YCojuNxMwL H7uOKIi1XvKut78k3RGugqxrUb41tr8lHEJupWCT1Skt//Xoj0jh+MNuZ4RsHM2aI4UQ ANdM4LRDmOiso34haZl/ozbu06A1/u30GooHCHr+WMxObBv5hOVlLfD1epf4D1zvZrj8 r9hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GRWRKlLS; 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 y11-v6si12040943plg.173.2018.04.16.06.58.24; Mon, 16 Apr 2018 06:58:38 -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=GRWRKlLS; 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 S1755293AbeDPN5K (ORCPT + 99 others); Mon, 16 Apr 2018 09:57:10 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:42060 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755117AbeDPN5I (ORCPT ); Mon, 16 Apr 2018 09:57:08 -0400 Received: by mail-wr0-f180.google.com with SMTP id s18so26304458wrg.9 for ; Mon, 16 Apr 2018 06:57:08 -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=KKf6fqKuB+HmMORyXO3tyAF9JL3DscMpSDFLKOedYHU=; b=GRWRKlLSyQ/+OJVBY/iOjS62zGcYWDVQwUAmUPFbyqseWujcRZsKtHY5CczVSgGrz/ q4fwausQdEpn3KPU89tQYagumMh654GtR03lMNlS+uiryddffHMlqVHWtuiHX2vLO64V gKY/jdukhMRuzli/aYcdRpO+YWCf0kqNbwXMQ= 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=KKf6fqKuB+HmMORyXO3tyAF9JL3DscMpSDFLKOedYHU=; b=hTeDxo9vylXOvIOyohBDkt1wJHzSDbBCczauggVuURFYBzIjNNWzmVNVMwLHEk9RLw ssni7MHJUpuwKGADtbulb63vtMc+YnKgwg0/WQOUJ8hTuAI8BuCOo2kIyyKobSokfdUE N8UrcUXBcwt9WHqMwWjMGAN+dTTo+kEZTVDIbSQW38mVMb2KrfgQavm3Z33+q/deinjz +4F/gaULwf/90U6FPVnuTSPpGsuAn1KSYUrpXoP35/1xwESIXWjkB5JqMErJ9FUn/R2A ZLTzxi830tKLzeNEG8bIp/MexiXSpueuwj5YqwklAWvMH3GXW7El+TCXQYELb2E/Z6f0 PkTw== X-Gm-Message-State: ALQs6tAdrHRV1RqYkDB+nDE9xuCEe8apyoSKoe9/DCdBKu/Z8hWhZT63 I+gSeDh5keFlh+NRCwuNmZXPdw== X-Received: by 10.223.131.162 with SMTP id 31mr10240877wre.19.1523887026291; Mon, 16 Apr 2018 06:57:06 -0700 (PDT) Received: from [10.1.192.61] (nat-wifi.sssup.it. [193.205.81.22]) by smtp.googlemail.com with ESMTPSA id m9sm13313870wrf.81.2018.04.16.06.57.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 06:57:05 -0700 (PDT) Subject: Re: [PATCH v3 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver To: Lorenzo Pieralisi Cc: Viresh Kumar , 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: <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> <20180416101021.GD4244@vireshk-i7> <1c61128a-dea6-b12c-4cd8-ef53a5c8628d@linaro.org> <20180416123019.GA9341@e107981-ln.cambridge.arm.com> From: Daniel Lezcano Message-ID: <633cdc63-ce6d-89af-26dd-bdc3a27556ed@linaro.org> Date: Mon, 16 Apr 2018 15:57:03 +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: <20180416123019.GA9341@e107981-ln.cambridge.arm.com> 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 14:30, Lorenzo Pieralisi wrote: > On Mon, Apr 16, 2018 at 02:10:30PM +0200, Daniel Lezcano wrote: >> On 16/04/2018 12:10, Viresh Kumar wrote: >>> 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. >> >> Actually there is no impact with the change Sudeep is referring to. It >> is for ACPI, we are DT based. Confirmed with Jeremy. >> >> So AFAICT, it is not a problem. > > It is a problem - DT or ACPI alike. Sudeep was referring to the notion > of "cluster" that has no architectural meaning whatsoever and using > topology_physical_package_id() to detect a "cluster" was/is/will always > be the wrong thing to do. The notion of cluster must not appear in the > kernel at all, it has no architectural meaning. I understand you need > to group CPUs but that has to be done in a different way, through > cooling devices, thermal domains or power domains DT/ACPI bindings but > not by using topology masks. I don't get it. What is the cluster concept defined in the ARM documentation? ARM Cortex-A53 MPCore Processor Technical Reference Manual 4.5.2. Multiprocessor Affinity Register I see the documentation says: A cluster with two cores, three cores, ... How the kernel can represent that if you kill the topology_physical_package_id() ? > You should be able to figure out this week at OSPM the reasoning behind > what I am saying above. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog