Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp112614rwr; Wed, 3 May 2023 23:36:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6FDrGoNclNudLYGuIPL07Q6Ptl90WaQvzO3ufVR2LgAj4o6d0n7NqM9VurVr/StEfA/u1v X-Received: by 2002:a17:90a:7189:b0:24e:2762:fc33 with SMTP id i9-20020a17090a718900b0024e2762fc33mr923068pjk.48.1683182192400; Wed, 03 May 2023 23:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683182192; cv=none; d=google.com; s=arc-20160816; b=ZryfNLx+gxstchEtXaWuWNuTD2r5HejfCGxgI+90eaggro6ymggoTIfHApj0p4jnY6 7Dsbff0cT6FbP1dSGHTHfPL6FfSAjT2Yoo5dWRe6OjdexowQUuujzquT0x4T5R1qP8fA XJiXMPAByplovG2smgjbzbnqp8I1ykyaMcz71JMlNvQSTCDIl9ITkWYA8aZO/wrLrKTx AkomFMRCJd71RQN8FLlamlGb32pQZz/UdK7n0wLKZFdcBj9Dzfy3rouOIs6uiZE1aB0L QzhOmUBrK3B1rMZJgtvsjICqOIk0AO7YLStkmZkh0NQ9XNP2VSl7vFACe4kRYKzUjnte a9nQ== 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=j16Bh52nzyJO9VnirYe2+W5J9gGnfrNEg+DqgmtGTK4=; b=xJJtsxWukpQDST0Odz6yq+9Qn6A7laf7uIlwuc7wiJYIngQ6j/9F82+zJs0/uYbzYf O4HXLJHfKiTJ4teN90mhq92OtjVhgkIHBxpqvs3ZuursUIFXtzXcg49bLtfTfX7Y2Gm+ yFWLw1M7GWI4REXfDj8ZKQJaGmy+eWPf+fUWaijuTNVuvL5uLtzvWx/trslV0mYHk0PR R+DTqvYSgVuTliZbpPVE5Rdn4aTYkAfbcOoZThe+XqoibVqlWm9dHb0nFOpLKT1t0m6B YqJX1nOOR+Y9r4v07I32bDo5HAdziE/VBpKjFPgiZknJPPVI50uc1Ts18oAbQeR0KLY7 2ISw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=o39RDzof; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a17090a639600b00247304b4a27si14822741pjj.173.2023.05.03.23.36.20; Wed, 03 May 2023 23:36:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=o39RDzof; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbjEDGYk (ORCPT + 99 others); Thu, 4 May 2023 02:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbjEDGYi (ORCPT ); Thu, 4 May 2023 02:24:38 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 036BE26BE; Wed, 3 May 2023 23:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=j16Bh52nzyJO9VnirYe2+W5J9gGnfrNEg+DqgmtGTK4=; b=o39RDzof6y4haLdWTv/dU4Ezo1 00lekUFPh1bpwrIBOFfrFQtxvnmNYxA+cPAl3zBtS5pnDMARzaEnn+hmjQGcfjyrMrafdnp56iHaB jCU4qImPx1pTrvi3mVZQIVDHBvy/8bmRNgI3TQa0qOK3AH3GMSynPqiy7ueCFYCjgW3u/AOhW/SHl 1KCW0DPlxbZcmJSFtRGXN2sPMGjdh3wyyP68Ly28Da3f6DAp1AKKXuyDvLWV6vq75DXF4J5eOyH+r GCcSGtu4wI3BzOk2U/Yz1J2rnxpbodfdOOwaOT/rg8p0YjccZWbaRM/gyWRIqIutipwdiXuRhyIi2 hMejCuGA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1puSNk-001ebz-1p; Thu, 04 May 2023 06:24:03 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A7CF9301326; Thu, 4 May 2023 08:23:59 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8ACBF24080DDC; Thu, 4 May 2023 08:23:59 +0200 (CEST) Date: Thu, 4 May 2023 08:23:59 +0200 From: Peter Zijlstra To: Juri Lelli Cc: Ingo Molnar , Qais Yousef , Waiman Long , Tejun Heo , Zefan Li , Johannes Weiner , Hao Luo , Dietmar Eggemann , Steven Rostedt , linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com, mathieu.poirier@linaro.org, cgroups@vger.kernel.org, Vincent Guittot , Wei Wang , Rick Yiu , Quentin Perret , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sudeep Holla Subject: Re: [PATCH v2 5/6] sched/deadline: Create DL BW alloc, free & check overflow interface Message-ID: <20230504062359.GE1734100@hirez.programming.kicks-ass.net> References: <20230503072228.115707-1-juri.lelli@redhat.com> <20230503072228.115707-6-juri.lelli@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230503072228.115707-6-juri.lelli@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 03, 2023 at 09:22:27AM +0200, Juri Lelli wrote: > From: Dietmar Eggemann > > Rework the existing dl_cpu_busy() interface which offers DL BW overflow > checking and per-task DL BW allocation. > > Add dl_bw_free() as an interface to be able to free DL BW. > It will be used to allow freeing of the DL BW request done during > cpuset_can_attach() in case multiple controllers are attached to the > cgroup next to the cpuset controller and one of the non-cpuset > can_attach() fails. > > dl_bw_alloc() (and dl_bw_free()) now take a `u64 dl_bw` parameter > instead of `struct task_struct *p` used in dl_cpu_busy(). This allows > to allocate DL BW for a set of tasks too rater than only for a single > task. > Changlog fails the 'why' test.