Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4792776iob; Mon, 9 May 2022 01:35:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4iam7ew2ogxJUqIU9UU/63qFJSoizefD4L/59dSfyIZYqThe8oNbLW0cMaOw7pz0i7iSU X-Received: by 2002:a17:90a:e510:b0:1d8:39b3:280b with SMTP id t16-20020a17090ae51000b001d839b3280bmr25693917pjy.142.1652085307810; Mon, 09 May 2022 01:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652085307; cv=none; d=google.com; s=arc-20160816; b=p1JgHcFAkNcenTfRG7wax7socmDrR0uoUwNHeAe5Uj0TOyzNxHzU+aXPhh4L5DkFVO S6RlJKDAf8hqIWxiYuQlLBkQKJSaoODpund6m/i3vAcjL8zfaGtu4Ip7nlukHF7Zb4jS M8HV98h2gM2lqlBZJn3cNlIh3k5ZI+LMoN/c1WJzdjoJh7rVofjaGzKSrw1jV+RNz8pz 05fHChP874m815ctjwwAgon9lmr1pygSsKrTlrqN5T0FUl91VUfjUNldqTz+LI/x+5w8 yK2wtNSUJ9OTwEQDRef213hRHZr8fLrSMYAb3y1UbVHiVH+XE5eoEkK0uzyBeie0/+RK Hg0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=uWiEhWmhMDzG0ZpwCc+KvFHmta+dLhGoAJnxSBDiro8=; b=DRORKnKFgvuWLhZQNyg+Vh/55OUXryxdGG1SGbQQhOeH/pd772m1BrqilYC39RhloU JxbVnxOwuQoLib2wCRd/rAmsGrXlM7DPo5LVR/AE6teg7hp0dcztggmj20z+E3CHzkyM LNSy6m1YiPSkB8cB9QxkWwh8/b1MG9SDy88ymIYowiiylWg0aOnLe5YgAveEweFmoPNf CcD2P4xqjFycH3hS/OG6tO9cKGgt5bzQeIlrNbU2qxQAj1wpa6r59w2e/3LDJKuz+9k3 4IvZGR9xbR7MzKDVPFBEifRVg9W6VyneKIiryqIe0L4mhx6EwC4eodWxP3DhUxIxl+jP cZ5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=CaBQ1UXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l1-20020a170902ec0100b0015f15453270si2681032pld.516.2022.05.09.01.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:35:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=CaBQ1UXw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D858F1A448E; Mon, 9 May 2022 01:18:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386915AbiEFAA0 (ORCPT + 99 others); Thu, 5 May 2022 20:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386990AbiEFAAY (ORCPT ); Thu, 5 May 2022 20:00:24 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F30EF47045 for ; Thu, 5 May 2022 16:56:42 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id p18so6937881edr.7 for ; Thu, 05 May 2022 16:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=uWiEhWmhMDzG0ZpwCc+KvFHmta+dLhGoAJnxSBDiro8=; b=CaBQ1UXw8e392aHxUqO7YzvZNbVO299KOlkxDA3WGrY9BWShRdfHWTf0i0Tdsc0Z4x Zgp4Gq8IkAZ61hhLujTNwr7ZXt3+q6wrr7TWIsSa3R0i/tELL2+yAzMh5esa0TCqwJjl F/5g78AXRbrvZs5gyHBEnx6Uj/Y4QIjKYxUmn38VJVxgSqmyUH1by4gck/j5PJ+AjqT+ BCOGzPJ0WCkgbOLhtqewqTMnmy5zyvK3ubf+kCmfpaL0Fm6d4f06nN2nMq53FagcwD13 1/6oImedxy6bVsDtMqoGLQAS79JNnWcFY/mAdKcBZe7DOuOn/8sY8HI2NP6NDwRdgjvN Jsrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uWiEhWmhMDzG0ZpwCc+KvFHmta+dLhGoAJnxSBDiro8=; b=PXkhEa6V57N11ERJ+4iVaVJiOUtoGBP/MzILVFj8zwTvk1qdbTiqiIkeejsuk1KqJv kVLV5WpkUslgIqe8F/jDqXqfoKjzk+uSkKA71jsP4c9XYS0puRm5ezoPxJK0Zk4idLqJ sk/zIYj4X4k/ZDd96PTqDRy+woZX3DOLjSgmxkJIzs+6etgkSXZhqQvIYbjdq1gR+8Lk 2e89o8hXhodxlUD5tT8KwzUQLABFBV2RLldlJyfLqOFc44vWypFebum1phyM7HewpUKX xhcLAFQAV0cLPe0Bz3JFx2wRSeWFTRHB5zZA6aUdZ6RLJ26kwaU5iKe7McVbDONwFP84 O6jw== X-Gm-Message-State: AOAM531RmbW4gVt1uBe9cmfLdXV0JBK1LXubbUBfREb0LwkMn8yD7vDa +ReGakOIJ1hxefe6QsSKPFrcFUwKK2/SkE2DDARzeQ== X-Received: by 2002:a05:6402:2397:b0:426:4967:8574 with SMTP id j23-20020a056402239700b0042649678574mr744975eda.197.1651795001436; Thu, 05 May 2022 16:56:41 -0700 (PDT) MIME-Version: 1.0 References: <20220502231944.3891435-1-tjmercier@google.com> <20220502231944.3891435-2-tjmercier@google.com> <20220504121052.GA24172@blackbody.suse.cz> <20220505112908.GC10890@blackbody.suse.cz> In-Reply-To: <20220505112908.GC10890@blackbody.suse.cz> From: "T.J. Mercier" Date: Thu, 5 May 2022 16:56:30 -0700 Message-ID: Subject: Re: [PATCH v6 1/6] gpu: rfc: Proposal for a GPU cgroup controller To: =?UTF-8?Q?Michal_Koutn=C3=BD?= Cc: Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet , Daniel Vetter , Hridya Valsaraju , =?UTF-8?Q?Christian_K=C3=B6nig?= , John Stultz , Todd Kjos , Carlos Llamas , Suren Baghdasaryan , Kalesh Singh , Kenny.Ho@amd.com, Shuah Khan , kernel-team@android.com, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Thu, May 5, 2022 at 4:29 AM Michal Koutn=C3=BD wrote: > > On Wed, May 04, 2022 at 10:16:50AM -0700, "T.J. Mercier" wrote: > > However the only names that would result from this series are the > > names of the dma-buf heaps, with "-heap" appended. So they are > > predictable from the /dev/dma_heap/* names, and only the system and > > cma heaps currently exist upstream. > > It's not so important with the read-only stats currently posted (a > crafted sysfs file with these names would be an overlikill)... > > > > > For other future uses of this controller I thought we were headed in > > the direction of "standardized" names which would be > > predefined/hardcoded and documented, so these names wouldn't really > > need to be made available to a user at runtime. > > https://lore.kernel.org/lkml/CABdmKX3gTAohaOwkNccGrQyXN9tzT-oEVibO5ZPF+= eP+Vq=3DAOg@mail.gmail.com/ > > (Ah, I see.) > > ...but if writers (limits) are envisioned, the keys should represent > something that the user can derive/construct from available info -- e.g. > the documentation. > > OK, so I understand current form just presents some statistics. > Yup, thanks for taking a look. > Michal