Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3855918iob; Sat, 7 May 2022 18:02:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJnwCYlrW99X/98KPjXDWZ0A/cz7lD+EmUB16yGUXvG5P4SzpErr39dGi8kvqZ3XoXwAOK X-Received: by 2002:a05:6a00:1391:b0:50d:e125:e3c with SMTP id t17-20020a056a00139100b0050de1250e3cmr9920889pfg.75.1651971727280; Sat, 07 May 2022 18:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651971727; cv=none; d=google.com; s=arc-20160816; b=zmNmmil0G4iglYFEvTMpQdR2krXEY4/9Ph7VG4R5poGNk1Ad/za4zkNJb8Yof6WBjq 5jTy1KXaTTK1Ts8gTGeR2XnpWAOR9U4Y9fzFHyFSnnwXX5D+KsaKehdIPGxSZV4iuFob 6A6h70kV6CeLePLXTkLVw4PWNZy30/69cdL+RsSEVmsoB0cwHnyrO/EzXiQ3FdA4Qw2B Vr1NMCVIBt3/xe4O2xSkAMnS73uI6dbnt/3b7rdosv2h5R/TdD+785/OrvL7F02Kt3oE n7Eot2+YWtobWLqpu50NefoZ5OG3asQJHAs77zaHzFpdkoJEdkouUToA9O8y2UeeLZ2z R8yQ== 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=SFH/x2L4G69sbr6PPcrJ24GF6EKzycaRm+AGvFywOyg=; b=eydBBvy24QFENfQqzvSFHa3E+43n/Z1XWNm2r8NAPjjvP/r180gev8tGYvaMmdMm9A rpXv9Yr06AOt1LsX+nyQH38vBdCEkUzDvTeV7sh03LKRA+785WI2AqRyCuuYqncff6o+ mmfQgPsHExBHUexpxvLYb4NqG3SGBoZBpaNIf8CtOcQc5oWb2H2Luj3Lo2HzVaD73AYc ZLU2EqqTJbR5DkIx8J41H9Ko42DovC1MSlwr8uLmSHbd1EbK24O0xpEKJVzblVex/c9X YdY2Vp//EKdVVUVoEa/DacCQFWzR9wb5D76I+Lfp9uIC5JJkcy2B4lNlkC6ILXCD0XRe x6pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Hi7oi4+H; 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 u5-20020a17090341c500b00158c6131014si7489939ple.518.2022.05.07.18.01.23; Sat, 07 May 2022 18:02:07 -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=Hi7oi4+H; 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 S1355799AbiEELyG (ORCPT + 99 others); Thu, 5 May 2022 07:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236235AbiEELyB (ORCPT ); Thu, 5 May 2022 07:54:01 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C8521A8; Thu, 5 May 2022 04:50:18 -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-out2.suse.de (Postfix) with ESMTPS id C4AA91F8D2; Thu, 5 May 2022 11:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1651751416; 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=SFH/x2L4G69sbr6PPcrJ24GF6EKzycaRm+AGvFywOyg=; b=Hi7oi4+HvgHIFy7zdrmmaaXxpCzxgIsU/9DIcQEQIsZBrzEnC99VBYyTdl9tCC5Clj0fNo S4wfHAcq5GS0FxgqjHIneVl1e76wHk0FgPIrmw1/VLSR1LTsnu6LUe2oRBxPFHVVShOMzR bOw8YBZW592ZS2VzcJD/HrayK6QgMM8= 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 6974213A65; Thu, 5 May 2022 11:50:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lOXYGPi5c2IDbwAAMHmgww (envelope-from ); Thu, 05 May 2022 11:50:16 +0000 Date: Thu, 5 May 2022 13:50:15 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: "T.J. Mercier" Cc: Tejun Heo , Zefan Li , Johannes Weiner , 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, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v6 2/6] cgroup: gpu: Add a cgroup controller for allocator attribution of GPU memory Message-ID: <20220505115015.GD10890@blackbody.suse.cz> References: <20220502231944.3891435-1-tjmercier@google.com> <20220502231944.3891435-3-tjmercier@google.com> <20220504122558.GB24172@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:19:20AM -0700, "T.J. Mercier" wrote: > Should I export these now for this series? Hehe, _I_ don't know. Depends on the likelihood this lands in and is built upon. > No, except maybe the gpucg_bucket name which I can add an accessor > function for. Won't this mean depending on LTO for potential inlining > of the functions currently implemented in the header? Yes. Also depends how much inlining here would be performance relevant. I suggested this with an OS vendor hat on, i.e. the less such ABI, the simpler. > I'm happy to make this change, but I wonder why some parts of the > kernel take this approach and others do not. I think there is no convention (see also Documentation/process/stable-api-nonsense.rst ;-)). Regards, Michal