From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DE87C41514 for ; Fri, 16 Aug 2019 08:15:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 20F36206C2 for ; Fri, 16 Aug 2019 08:15:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726957AbfHPIPw (ORCPT ); Fri, 16 Aug 2019 04:15:52 -0400 Received: from verein.lst.de ([213.95.11.211]:53426 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbfHPIPv (ORCPT ); Fri, 16 Aug 2019 04:15:51 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 65D7468B02; Fri, 16 Aug 2019 10:15:48 +0200 (CEST) Date: Fri, 16 Aug 2019 10:15:48 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, Bjorn Helgaas , Christoph Hellwig , Christian Koenig , Jason Gunthorpe , Sagi Grimberg , Keith Busch , Jens Axboe , Dan Williams , Eric Pilmore , Stephen Bates Subject: Re: [PATCH v3 12/14] PCI/P2PDMA: dma_map() requests that traverse the host bridge Message-ID: <20190816081548.GL9249@lst.de> References: <20190812173048.9186-1-logang@deltatee.com> <20190812173048.9186-13-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812173048.9186-13-logang@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 11:30:46AM -0600, Logan Gunthorpe wrote: > Any requests that traverse the host bridge will need to be mapped into the > IOMMU, so call dma_map_sg() inside pci_p2pdma_map_sg() when appropriate. > > Similarly, call dma_unmap_sg() inside pci_p2pdma_unmap_sg(). > > Link: https://lore.kernel.org/r/20190730163545.4915-13-logang@deltatee.com > Signed-off-by: Logan Gunthorpe > Signed-off-by: Bjorn Helgaas Looks good, Reviewed-by: Christoph Hellwig