Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1192859pxb; Fri, 21 Jan 2022 11:56:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6w3sn+Ha2V4Ly+hARCWN3RL/PuT4QuNi3rJOCsnlRTJUcQ/Frbw1U04ETn13Xsc1Hxh3C X-Received: by 2002:a17:902:c102:b0:14b:7fc:2660 with SMTP id 2-20020a170902c10200b0014b07fc2660mr5047602pli.92.1642795011865; Fri, 21 Jan 2022 11:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795011; cv=none; d=google.com; s=arc-20160816; b=xVV2tBslsuKKIRLMYWuSXePUc0P1YRkYj3kR/RpPscK6K8kwU6EE725JU8W7MiKI/1 yahiOnz7TqDtXV8u92b5X3Ol68DpLNcz993W3tVDUK4wtYCMkg8cE2j+pHvmaYpqjMGb KnRWsNlQ+AotLd/iTIbHmyribQkKdNIJlbY50FCGNcfcLTfLw6KjbvWj+Do4FSa0UTq3 AjK9igrtyPNLtS/EBrUT1qpwwfAjDdpGRopXj9QRxA57sCmVNRfDAkp5G5z6izWC4AH5 ahDOr2WQSdrSAdhaQa17Ae21FDBrSliSD7WMtPtjCC2fMeYHfc+JyR50PjWbP1Gg12Qn WxTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qhZUjSqSQkfhZLoYn5e7bhCr/SYhnGpXe4Qg5Zbv7IY=; b=fohOR7n1GLwteatxjBYnbOEDQh/maB05N7iifobdPbHV4lgQk9L1jMpXnMiBpk2wT9 1AiAdNUvkDDz8ICMwwf19ctvPnLnD1kPZULY3DT28IeHO7kWK3SZmM2DoR06ERKEIQ33 fD4en9l1GxF5jjO5ZcSCdOJopnb5F1mAugpaNNAyCZCVKT9h4AqkWqohmMDGT3VK+YJZ gEd0bo3e3ju07HzrVKtP+nsJlcDFk2q81yNL45zbGCbi3GzpwQkCnbBpw4senFfBqfcH ALvrfw0VH4gfldi1UKmDyrLwG7vvzPltP3LF2/zta3Jp2b7GFjLSuszOfQtc5HHIiMrV ekSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=KcjIc7Fy; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si12316947pjg.92.2022.01.21.11.56.39; Fri, 21 Jan 2022 11:56:51 -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=@google.com header.s=20210112 header.b=KcjIc7Fy; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356689AbiASSZM (ORCPT + 99 others); Wed, 19 Jan 2022 13:25:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356718AbiASSZK (ORCPT ); Wed, 19 Jan 2022 13:25:10 -0500 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08B11C061574 for ; Wed, 19 Jan 2022 10:25:10 -0800 (PST) Received: by mail-yb1-xb30.google.com with SMTP id c6so10114713ybk.3 for ; Wed, 19 Jan 2022 10:25:10 -0800 (PST) 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; bh=qhZUjSqSQkfhZLoYn5e7bhCr/SYhnGpXe4Qg5Zbv7IY=; b=KcjIc7Fy7AyXlztjvbf4TXqfnkrciDNXOMtpFzvtF3QorWdBdCJcZNxXQir+xqCgM/ vhWvU4puaDNNHZIf8tBZKxSuEwQBcTPRaILKpqqMlp0EO0agvObWm58HneQ/F52afxd+ 6yk9sB6uJI4kgfYa9xXzLl1IhZoi8Xr/g+mGUrRUzF3gyQ9ppLz97Lc6tXjX5m/whFY+ ECRNg2HIhE2665MiG3OSXjnIgdouodrSJyK4mwNzw4KfTZvN2jBb+EzlnKNLhNJrQzDp 62ZPButvLcfnCM8PWDujKudROIKqyKSbycC36/wmwUvk0cT2ZnfhnIf8hQfmUytuiq2F Dvuw== 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; bh=qhZUjSqSQkfhZLoYn5e7bhCr/SYhnGpXe4Qg5Zbv7IY=; b=WRvdQqpmHrlLy29w6diQ6uIixp+9mJj76QcA/WuqitbIXoDrdQHPDV570xwKqaWYiX T2VFFenJzSfa51OXj3F8FUW+6oPikX1aPPNJ4qN0kU8YGXCa2ppfe9sD1BBOPP5PyNSh KskWeP81kWdBBvo9W9WnxQiuJqP7RhTZT9FkdnOVFyoCL/RpwURgTgeXg6o4gKCTTqdJ BcNRqylT8QPj0x51ZK3a7/fF9pJ7uCfrwnFMpGzOganx3Yc1mvlRPw4fw0PcBsNBfaXt oxTVUw0fHx17OTwoO67SyQBk9xFR2TUJmcm+1NOla0b4035FonGMEuDdUGSLrm/ZgGwJ 80fw== X-Gm-Message-State: AOAM5337LDT6Bd5QCqEujlSIwmZBm9PHMehn4darVJRLz507VyrGr+nU Grf518nRHdP6qElWxHUknLl6cV+PmheHUUAixys4yA== X-Received: by 2002:a5b:586:: with SMTP id l6mr28353208ybp.322.1642616709101; Wed, 19 Jan 2022 10:25:09 -0800 (PST) MIME-Version: 1.0 References: <20220115010622.3185921-1-hridya@google.com> <20220115010622.3185921-3-hridya@google.com> In-Reply-To: From: Hridya Valsaraju Date: Wed, 19 Jan 2022 10:24:33 -0800 Message-ID: Subject: Re: [RFC 2/6] cgroup: gpu: Add a cgroup controller for allocator attribution of GPU memory To: Randy Dunlap Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , 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, Kenny.Ho@amd.com, daniels@collabora.com, kaleshsingh@google.com, tjmercier@google.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 19, 2022 at 7:40 AM Randy Dunlap wrote: > > 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, sounds good! Will fix it in the next version! > > > thanks. > > -- > ~Randy