Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp6300875lki; Thu, 4 Mar 2021 09:35:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9h9xEKm7Hi9k1pmhC4rp+K9dC8QfpJm2ADxzkW0lbZbk+3n0MmMyGND/fCAX2XvjH6bCr X-Received: by 2002:a17:906:85b:: with SMTP id f27mr5631193ejd.414.1614879310921; Thu, 04 Mar 2021 09:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614879310; cv=none; d=google.com; s=arc-20160816; b=0D32QaEPK/PJgYLicsyhNNXatfPjTUwPmSRo8TdhJc3gzZQiOT6VwnzMTZjzt2Qc55 mPRQLfZpx8xvDdPrvhVz5L5vH/DTu2CMx5P+gg5njcU6ER3bd5E06sTEm0Muz2x6UmRx X2pyr1Ke2sPOZtjfA1tJKdFsMNlvdULdCqFK4Km/pioL0a6DzTVu3xF1is9JV2XSw5y5 NnJMw1vd681G3nJKjIKOU7evESh7yObmuR6Z7Lc/M3+8B1+mBS4NsIY9sD7bfsLXaBT2 I1O2CfwabOQ2Fy95o0quu1TkfyLHxcmbIG+Jzl3tu5BTRzp/2Cytaxa99mxk6twTEQDj KlLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=TpQjQyuWyPafK1OlBvU/1IkDgQWnmR5aXHkXO1Wr7/o=; b=0075Dxg5WDC+wqiJ2ttNNakoRBzSlATTm8geoGRKZwX93Gyckk1Wb5b5+6tf953Orz lgb9qR/CwwUbC2+nKSr9/YJQs11LAfde35RDg1ETSqKTg00rJXOaE/AtxrSpC1DZ6wn0 sZieTj1NahFKI2kbXc196mmJwRhHz7EyVqj+6eZw+q6zLnPxODPBYmNrarUlMkhp3SuQ RTvFlWLLOBe/CvwMMR+uYonQHx/wBesgZcF5QJf/Udd0uY7dtj01XCxRdjGY3Y/7OBHv +Iiifwm9xVlZtljwC5ONZtwtkdXAzMahLKayBwiLJRa5e2umlo/MOc6vsMyM481HEZGT rJ6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si17728347eji.715.2021.03.04.09.34.46; Thu, 04 Mar 2021 09:35:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239550AbhCDNsf (ORCPT + 99 others); Thu, 4 Mar 2021 08:48:35 -0500 Received: from foss.arm.com ([217.140.110.172]:38514 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238758AbhCDNsa (ORCPT ); Thu, 4 Mar 2021 08:48:30 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 30CE731B; Thu, 4 Mar 2021 05:47:44 -0800 (PST) Received: from [10.57.19.206] (unknown [10.57.19.206]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BAF7F3F766; Thu, 4 Mar 2021 05:47:39 -0800 (PST) Subject: Re: [PATCH] devfreq: Register devfreq as a cooling device To: Daniel Lezcano Cc: cwchoi00@gmail.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Chanwoo Choi , Qiang Yu , David Airlie , Daniel Vetter , Rob Clark , Sean Paul , Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , "open list:DRM DRIVERS FOR LIMA" , "moderated list:DRM DRIVERS FOR LIMA" , "open list:DRM DRIVER FOR MSM ADRENO GPU" , "open list:DRM DRIVER FOR MSM ADRENO GPU" References: <20210304125034.28404-1-daniel.lezcano@linaro.org> From: Lukasz Luba Message-ID: <5f06e0c5-b2d9-5e11-01b6-fdd0dac635a7@arm.com> Date: Thu, 4 Mar 2021 13:47:37 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20210304125034.28404-1-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On 3/4/21 12:50 PM, Daniel Lezcano wrote: > Currently the default behavior is to manually having the devfreq > backend to register themselves as a devfreq cooling device. > > There are no so many and actually it makes more sense to register the > devfreq device when adding it. > > Consequently, every devfreq becomes a cooling device like cpufreq is. > > Having a devfreq being registered as a cooling device can not mitigate > a thermal zone if it is not bound to this one. Thus, the current > configurations are not impacted by this change. There are also different type of devices, which register into devfreq framework like NoC buses, UFS/eMMC, jpeg and video accelerators, ISP, etc. In some platforms there are plenty of those devices and they all would occupy memory due to private freq_table in devfreq_cooling, function: devfreq_cooling_gen_tables(). IIRC in OdroidXU4 there are ~20 devfreq devs for NoC buses. It's true that they will not affect thermal zones, but unnecessarily, they all will show up in the /sys/class/thermal/ as thermal-devfreq-X. IMO the devfreq shouldn't be tight with devfreq cooling thermal. CpuFreq is different because it handles only CPUs. Here we have many different devices. Regards, Lukasz