[Freedreno] [PATCH] devfreq: Register devfreq as a cooling device

2021-03-04 Thread Daniel Lezcano
. 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. Signed-off-by: Daniel Lezcano --- drivers/devfreq/devfreq.c | 8 drivers/gpu/drm

Re: [Freedreno] [PATCH] devfreq: Register devfreq as a cooling device

2021-03-04 Thread Daniel Lezcano
Hi Lukasz, thanks for commenting this patch, On 04/03/2021 14:47, Lukasz Luba wrote: > 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 devic

Re: [Freedreno] [PATCH] devfreq: Register devfreq as a cooling device

2021-03-04 Thread Daniel Lezcano
On 04/03/2021 16:06, Chanwoo Choi wrote: > Hi Daniel, > > As Lukasz's comment, actually some devfreq devices like memory bus > might not affect the thermal critically. In the mainline, > there are four types devfreq as following: > 1. GPU > 2. UFS Storage > 3. DMC (Memory Controller) > 4. Memory b

Re: [Freedreno] [PATCH] devfreq: Register devfreq as a cooling device

2021-03-05 Thread Daniel Lezcano
On 05/03/2021 09:12, Steven Price wrote: > On 04/03/2021 12:50, 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

[Freedreno] [PATCH v2 3/4] devfreq/drivers/msm: Use devfreq cooling device registration

2021-03-05 Thread Daniel Lezcano
The devfreq core code is able to register the devfreq device as a cooling device if the 'is_cooling_device' flag is set in the profile. Use this flag and remove the cooling device registering code. Tested on dragonboard 845c Signed-off-by: Daniel Lezcano --- drivers/gpu/drm/msm/msm_

[Freedreno] [PATCH v3 2/4] devfreq/drivers/msm: Use devfreq cooling device registration

2021-03-07 Thread Daniel Lezcano
The devfreq core code is able to register the devfreq device as a cooling device if the 'is_cooling_device' flag is set in the profile. Use this flag and remove the cooling device registering code. Tested on dragonboard 845c Signed-off-by: Daniel Lezcano --- drivers/gpu/drm/msm/msm_

[Freedreno] [PATCH v4 2/4] devfreq/drivers/msm: Use devfreq cooling device registration

2021-03-07 Thread Daniel Lezcano
The devfreq core code is able to register the devfreq device as a cooling device if the 'is_cooling_device' flag is set in the profile. Use this flag and remove the cooling device registering code. Tested on dragonboard 845c Signed-off-by: Daniel Lezcano --- drivers/gpu/drm/msm/msm_

[Freedreno] [PATCH v5 2/4] PM / devfreq: msm: Use devfreq cooling device registration

2021-03-08 Thread Daniel Lezcano
The devfreq core code is able to register the devfreq device as a cooling device if the 'is_cooling_device' flag is set in the profile. Use this flag and remove the cooling device registering code. Tested on dragonboard 845c Signed-off-by: Daniel Lezcano --- drivers/gpu/drm/msm/msm_

[Freedreno] [PATCH v6 2/4] PM / devfreq: msm: Use devfreq cooling device registration

2021-03-08 Thread Daniel Lezcano
The devfreq core code is able to register the devfreq device as a cooling device if the 'is_cooling_device' flag is set in the profile. Use this flag and remove the cooling device registering code. Tested on dragonboard 845c Signed-off-by: Daniel Lezcano --- drivers/gpu/drm/msm/msm_