Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4311158pxu; Tue, 20 Oct 2020 13:42:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUiATUg3PYGgQQwsTnh+4fSK5a2UPyjF61m5Fj1AO19TP7W/kRUIw0Ku2pZ5sN0ztedinF X-Received: by 2002:a17:906:3a8c:: with SMTP id y12mr4768878ejd.531.1603226527238; Tue, 20 Oct 2020 13:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603226527; cv=none; d=google.com; s=arc-20160816; b=CFlEgjmIWLAvjFkxpfme81b2lUNMOFPm8k6SmUP6a2LV9VpQPt+2wPZ18pwBZwNQ8P 9W/g7WOtSL3pbimhNfaYAx83YCCvlahY5wf2GuMyT13UyTk03zFKGdZrDuuA3VTOb7Bs BTVo3M+W1OBDUNH4Qm+C3U7Drq5YLFyD/+ELx3i5WrIw43+n7Yg00sGAIsPOoMi+A78/ r9k5Fr2pIHA7pfqmWzPFS/JWp5O34pRW/y2IFDUdT6wUSoPB0EXM8ZDzjpAtJHDjH411 r++9FLfb9gEllqAnZ7XmcDmAso+hAYsgRggRf87w2D1oU4aLD8SY3YlYAghoADryRtYW fWyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PobQ6/OralND/PItgqeZ+vTJb9YCELFFt9/y8aSEzvE=; b=ucBODTjwzjwSXiZp7JTHEvwgr3cpD52ElS4iFxbOho1yKYXPEW02cPbF0Z55VPA7M9 5GCVxO4m6aJDFFTsCpTWaO7B1A6Ne8VPkn3Z0KHBmMJqzcY8H4gB4PirOb8SYvke4U0N QrQrxuDQwjBuZysSzyjnvK3NJeHr5EGujZPbQC13oioksf027RITn2+mMoKPvjUfVOS1 4fGwHBeik73e4ZoKjjTpZuYfi8QUIjT+voI7FWQkl9lOTdqecNKGO3UVNxhlSKe7ICGT 5O4dDw5I5cZ5bXqg097Kn15wsmakU2w4qlCOB3zZtTqMDvYlgUq7xN6gLY8RpD+E0Ok3 Bicw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SoiRekgr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si2209094ejf.257.2020.10.20.13.41.44; Tue, 20 Oct 2020 13:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SoiRekgr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727832AbgJTHhX (ORCPT + 99 others); Tue, 20 Oct 2020 03:37:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbgJTHhX (ORCPT ); Tue, 20 Oct 2020 03:37:23 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74356C061755 for ; Tue, 20 Oct 2020 00:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=PobQ6/OralND/PItgqeZ+vTJb9YCELFFt9/y8aSEzvE=; b=SoiRekgrQfRMXnz6GdKxEVNY2Q 7muAggzNTEW5n5qOBsj8ekbOp/hjObkNJ3c/4o03cyU4cCDMQrU4K7tN/IQl7tc0DqyAOc6XjPv7O dZ/KlaE5f5XVKAB6h5ttCNHZVHt/KkN7mHrXW9JVeVLeKwWXpJFEiY7wj6XR5+7bAD0Ke+TG5kqMX rPrImr9mwukAAdBIXjba6bFidk3KEGocM2SIr+IkqX/mHwsrCRqd0RpWma318LW+PRK9/3chrh9xg tfucMElqIMNnClVwk00w4BSSu76BZPn0LqCMtjlQ+m0FSK6n0TNMc7HtwXk+YEwkCDEyvfTawz0+S 4+FkldHw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUmCl-0003vd-4u; Tue, 20 Oct 2020 07:37:11 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 60FF53012C3; Tue, 20 Oct 2020 09:37:10 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 29F7C2B785030; Tue, 20 Oct 2020 09:37:10 +0200 (CEST) Date: Tue, 20 Oct 2020 09:37:10 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/2] sched/cpupri: Add CPUPRI_HIGHER Message-ID: <20201020073710.GZ2611@hirez.programming.kicks-ass.net> References: <20200922083934.19275-1-dietmar.eggemann@arm.com> <20201014195437.GD2974@worktop.programming.kicks-ass.net> <17c8a9b5-b63a-1a1a-f11b-5e00c2a6ad34@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17c8a9b5-b63a-1a1a-f11b-5e00c2a6ad34@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 19, 2020 at 04:15:01PM +0200, Dietmar Eggemann wrote: > On 14/10/2020 21:54, Peter Zijlstra wrote: > > > > Add CPUPRI_HIGHER above the RT99 priority to denote the CPU is in use > > by higher priority tasks (specifically deadline). > > sugov:X already triggers this now on our !fast-switching devices running > schedutil. Right, that would also be a nice test-case for: > > XXX: we should probably drive PUSH-PULL from cpupri, that would > > automagically result in an RT-PUSH when DL sets cpupri to CPUPRI_HIGHER. This, once we get there.. > > @@ -54,6 +56,10 @@ static int convert_prio(int prio) > > The BUG_ON could be tightened: > > - BUG_ON(prio >= MAX_PRIO); > + BUG_ON(prio > MAX_RT_PRIO); > Maybe I've not had enough wake-up juice, but I can't seem to locate this. > > case MAX_RT_PRIO-1: > > cpupri = CPUPRI_NORMAL; /* 0 */ > > break; > > + > > + case MAX_RT_PRIO: > > + cpupri = CPUPRI_HIGHER; /* 100 */ > > + break; > > } > > > > return cpupri; > > Just saw that the comment for cpupri_set() needs changing: > > @@ -205,7 +208,7 @@ int cpupri_find_fitness(struct cpupri *cp, struct > task_struct *p, > * cpupri_set - update the CPU priority setting > * @cp: The cpupri context > * @cpu: The target CPU > - * @newpri: The priority (INVALID-RT99) to assign to this CPU > + * @newpri: The priority (INVALID-RT1-RT99-NORMAL-HIGHER) to assign to > this CPU I made that: + * @newpri: The priority (INVALID,NORMAL,RT1-RT99,HIGHER) to assign to this CPU > > Reviewed-by: Dietmar Eggemann Thanks!