Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1159802rwr; Wed, 3 May 2023 10:56:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78Nq4pArVyKHST4+f0SRzxKnX8R/Rg2u0spdr2xaDRYF6YDXlkuPH8BwhxaleLlmtW1mEw X-Received: by 2002:a17:902:70c6:b0:1a6:bb04:a020 with SMTP id l6-20020a17090270c600b001a6bb04a020mr904284plt.46.1683136565327; Wed, 03 May 2023 10:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683136565; cv=none; d=google.com; s=arc-20160816; b=w03AdNBkeFb/X3zfuJf3tncuz/4m1XTVO6yKW7iJfcTd+8I5HU/12bZ+oEBJAIob/9 ztOiK+2yvwkQmANl/cMojqfnqoCMHPMeM+jI35lA648pkop3xqZfY2GQSD9MDtPytQBN 69owGDvSKo1Z71dWhV0+gvoT6e3EnvFzeUU3YyXuNC/y7UJf1eGd3qA0lh762/ZmH3lG iDo5QgWopoxy1i45gC6aJ32gU8qpZ0Z3dPbTWd8ioWFadwSXZCGQgpi0s6sOb4gv9HYl yCiKGpvSVcWjC2EbQzg/qbWaaJfagxGLOvRCU4yI/Hk25mgwQXo9I7Us24dEI9rKVdHX bK4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=i+1daImuCgAFQ62zz1n0R8N9/43jAwavxjwtDs1QPpw=; b=FB+hwma/8qkCv7GoPwJb4cxkZzMfPCbcnEgkOybGlr5L5hPKjw4IXNzcwJx6axixQM COiEebplfcZM062VG5eHiwpZsb15/v/2Wc2s0bdUru7XFjLb3bmxe6/nFJDZgg7sQpks 4uH02AMW57OSwsl4HkIU1jDUM85cAaCLKQJj5eEwb+je78mVtzTEeLzeWVLGfLQoFyXZ OLAZzCYYeEntwoyCb9mpXkvqJZy5BO/6eF3vW1Urg4P7DF0FQ2+pTktqYsScGejtxtA6 yhO4AEYVomqJTpCAl+tZTOMU6/97bd2AP1mRwqRomg66qOwgSm/lKLFEm2QHf11NqrX6 Rd6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RmqhTRwR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji7-20020a170903324700b001ab147e4538si3330241plb.410.2023.05.03.10.55.51; Wed, 03 May 2023 10:56:05 -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=@redhat.com header.s=mimecast20190719 header.b=RmqhTRwR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbjECRqd (ORCPT + 99 others); Wed, 3 May 2023 13:46:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjECRqc (ORCPT ); Wed, 3 May 2023 13:46:32 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C1D36EB8 for ; Wed, 3 May 2023 10:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683135933; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i+1daImuCgAFQ62zz1n0R8N9/43jAwavxjwtDs1QPpw=; b=RmqhTRwRssJDm6ACjAxpMJdeC2CCHnmfEcusp3P16Qhh7BxtSm6JMRgPkvYyUDQGpoUZmF UUws5aG0JYHenR6DFW+tuLYjyVLSg0DSs4sUnOig+++W2xZv9K7tC90diLaRCl6BYaeEEO XxPvruQaS48O2wQM/Mh/Dx7EihWHN3E= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-271-7jHQmRNDOZ-W3uIAMepP2g-1; Wed, 03 May 2023 13:45:28 -0400 X-MC-Unique: 7jHQmRNDOZ-W3uIAMepP2g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2BCEA293248C; Wed, 3 May 2023 17:45:27 +0000 (UTC) Received: from [10.22.17.228] (unknown [10.22.17.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 117331121331; Wed, 3 May 2023 17:45:25 +0000 (UTC) Message-ID: <5a64fdd5-ee1a-7609-99a9-a8d1e282e393@redhat.com> Date: Wed, 3 May 2023 13:45:24 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 5/6] sched/deadline: Create DL BW alloc, free & check overflow interface Content-Language: en-US To: Juri Lelli , Peter Zijlstra , Ingo Molnar , Qais Yousef , Tejun Heo , Zefan Li , Johannes Weiner , Hao Luo Cc: 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 References: <20230503072228.115707-1-juri.lelli@redhat.com> <20230503072228.115707-6-juri.lelli@redhat.com> From: Waiman Long In-Reply-To: <20230503072228.115707-6-juri.lelli@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/3/23 03:22, 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 Typo: "rater" => "rather". Cheers, Longman