Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1937827iob; Thu, 5 May 2022 11:17:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPX26mdTBYuOOHthH5VXn/G9SIwwJVF07ug47fkGBdV+ExbnPzQcZrMkVrcx0WsEtvaCOr X-Received: by 2002:a17:902:fe01:b0:15e:e178:e2e3 with SMTP id g1-20020a170902fe0100b0015ee178e2e3mr1881125plj.40.1651774647187; Thu, 05 May 2022 11:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651774647; cv=none; d=google.com; s=arc-20160816; b=xkqPyArMWzarIn1O2g1/dagO4H55XIFl0v77Zwgr1NYJTfgQbFyxvXw4Sl6FIKaH3f eWEp4sC2CUJR7NDibewKSVEGC6rbMnUCJVU/Kr8pqSC/tSLaG6F2YfCafAyDCfN7e300 mwtM/gG4bDlV/XdnNUWE2fd0CsuO/CQho26sf/XHIP+caHqoduboN00RRsbqz/On6q0J EgmGbb8go5lGFLPfSUqfuxePsMCLQ1LaDeVxCtxBVEVdOfeTSe9NvnVICEI5BOKg0A/F Y7pKgSEhjk0jU9VIxKr0Dr+LMAHNy/ULp5dRE7q123r+CcwsziCPRymgK6YrXNraNevV Js8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QztzfHPTmSF8udy99M+oiNjmEJKR+vOVp0C/C48CDH0=; b=tFmyGvvJHjREt5HgA39rsY3IORQNLcH1pd0uMZmO61ECn7ZdhUc0spn1SwoE3FXdWr QMjS74W1Y3JAluuEvt7obXPO1hy+VmeE/jryWnCxMUrxVx8bvp/4IeIhR6bkMRdiB/aP 8YBmEX0NHijvirSAzMxm5bY/jPEoiPYJXtNFgYM4ulgYeGaRzmN1jonx9iNe8t13CIDO I86pVE8FLLNiYRwuBcuiO+1RcIAXMxPh/QBaNbwCx/HUcRJ2IHB1Q4xHaP1l+3qTTsUM +WfP+X9w986FLWMR0smzeMXO0rJ61yDW32Bf0cYZbDQmWFc5xsbq+eKhErPK+VkiMzws zwNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="fVa9/jQV"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a63cc41000000b003c5c0d482b6si2269047pgi.308.2022.05.05.11.17.09; Thu, 05 May 2022 11:17:27 -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=@suse.com header.s=susede1 header.b="fVa9/jQV"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357101AbiEELcx (ORCPT + 99 others); Thu, 5 May 2022 07:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231937AbiEELcu (ORCPT ); Thu, 5 May 2022 07:32:50 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44D7C4CD46; Thu, 5 May 2022 04:29:11 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E7A93218EF; Thu, 5 May 2022 11:29:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1651750149; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QztzfHPTmSF8udy99M+oiNjmEJKR+vOVp0C/C48CDH0=; b=fVa9/jQVA7FxoB2Yvgew58chqzIPQcGNV6v5gZHvfXRqjnza7FHT+mNpST0Y3E8/sgE4i4 kOBTu5dWEezH/1d+DmxP/Q9zc4M+fSwEPDDv3OezauwSF7Lr1avS55OVFjZ3eSNxM2MBzB K9wQFZaM4ALSnkcoClgDJbFqZmtQnQY= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8EAE713B11; Thu, 5 May 2022 11:29:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ykO6IQW1c2LcZQAAMHmgww (envelope-from ); Thu, 05 May 2022 11:29:09 +0000 Date: Thu, 5 May 2022 13:29:08 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: "T.J. Mercier" Cc: Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet , Daniel Vetter , Hridya Valsaraju , Christian =?iso-8859-1?Q?K=F6nig?= , 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 Subject: Re: [PATCH v6 1/6] gpu: rfc: Proposal for a GPU cgroup controller Message-ID: <20220505112908.GC10890@blackbody.suse.cz> References: <20220502231944.3891435-1-tjmercier@google.com> <20220502231944.3891435-2-tjmercier@google.com> <20220504121052.GA24172@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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_PASS,T_SCC_BODY_TEXT_LINE 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 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=AOg@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. Michal