Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1181636pxb; Fri, 21 Jan 2022 11:38:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu9Ei/U3QguX8mhILkIelEoPeJ3kOk6cMC77i1w69TN32W0mMrILFEyhBhqQt++KSdG95w X-Received: by 2002:a17:902:d650:b0:149:c6b7:c02d with SMTP id y16-20020a170902d65000b00149c6b7c02dmr5196062plh.30.1642793922536; Fri, 21 Jan 2022 11:38:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642793922; cv=none; d=google.com; s=arc-20160816; b=m1Hd5g43x3ODGXiaigXKAeGkiuZm3RicWZ3z/QBkcZMEbTz2I6vDJndZsqjVDBJ5nl rE2VcXnJwcnA0XCHNSF66C1zBM8pZHLmaZriHzb4XqTykv/83T+GMgt8VqReRjLQdqfL iiE0foPzrAcQ8VZHFmCxWUfT8bMcxBQKHryR6F8TBjedzH8W2RqBW0Hr7ZXsh2FO3TkX 26bVgRoEQ0ArW136wkbquiBmywau4vx0vTU/qBZBOqBfVyNjBu7OOg46iF/b4ppZ/8WW l4PBxRZdofURH/BlRC6m/Dr09ECzUBjm9ROH+rMfM6MSkRw8EnWtdEd3PzEZ8RgAqocC iXhg== 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=pxPDysxsLzRS9m3h8MM0+hZnUy5KDuxOZAnHkZ+LiUU=; b=NVyjPFsIsOm4KZwzCRigsSAO3I9VojqjhwdhCyUHivnwU49Vm2DP/OuCVQY+PdoDSL jkE7LSlJPWnx/t2bYwgQ5A5/Rpz6EGnUutmdcIz98FslcAMV9fk4H8KeNfgcLdyh0v2s mjXuqFV4f3exo38LkDlvW2/ayQrbKnR/MtMGnWlgl3V3mbB8tCV+EHnCNYJtmcgurgBA lKwfxF6JMOjeni0uXMCC2D86pAcG21A517rpJgVej9DStScC2BO4GekqNPNCIZB3KHHR 6XM6j7SmhseyAkBVX1Zim9+6KZnA2Ncz9Gw4jij8Ts9LcgLqLAKhDqStPqr/Td/TbaAr NWbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=P6ZwT2AK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si6977619pgm.587.2022.01.21.11.38.30; Fri, 21 Jan 2022 11:38:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=P6ZwT2AK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355843AbiASPld (ORCPT + 99 others); Wed, 19 Jan 2022 10:41:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355529AbiASPla (ORCPT ); Wed, 19 Jan 2022 10:41:30 -0500 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 3BC3BC061574; Wed, 19 Jan 2022 07:41:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=pxPDysxsLzRS9m3h8MM0+hZnUy5KDuxOZAnHkZ+LiUU=; b=P6ZwT2AKXUwgwui+4YXZ3+S5JB aHNGnZbcF7P0JjQ2N9a3uww5zTv3szmJXvjflxI/R9cm4iHHtjkTZlZZnN7sPr7B+1C6nCW3p0fqX DYFOssgLzTGUjKwS6687wmMBof+9C3nc7L2X+Ie0WIui7iCrANpuwmi9xVW2ufFYlQIuY4UQusx9I aK7D6KPidQ0p0zcs86E7CjnpH2pWzCpNCPEf30CwVb0ikL3hGDBb+Iqwm4CoClWea/Kn28LragZYK sr7sXjUvS/ffkG8+oNECDa6fOeeafsWYlPwh6Kmn96xrLnm5RgXLjTPl+64wXXpx/WxZoNk1VVkXg ++56dLGA==; Received: from [2601:1c0:6280:3f0::aa0b] by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAD4n-0026rA-0b; Wed, 19 Jan 2022 15:40:45 +0000 Message-ID: Date: Wed, 19 Jan 2022 07:40:30 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [RFC 2/6] cgroup: gpu: Add a cgroup controller for allocator attribution of GPU memory Content-Language: en-US To: Hridya Valsaraju , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Greg Kroah-Hartman , =?UTF-8?Q?Arve_Hj=c3=b8nnev=c3=a5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Suren Baghdasaryan , Sumit Semwal , Benjamin Gaignard , Liam Mark , Laura Abbott , Brian Starkey , John Stultz , =?UTF-8?Q?Christian_K=c3=b6nig?= , Tejun Heo , Zefan Li , Johannes Weiner , Dave Airlie , Rodrigo Vivi , Matthew Auld , Matthew Brost , Li Li , Marco Ballesio , Hang Lu , Wedson Almeida Filho , Masahiro Yamada , Andrew Morton , Nathan Chancellor , Kees Cook , Nick Desaulniers , Miguel Ojeda , Vipin Sharma , Chris Down , Daniel Borkmann , Vlastimil Babka , Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, cgroups@vger.kernel.org Cc: Kenny.Ho@amd.com, daniels@collabora.com, kaleshsingh@google.com, tjmercier@google.com References: <20220115010622.3185921-1-hridya@google.com> <20220115010622.3185921-3-hridya@google.com> From: Randy Dunlap In-Reply-To: <20220115010622.3185921-3-hridya@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi-- On 1/14/22 17:06, Hridya Valsaraju wrote: > diff --git a/init/Kconfig b/init/Kconfig > index cd23faa163d1..408910b21387 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -990,6 +990,13 @@ config BLK_CGROUP > > See Documentation/admin-guide/cgroup-v1/blkio-controller.rst for more information. > > +config CGROUP_GPU > + bool "gpu cgroup controller (EXPERIMENTAL)" > + select PAGE_COUNTER > + help > + Provides accounting and limit setting for memory allocations by the GPU > + and GPU-related subsystems. Please follow coding-style for Kconfig files: (from Documentation/process/coding-style.rst, section 10): For all of the Kconfig* configuration files throughout the source tree, the indentation is somewhat different. Lines under a ``config`` definition are indented with one tab, while help text is indented an additional two spaces. thanks. -- ~Randy