Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4394751imm; Fri, 18 May 2018 04:31:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoHDz5o1UDdhMdpuYs+k7RDpkjfVvBTs2ipop182eSSCTr8TZrBQKBEa92RPDlV063Dkwas X-Received: by 2002:a65:4306:: with SMTP id j6-v6mr7232202pgq.341.1526643089109; Fri, 18 May 2018 04:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526643089; cv=none; d=google.com; s=arc-20160816; b=KKRUARXPfA6cFZNuHTLNHz5CxhooJ8oWKq4m7TZNMdIp2B+wV4SE7URf9Q2TReBBk8 XgH50Jaz04IxSm0iYqT2SGSy/s1SnX5dd7D+Z6z9ICHSgSU0P2qUlmv9ZagMqTD2fPdO yToIZm6RXKLGRaEqpJ1BKjqiVPxdLrrPNIBcHC4Dlusf1LPmTwBuaOTRNxf7EiQo9iHA cDoB7oEX56wA8yFkDKzUMUXYY8n60qw66LFONzxZ5Ur0k3lK9LRK2t2VXVL+jCRvezex xqj4YeP67lM6yZtaQ8DuDIWUcJ6bPKbx3CBJf27PBFlqXkZqQby7Sjw7lWtVi79mQQI9 ISiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=5VZULogsZN8BSawy1r/n5pxOds2nwH+mMBrSz9j+HUA=; b=KViI1NhF6JuWph97FhDfpA2nTgkpFmrs1f+rwVILRudUjwxQpLDAqZAYbiqLtdr1iJ wDmPX7yWryJ4L5dZr7QAHVX5PlCxyKuNct2F/MTx4kH/+NvU6K4Wsvrh48U6aeuBgnWE G0uqeToGfa+nmHkcgfJ59IQpj9qnOb7t02XUqNn1OfC827ZurHTLns4TczKfa/KnOH8W irWvjB3ZnDokV6RdwfP/gVSM5Qt30qIS1LMqQkT99uS7iqu8ol8SdYj5bVvKUodBmwZi ssF60vv8Qln+tbZP9wUeDIu5Njhgu9PqEscipPN/IkOjdTjaDfKbASgpMunhnDjUWIPG olwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=09+R+UzE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14-v6si5735175pgc.627.2018.05.18.04.31.14; Fri, 18 May 2018 04:31:29 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=09+R+UzE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517AbeERL3p (ORCPT + 99 others); Fri, 18 May 2018 07:29:45 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40816 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752456AbeERL3l (ORCPT ); Fri, 18 May 2018 07:29:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5VZULogsZN8BSawy1r/n5pxOds2nwH+mMBrSz9j+HUA=; b=09+R+UzE6MT7w14uDFo4YL8y4 F2O2qo4iJiQYRuO/CSgirXrfVg4ynyIzCvYbhdMgl1f7BN09qMTWXwVwrzF4rp18aD/4uJhl9lnA/ B5aFhXq5ZMfzoxVI67Bh+pWe3d8DxkfDFv0WaUkm7fHPjpr9l0LxObbAkEY+zQDyW7zWs+GOj63al ZZ7PNY45osKBQvdqAwg8aNlTDZ2Cv8hrM/Io+v96sRhCf8ygQv6N+5n49xsrFAbhqnRurpOjFOFJ4 VblPxzeylGfYkwM1l4iZcLjxrmhO98TnllOmsAaBjanxx5mk5f8FnM6r6ZtWhN7KiGP8g29O8vEE0 KUyFhGlkQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJdZZ-0006KE-68; Fri, 18 May 2018 11:29:21 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A66562029F1C4; Fri, 18 May 2018 13:29:19 +0200 (CEST) Date: Fri, 18 May 2018 13:29:19 +0200 From: Peter Zijlstra To: Patrick Bellasi Cc: "Rafael J. Wysocki" , Srinivas Pandruvada , Juri Lelli , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Len Brown , "Rafael J. Wysocki" , Mel Gorman , the arch/x86 maintainers , Linux PM , Viresh Kumar , Linux Kernel Mailing List Subject: Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting Message-ID: <20180518112919.GI12217@hirez.programming.kicks-ass.net> References: <20180516154733.GF12198@hirez.programming.kicks-ass.net> <20180516163105.GP28366@localhost.localdomain> <20180517105907.GC22493@localhost.localdomain> <20180517150418.GF22493@localhost.localdomain> <1526571692.11765.10.camel@linux.intel.com> <20180517161649.GX12217@hirez.programming.kicks-ass.net> <1526575358.11765.14.camel@linux.intel.com> <20180517182803.GY12217@hirez.programming.kicks-ass.net> <20180518105742.GN30654@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180518105742.GN30654@e110439-lin> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 18, 2018 at 11:57:42AM +0100, Patrick Bellasi wrote: > Thus, my simple (maybe dumb) questions are: > - why can't we just fold turbo boost frequency into the existing concepts? > - what are the limitations of such a "simple" approach? Perhaps... but does this not further complicate the whole capacity vs util thing we already have in say the misfit patches? And the util_fits_capacity() thing from the EAS ones. The thing is, we either need to dynamically scale the util or the capacity or both. I think for Thermal there are patches out there that drop the capacity. But we'd then have to do the same for turbo/vector and all the other stuff as well. Otherwise we risk things like running at low U with 0% idle and not triggering the tipping point between eas and regular balancing. So either way around we need to know the 'true' max, either to fudge util or to fudge capacity. And I'm not sure we can know in some of these cases :/ And while Vincent's patches might have been inspired by another problem, they do have the effect of always allowing util to go to 1, which is nice for this.