Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755737AbcCaMYv (ORCPT ); Thu, 31 Mar 2016 08:24:51 -0400 Received: from casper.infradead.org ([85.118.1.10]:46958 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750849AbcCaMYt (ORCPT ); Thu, 31 Mar 2016 08:24:49 -0400 Date: Thu, 31 Mar 2016 14:24:45 +0200 From: Peter Zijlstra To: Steve Muckle Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux PM list , Juri Lelli , ACPI Devel Maling List , Linux Kernel Mailing List , Srinivas Pandruvada , Viresh Kumar , Vincent Guittot , Michael Turquette , Ingo Molnar Subject: Re: [PATCH v6 7/7][Resend] cpufreq: schedutil: New governor based on scheduler utilization data Message-ID: <20160331122445.GJ3408@twins.programming.kicks-ass.net> References: <7262976.zPkLj56ATU@vostro.rjw.lan> <6666532.7ULg06hQ7e@vostro.rjw.lan> <56F5E1F2.5090100@linaro.org> <56F97548.1030903@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56F97548.1030903@linaro.org> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 929 Lines: 18 On Mon, Mar 28, 2016 at 11:17:44AM -0700, Steve Muckle wrote: > The scenario I'm contemplating is that while a CPU-intensive task is > running a thermal interrupt goes off. The driver for this thermal > interrupt responds by capping fmax. If this happens just after the tick, > it seems possible that we could wait a full tick before changing the > frequency. Given a 10ms tick it could be rather annoying for thermal > management algorithms on some platforms (I'm familiar with a few). So I'm blissfully unaware of all the thermal stuffs we have; but it looks like its somehow bolten onto cpufreq without feedback. The thing I worry about is thermal scaling the CPU back past where RT/DL tasks can still complete in time. It should not be able to do that, or rather, missing deadlines because thermal is about as useful as rebooting the device. I guess I'm saying is, the whole cpufreq/thermal 'interface' needs work anyhow.