Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp892494pxb; Tue, 29 Mar 2022 12:13:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp5piWXB5pBSWRN+tkyaQk7t6z02C2vMdMP6Vw5jNU8c6myVMXnzOcr+GyoELOEKQbddnV X-Received: by 2002:a05:6870:b427:b0:d3:5044:db1b with SMTP id x39-20020a056870b42700b000d35044db1bmr401228oap.2.1648581209741; Tue, 29 Mar 2022 12:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648581209; cv=none; d=google.com; s=arc-20160816; b=LwK/GSv6rLqWdDRTmiFrPgi0AerP6+LiCqKgttCGznyXWWdXzovVqBNOj3UtnSHD7z nLmwbh4bgn98Rz0R6pHACoa44CqRl84nlBsG+dd4fRTd67VdU5wgs43rmb+SjVOjEXX4 iKbluHlHQ4wMI2n/9pf0ZRhKVwmjXUaB1FgH0xGo/l4GuaIv5GVtnISmr3eLLkiflN+f z3Nd5D2TMh792RDqTTVrzdSRlB12q0LM3k0TGpp+nX/gzVK4lAMRAZ/LNz2k3GYVgQOA U3ukthbf2BYJD7R6LOl3Oo4vAPzx7jMz9issZZmpB+uK6LdzXi/UBNdbAgqFsKCKtLMk HsnA== 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=n/czKHIPapnBxpdu79ODwmVGjcsUIWEmGzncRJ5TN4Q=; b=LODHIIV06Xk5kVJ2GaYs4QNE4vo1PbcaIFS22dYvYajQetfEmImoJdFIUJUDraJpMf MlOjwkr6PU9RU1kZaJNpjRfRRLlvFnIN3CwjxhqJqRvfnDPSGGQtW1lUwLDVUJaOVkRs 2aHhMrh0G9HJVrT2zsb4LGIDY8T5QGwTDzezWglkr82PvLqoqeE/m7p6HTE1/t/phSo1 /JX64v5+52sv8Aml+f7GYkIsrk75KAedbC4PKOlrfa0gJRQa9LT8ccvDrDyagiSTuLUK aOIN/9D8VqIqZRh6w4dW0sT+h1jUdMtLatE5sjD12CUPa8xXS1hhlZ9l6HpdeElfJiX2 apTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=lbxalIk0; 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 w16-20020a9d77d0000000b005cb2fc13879si16036102otl.245.2022.03.29.12.13.11; Tue, 29 Mar 2022 12:13:29 -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=lbxalIk0; 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 S238449AbiC2PXb (ORCPT + 99 others); Tue, 29 Mar 2022 11:23:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232090AbiC2PX3 (ORCPT ); Tue, 29 Mar 2022 11:23:29 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48CA37CB02; Tue, 29 Mar 2022 08:21:45 -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 4FBEE1FD0A; Tue, 29 Mar 2022 15:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1648567304; 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=n/czKHIPapnBxpdu79ODwmVGjcsUIWEmGzncRJ5TN4Q=; b=lbxalIk0hgBTc9ZrvdtVK14x3u1oqMDVbsoiIWRU/HZAKUtFdn9xuq+x4VdQSqRv2NIzra 6u7dg24T8Ka4DRgQdxJkMClNHbD8rd8VMmEUcF8AeBfKYtvlHup2tBTYs1n4gYuW4kxpnl lnJuwJXKKePEEilmmgnC19er+O83O34= 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 755B913AB1; Tue, 29 Mar 2022 15:21:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hsZZGwckQ2LkcwAAMHmgww (envelope-from ); Tue, 29 Mar 2022 15:21:43 +0000 Date: Tue, 29 Mar 2022 17:21:42 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: "T.J. Mercier" Cc: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , 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 , Tejun Heo , Zefan Li , Johannes Weiner , Shuah Khan , kaleshsingh@google.com, Kenny.Ho@amd.com, skhan@linuxfoundation.org, 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, linux-kselftest@vger.kernel.org Subject: Re: [RFC v4 5/8] dmabuf: Add gpu cgroup charge transfer function Message-ID: <20220329152142.GA15794@blackbody.suse.cz> References: <20220328035951.1817417-1-tjmercier@google.com> <20220328035951.1817417-6-tjmercier@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220328035951.1817417-6-tjmercier@google.com> 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 Hi. On Mon, Mar 28, 2022 at 03:59:44AM +0000, "T.J. Mercier" wrote: > From: Hridya Valsaraju > > The dma_buf_charge_transfer function provides a way for processes to (s/dma_bug_charge_transfer/dma_bug_transfer_charge/) > transfer charge of a buffer to a different process. This is essential > for the cases where a central allocator process does allocations for > various subsystems, hands over the fd to the client who requested the > memory and drops all references to the allocated memory. I understood from [1] some buffers are backed by regular RAM. How are these charges going to be transferred (if so)? Thanks, Michal [1] https://lore.kernel.org/r/CABdmKX2NSAKMC6rReMYfo2SSVNxEXcS466hk3qF6YFt-j-+_NQ@mail.gmail.com