Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5118643imm; Tue, 19 Jun 2018 05:28:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJuXQEGwkgDPqjFAjKT0MvyjfQfNrCMuFR6fn/lTkUViYzvnM8K3BbzeD/tx5A/8vcWDgJz X-Received: by 2002:a63:7f4e:: with SMTP id p14-v6mr14658539pgn.27.1529411282744; Tue, 19 Jun 2018 05:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529411282; cv=none; d=google.com; s=arc-20160816; b=K1/S86EqUNQbEbFuRfG3oYqDEixYQzviVHKWYUPdoww0oVYJi/8+mUxfGnGIcNU1PU 042Li0h+jAyHVVxoZwV+37YsmJi8muNwaGi1n/oeg56Vp9zp6fRQ4loS2GKa17Em84gy 6MJBIYNNI0bWnotcuFkeIyy5QCuogtSskS/Q+81Ej1FCtttcgCa3KAvWde72qAvMWQZX HCgdZMxhUdA/++5dcVlzU8jm6ClezLFmn0SNYTDUirPqafSd/Jz+iHT4Nw9PTja8yJem RbkkBC+ANzyzS8xNS1SLoyyFkPMZPHkZtVL2CDovIuZNOKNY3w4ptzi361JCtJfmXqxA /0Cw== 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=2t6iHGlO4Kxxws9kBydDEMiZ99HbO5lrqA94nOVFCac=; b=yK7HQvswpFaWaue67VTeDU4jt5jwvBRnvgBuhfKT65cKPoHgnGUriV7ML1YT/jCytE UmIQJlxEBy2zfdpKxY0ZU/KH3ZLmwx4uBqh5tRRx8hPCJtc4eLXxz33OV1KvL5+JYiIh rrX7QNKfyZFjev3vDIuKGhNcqorkziaqNKZU3K99Kk7KOIQiSCOUngZ26S6d8+qXztyF +vxhVDg8oMfN2c+QFiujqk2bDynQ9sSpwyp/5dgsTq1ZlvXEBO5u9L1VQIQcpM9nuhVt gMpXpstCdEGdiIxne+CmYS4L74UaGlSMkO58/bB1T+JEWhg6er8fH77a5hi6CZZZwHqI kdMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=qWZ0vyrA; 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 d9-v6si19443908pli.382.2018.06.19.05.27.44; Tue, 19 Jun 2018 05:28:02 -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=qWZ0vyrA; 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 S965897AbeFSM04 (ORCPT + 99 others); Tue, 19 Jun 2018 08:26:56 -0400 Received: from merlin.infradead.org ([205.233.59.134]:41534 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964997AbeFSM0y (ORCPT ); Tue, 19 Jun 2018 08:26:54 -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=2t6iHGlO4Kxxws9kBydDEMiZ99HbO5lrqA94nOVFCac=; b=qWZ0vyrAA+p8jhGc2Ht0uj6nl T4e0UpSlLzaUCrzK7qWkeJQBQ8DwX9B2gN2pUkStLIrIAOoQT8U9jYlZtJjMNgZrBGKmUHemRJN1y jWi5ha7nTAhLN2pXWNNJp7iuMHI4m4R7dECIq8Cmn4Og/fBJVXjYev7vU2fcoe8hCu6mX/sR8ERaP xp4bgpPHeD0TD4+j2CFcBYnhO/50e43WuTY7IhAE10a4nPJ7Opc6ARb2iVHGL1fvSInEcmeQXrQS0 1ggmEaJasKfM+NTftXDbM7l6F4/BKxrBsC8tuB4CpqEFH1PVQ1V7uUXUJo0XU6t0V4p6nr89R0XoE 5VfRBS6TQ==; 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 1fVFiU-0000Zw-HK; Tue, 19 Jun 2018 12:26:35 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7BDD92029FA0E; Tue, 19 Jun 2018 14:26:32 +0200 (CEST) Date: Tue, 19 Jun 2018 14:26:32 +0200 From: Peter Zijlstra To: Quentin Perret Cc: rjw@rjwysocki.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mingo@redhat.com, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, chris.redpath@arm.com, patrick.bellasi@arm.com, valentin.schneider@arm.com, vincent.guittot@linaro.org, thara.gopinath@linaro.org, viresh.kumar@linaro.org, tkjos@google.com, joelaf@google.com, smuckle@google.com, adharmap@quicinc.com, skannan@quicinc.com, pkondeti@codeaurora.org, juri.lelli@redhat.com, edubezval@gmail.com, srinivas.pandruvada@linux.intel.com, currojerez@riseup.net, javi.merino@kernel.org Subject: Re: [RFC PATCH v3 05/10] sched/topology: Reference the Energy Model of CPUs when available Message-ID: <20180619122632.GS2458@hirez.programming.kicks-ass.net> References: <20180521142505.6522-1-quentin.perret@arm.com> <20180521142505.6522-6-quentin.perret@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180521142505.6522-6-quentin.perret@arm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 03:25:00PM +0100, Quentin Perret wrote: > In order to use EAS, the task scheduler has to know about the Energy > Model (EM) of the platform. This commit extends the scheduler topology > code to take references on the frequency domains objects of the EM > framework for all online CPUs. Hence, the availability of the EM for > those CPUs is guaranteed to the scheduler at runtime without further > checks in latency sensitive code paths (i.e. task wake-up). I'm confused by this patch,... what does it do? Why is em_cpu_get() (after you fix it) not sufficient?