Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5178547pxb; Tue, 28 Sep 2021 12:13:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh9iRr0baFMBfOMX3p/fOOtSSh56vJHT8LDtn9Iik26G5YjrRf8QGEwj5Tf/Os1DdySxGZ X-Received: by 2002:a17:90a:4:: with SMTP id 4mr1628186pja.221.1632856402724; Tue, 28 Sep 2021 12:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632856402; cv=none; d=google.com; s=arc-20160816; b=qwWtt9mjQjPPVVZfQASk1uiswdb9BpEaL9swz+gIeZmch+YTOSJ8bzBHtc9QJGQ8et QIWk0P/Uj5wuHWBGHl5yN84G+Qwm1JrNdG6+71c30Yi09ZAxRaBD3qeLvaffrHoM7UAl sDRX4LNH5SXN+BGMJDteZ/XdY8avsOZrpytOYXdJxdWaberA9XhGU07jjd/sf7kBKADu lLlTq+vgb9wGAV6Zw4hRw+r3qlv1A9Fv6w2AeEvXHyOXwS7tWQXp71i7lYwPnhNi0oMI WTkce7Kmh9saV4e6B2rW/5N0mncoaVJwPe0M9XbAKpV+LtjP+SovsH5PKgOrO2yde0Sk I2EA== 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=dAXGT1q19wzeDZuDAAKylN0FjSdSatuZU8qbovqANdw=; b=in50Yy1/wVfiKyZpZQYveIhpDrHjtMjUBDXEUeDQXAn2pE0XSNLUpHvAe2QnbboG1b FlPpZS9fCBtpMSFYjZfh0ir+D3ncoBPTQuD5v9S8bOIGo9GRoQOIBov8Zir5DcBzLtrD gEU+JGe9Uwm18wwXHLbHdY4+Mq9QbxFRUfcBQV1VGNkLNMbN/3EyQdGdvOX5FxeaDRAc ES8OlLah0wY4rE5UFXj2a7tFQPV0OwOtlXmRC/wkW8srKKqYkDUox6tZeB8PWAOmN19k 7OyuLbDESm5ZrHr0kpDdInDRmHNZeMzEYQIOa1vGjbPwiqRjvbvwoYPK/QfDJkBlyqOw c3eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=NIsddmzY; 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 t2si27709414plr.243.2021.09.28.12.13.09; Tue, 28 Sep 2021 12:13:22 -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=@ziepe.ca header.s=google header.b=NIsddmzY; 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 S240589AbhI1TN0 (ORCPT + 99 others); Tue, 28 Sep 2021 15:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242495AbhI1TNT (ORCPT ); Tue, 28 Sep 2021 15:13:19 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25D31C061766 for ; Tue, 28 Sep 2021 12:11:11 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id p80so28713072iod.10 for ; Tue, 28 Sep 2021 12:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dAXGT1q19wzeDZuDAAKylN0FjSdSatuZU8qbovqANdw=; b=NIsddmzY0SYPds0DsYkmoKZofq4uefBOl/rEvHgX2wf4Sq0Q/kPfCr88FedGCk72x4 M85CSii4YgqgeM0qNeZZf3HW2JP2y18v42D5jWWJxvBa620My0qz75JLiIxzKFePaec2 fhlmmNtBIFu07KD16S0Ue2uzNiDFkv4tUm/ROVOWgsufiRUPYkqXwQJynXHEpPzfeWNl lT9KnR8RE94I6VBQwgECcNJi86FzLxVTZHjBXlz92yIisi+ep1Kytv6n7liUaJT+LBIn HQ3MgYljZM9zacpI6dVo9OhsLwET/JAbBNrnWr1DQI5h4ySl49sjVWB2ztyrVHrLwEzy Inxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dAXGT1q19wzeDZuDAAKylN0FjSdSatuZU8qbovqANdw=; b=2BzkUUorwo1Q8Pz1wJctnkF6pritkQ/FoqKKYGZFFVNtXxq4OMITsZ1Fzy3owOSiK4 i6EcVP+PkJUrWbxqOt0QgcXXqfWJZ09b6xnbJjPqGDcN6rdySsk2PVbuGFv3sMDdn+nc PuGk/CHjBsvIdiJqyzpZ+U33K5hnf99f1gYLHku7sPl6mS7MWbGEgURGUXcUxe7UTNn7 +esUfZTUkaGcvKt5fxVLFQ50cy4SLIjd9EtcUPXHfkelC6OkNcIsyT2g80HFb3SKXXlu ozxmLggq4bgaqpNYDgFElcLg+buZmz/Abof9C0u08p6NH3K251pkpuNbwkZVe6ovKAWu jdXw== X-Gm-Message-State: AOAM532SOL3t8yKBffxHzKuiw7FFz3rZjrTVrZCpEW4sMyvnf/8knS4u kvNV7bsLG4vMcyYuchzXmS4gkg== X-Received: by 2002:a6b:5b14:: with SMTP id v20mr5202033ioh.142.1632856270563; Tue, 28 Sep 2021 12:11:10 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id b14sm1785849ilc.63.2021.09.28.12.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 12:11:10 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mVIVR-007Fxh-2M; Tue, 28 Sep 2021 16:11:09 -0300 Date: Tue, 28 Sep 2021 16:11:09 -0300 From: Jason Gunthorpe To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Stephen Bates , Christoph Hellwig , Dan Williams , Christian =?utf-8?B?S8O2bmln?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Jakowski Andrzej , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni Subject: Re: [PATCH v3 07/20] dma-mapping: add flags to dma_map_ops to indicate PCI P2PDMA support Message-ID: <20210928191109.GO3544071@ziepe.ca> References: <20210916234100.122368-1-logang@deltatee.com> <20210916234100.122368-8-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210916234100.122368-8-logang@deltatee.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 16, 2021 at 05:40:47PM -0600, Logan Gunthorpe wrote: > Add a flags member to the dma_map_ops structure with one flag to > indicate support for PCI P2PDMA. > > Also, add a helper to check if a device supports PCI P2PDMA. > > Signed-off-by: Logan Gunthorpe > --- > include/linux/dma-map-ops.h | 10 ++++++++++ > include/linux/dma-mapping.h | 5 +++++ > kernel/dma/mapping.c | 18 ++++++++++++++++++ > 3 files changed, 33 insertions(+) Reviewed-by: Jason Gunthorpe Jason