From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69543C433F5 for ; Thu, 5 May 2022 11:29:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357183AbiEELcy (ORCPT ); Thu, 5 May 2022 07:32:54 -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) 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