Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp284535pxb; Wed, 8 Sep 2021 00:47:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ1l0bX3qSTHRtBgSJ3BGBH3Jtf38iGq8lMa8Dg9WhUvrz/ZbCsmz2u7EBpwx2zaEnrGbn X-Received: by 2002:aa7:d612:: with SMTP id c18mr2498947edr.396.1631087259099; Wed, 08 Sep 2021 00:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631087259; cv=none; d=google.com; s=arc-20160816; b=QubPdCSauWU4Z23DScUy3EuANddNoQNEDdfMS8jKIfywNBT8v1vD2bRC1WTd9W15qC qOZqshUr6aRKyERIXrpBeErj8AMb+758h0JIF2B7O7uB40AG5vE+sNrd3JYAZBmLJZY/ T9R7B6Eu3K01fssikRRTxJu6KdK/qOa8ggzaUVbiS56Na0Ts3aNsJSq+0C8H/4CIdkO6 z0dRr2zhLUnV2yK8z5v/I2Vavg7Bsf0FqFq+qDHXv6Pce5FXrwhWp2Qd6MFKpkZRge13 bq6nzoA+aZzrLFsYYopazcUG8OUaEJEAG9BCWGIl46MD3o5oh7K5D/bB7+t4onjuAUah 3n/g== 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:dkim-signature; bh=u2wyT7IFTnz7oIOwl/Ad2kuIIW4qaVDiD603kQr+kus=; b=S4pizMCMHx1B03RR0ghvZrUV4VQzU2Ia/lWPL19unZLtKirN67XA3ieOmr47cTkRSL Emd/dv2gWtEzvkuRMslGhk9dJgS2mXSCGGtojHnQeovBS7Xxv1yG7VZT+kUCHcXotKow nvfHvXTARVU6Vii09l8v4B+UvoL+JxS3JJTKnG+MCan61FEuGnXt0cgvxbCPYhgyjpbC F3HDN2vXGG1pg41ndpnsz7dzoGHIkyuqDG/IDkJAKs6+4J2gW0FZ+OCGOkynmzrrsHzs 2lsJxTJGjUzdKpjRJrkf6Zce3RN9L+Gt0/cpPfQdPBu6dwe1r5cs26t4AX1rbSTNdn0b EHwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=d0NYOvk4; 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 x23si1434388edq.575.2021.09.08.00.47.15; Wed, 08 Sep 2021 00:47:39 -0700 (PDT) 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=casper.20170209 header.b=d0NYOvk4; 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 S1347681AbhIHG2c (ORCPT + 99 others); Wed, 8 Sep 2021 02:28:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236202AbhIHG2b (ORCPT ); Wed, 8 Sep 2021 02:28:31 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAAA3C061575; Tue, 7 Sep 2021 23:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=u2wyT7IFTnz7oIOwl/Ad2kuIIW4qaVDiD603kQr+kus=; b=d0NYOvk4s9M6hHE6ZgFR1s4sGm aRD72MMXGIMUn3isbRoA8JNLI49n+5zFN+G8rnAuAm6WZ2tETCDUXWeTTOORZXyGVsaLAGJD8/hg/ /A2Ktud4nRhG0FDWrGILC1Nb+lUSgpGNud0xmZsCqqagv58Ke9BpYqxucB9vTSESdHhYKqlUO68WY WqvHWIx+jVo0+mOiIwH5eSMcADPT0g8ryqQHcfO3QtimTIW0zX4ccGgVLkgdda1lwtfVFeiJyPtwB jBtIB/5NjCbLpQpQNrI5MKQWwcY+uAht/6KB23F+XaGL8dgewqvYF5ng7Sdlp/3l7yWQTCfFSEF14 mArq+rcw==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNr23-008Z1A-B7; Wed, 08 Sep 2021 06:26:18 +0000 Date: Wed, 8 Sep 2021 07:26:03 +0100 From: Christoph Hellwig To: Shunsuke Mie Cc: Zhu Yanjun , Christian K??nig , Alex Deucher , Daniel Vetter , Doug Ledford , Jason Gunthorpe , Jianxin Xiong , Leon Romanovsky , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, dhobsong@igel.co.jp, taki@igel.co.jp, etom@igel.co.jp Subject: Re: [RFC PATCH 1/3] RDMA/umem: Change for rdma devices has not dma device Message-ID: References: <20210908061611.69823-1-mie@igel.co.jp> <20210908061611.69823-2-mie@igel.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210908061611.69823-2-mie@igel.co.jp> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 08, 2021 at 03:16:09PM +0900, Shunsuke Mie wrote: > To share memory space using dma-buf, a API of the dma-buf requires dma > device, but devices such as rxe do not have a dma device. For those case, > change to specify a device of struct ib instead of the dma device. So if dma-buf doesn't actually need a device to dma map why do we ever pass the dma_device here? Something does not add up.