Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755333AbdDRKi1 (ORCPT ); Tue, 18 Apr 2017 06:38:27 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:35593 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751392AbdDRKiW (ORCPT ); Tue, 18 Apr 2017 06:38:22 -0400 Date: Tue, 18 Apr 2017 16:08:18 +0530 From: Viresh Kumar To: Eduardo Valentin Cc: Javi Merino , Zhang Rui , linaro-kernel@lists.linaro.org, Amit Daniel Kachhap , Rafael Wysocki , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot Subject: Re: [PATCH V2 00/17] thermal: cpu_cooling: improve interaction with cpufreq core Message-ID: <20170418103818.GQ28191@vireshk-i7> References: <20170417173431.GA10447@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170417173431.GA10447@localhost.localdomain> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2204 Lines: 60 On 17-04-17, 10:34, Eduardo Valentin wrote: > Hey, > > On Mon, Apr 17, 2017 at 11:31:45AM +0530, Viresh Kumar wrote: > > Hi Guys, > > > > The cpu_cooling driver is designed to use CPU frequency scaling to avoid > > high thermal states for a platform. But it wasn't glued really well with > > cpufreq core. > > > > This series tries to improve interactions between cpufreq core and > > cpu_cooling driver and does some fixes/cleanups to the cpu_cooling > > driver. > > > Can you please be more specific of what exactly is not gluing > properly/really well? I like refactoring, as long as well justified. > > Do you see anything broken currently? It wasn't broken really but the same information is scattered around and it wasn't clear on which one is the best one refer. For example, clipped-cpus is copied from the policy structure, but the policy->cpus thing can get updated later on, while the clipped-cpus never got updated. It makes more sense to get rid of the copies we are keeping and reuse the real fields, i.e. use the cpufreq policy directly in cpu_cooling. And then it caused lots of cleanups as well.. > > I have tested it on ARM 32 (exynos) and 64 bit (hikey) boards and have > > pushed them for 0-day build bot and kernel CI testing as well. We should > > know if something is broken with these. > > Nice. What governors did you try? Have you checked "power_allocator" by > any chance? I tried setting all the governors including power_allocator on my exynos board, and didn't see anything broken. My branch also got tested by kernel CI bot for build and boot tests on a wide range of ARM boards and I didn't see any bad reports due to this set. So it should be okay. > > > > @Javi: It would be good if you can give them a test, specially because > > of your work on the "power" specific bits in the driver. > > > > > @Javi, are you still around? This needs to be validated in terms of how > the cdev states and power models are computed. Just to make sure we are > in one piece. Copying the ARM folks too, Punit?. And yes, I specifically wanted Javi (or some other ARM guy) to test this stuff out. Looks like Lukasz will help out now. Thanks to all of you :) -- viresh