Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6025537pxb; Mon, 14 Feb 2022 13:24:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbjeDP4eSHE0dv66Tq4yfFTWW5IJOp3lK8WeBdScX9JPj5KpnoXuKiQm2Twk9TIaX8UnBF X-Received: by 2002:a05:6a00:140e:: with SMTP id l14mr1030490pfu.23.1644873850471; Mon, 14 Feb 2022 13:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873850; cv=none; d=google.com; s=arc-20160816; b=U8w+Jpi/ma6WLmq2ZLVzeWXijeNfQ7VyEtYmmeLhKfueOf4xOnt8oxH5jKEVIlPa/a a75jxGqsgsa8LSWJuv1riS/2iRa6Q+PGvKZOSVYYafwqcKFSW0/IjrltkWpELm1e2Pcw SywzFj5vzMu/VPr1uJMbUzXMiLasaXMachRGzf4ORS77WlzXVkNMOuw39z64RPU7sWa7 TNrUE9Mv32Ly2b+LmIVcLMD7AKzTSMEnK9FEkuEPWofshcaxNEorp+hsblXW+hH23pXS FSM76wry81wXCWuxbuXKY1+C+N9ajj/X7DElfMHWi626SEp05hfOGJVy8HHQH1xQqUh1 q6vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=faMCUXgtmx+3AXg49JAI78UUXqy95249g9sm+/df9gg=; b=fio7GIKvgmlXABFjlEGJ6sn1RiSb/9bHVzFh+q12x32R2mJqo8M9wN6IOJzewXD/Y4 kBJ60nHSvxhC9DIInYEiOu9etShKSKVaZ+C3H8YpZxYRVwsVZAPmxQ7880eq1LWgvnY9 hYZM0sZQhx1lXmqzYwRQIhXRVzsXoOqXwuDgCMsT0WHPa31t1qYyJvEbiZv+AMjluerQ yKYVw2f+JHtyFbmhCEr/l1hXjLc0Lz00D1RYq0pNol9YcIw7qtB7hzUiODzVTI1TdWYL S42ozWVJS+BYVax8cbU6HH1gZD8QBbhn9KMHsr5+V2NnsavQHBYHt5QP8Ug0Il6glqfX HeEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U1A+Bb18; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p5si11910590pjg.167.2022.02.14.13.24.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:24:10 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=U1A+Bb18; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD4CB2321D8; Mon, 14 Feb 2022 12:40:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbiBNT5q (ORCPT + 99 others); Mon, 14 Feb 2022 14:57:46 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:59936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbiBNT5o (ORCPT ); Mon, 14 Feb 2022 14:57:44 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF5E81375AC; Mon, 14 Feb 2022 11:57:27 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id u5so184508ple.3; Mon, 14 Feb 2022 11:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=faMCUXgtmx+3AXg49JAI78UUXqy95249g9sm+/df9gg=; b=U1A+Bb18rPgucS1CdIquKO/KQlC0eR27NKxSUImY8Oiy7D1wNhaId2KoUHB4btYKEU 4u9Zjg2eEAKHQ5kHwKidGlgPI8du5J16z8F+sJNHr6Uj2ZVwdwXJqvgp42B7LBkHCpLx fNsVnT2Gql7nO2NdBASFWTya/UuczDhwp9ARH9586d51DW8lEZyTnCfiXIfX1WYapWOE GeJhsm3lrs67uSDfIXrlZ1Pf7MRr5EXBs0AUNlNK+7KuWL5jxyEP+eaDXzmgQ6WOcWcS c73Yf/mPhRfRVhubGjsd9Yc1/pEuF8KVnxRvakBP5HkToeXTv1SCmGYbuc43TkrLsQRI zsHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=faMCUXgtmx+3AXg49JAI78UUXqy95249g9sm+/df9gg=; b=Z68GLA3IWjogcmQjxZVXMzZrER/4jqKKoRU+CaiTCIAU69rNUeqO0865+5M+dOP7VY E473qWv80eJz9R4R6kr1GePkwiXaLIQqsZkeF3j0t8HOOpC8SbdRSyoBAYuacCBJxNSr o7Da0y73sWj+vBdKju4wdsRn3BtbmvaFyXj+ON6gfJdJA8XhyYGfiIwwJDmwzuuCNvrB sbHMB54DVAAyU84pL30MgDykzEP3XAGft/YEqRVN0s4P/xqSbziGLgMHeh6EIT8NpXFD AyyAEGskzn63eT3wZtaK4S8z3Z16mL9F4S2hED3KziY+HQQCuj8s7kJCkKnnlaLD3pdp Psbw== X-Gm-Message-State: AOAM530qFsQO/sMvWkknidWCE+ocymo8sfjBqgDu/fU9DNrgWIbteHfe I1GNyTU46+jSyYE53eXcDsiR+7/mgJ4= X-Received: by 2002:a05:6a00:1c42:: with SMTP id s2mr343232pfw.3.1644866602102; Mon, 14 Feb 2022 11:23:22 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-e24f-43ff-fee6-449f.res6.spectrum.com. [2603:800c:1a02:1bae:e24f:43ff:fee6:449f]) by smtp.gmail.com with ESMTPSA id g19sm19524769pfc.109.2022.02.14.11.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:23:21 -0800 (PST) Sender: Tejun Heo Date: Mon, 14 Feb 2022 09:23:20 -1000 From: Tejun Heo To: "T.J. Mercier" Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Hridya Valsaraju , Suren Baghdasaryan , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Benjamin Gaignard , Liam Mark , Laura Abbott , Brian Starkey , John Stultz , Zefan Li , Johannes Weiner , kaleshsingh@google.com, Kenny.Ho@amd.com, 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 Subject: Re: [RFC v2 0/6] Proposal for a GPU cgroup controller Message-ID: References: <20220211161831.3493782-1-tjmercier@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220211161831.3493782-1-tjmercier@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 Hello, On Fri, Feb 11, 2022 at 04:18:23PM +0000, T.J. Mercier wrote: > The GPU/DRM cgroup controller came into being when a consensus[1] > was reached that the resources it tracked were unsuitable to be integrated > into memcg. Originally, the proposed controller was specific to the DRM > subsystem and was intended to track GEM buffers and GPU-specific > resources[2]. In order to help establish a unified memory accounting model > for all GPU and all related subsystems, Daniel Vetter put forth a > suggestion to move it out of the DRM subsystem so that it can be used by > other DMA-BUF exporters as well[3]. This RFC proposes an interface that > does the same. > > [1]: https://patchwork.kernel.org/project/dri-devel/cover/20190501140438.9506-1-brian.welty@intel.com/#22624705 > [2]: https://lore.kernel.org/amd-gfx/20210126214626.16260-1-brian.welty@intel.com/ > [3]: https://lore.kernel.org/amd-gfx/YCVOl8%2F87bqRSQei@phenom.ffwll.local/ IIRC, the only consensus was that it needs to be a separate controller and folks had trouble agreeing on resource types, control mechanism and interface. Imma keep an eye on how the discussion develops among GPU folks. Please feel free to ping if there's an area my input may be useful. Thanks. -- tejun