From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Bart Van Assche <bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v3 00/37] IB: Optimize DMA mapping
Date: Tue, 24 Jan 2017 12:38:07 -0500 [thread overview]
Message-ID: <1485279487.43764.38.camel@redhat.com> (raw)
In-Reply-To: <20170120210437.26389-1-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2499 bytes --]
On Fri, 2017-01-20 at 13:04 -0800, Bart Van Assche wrote:
> Hello Doug,
>
> As you know there are two sets of DMA mapping operations in the Linux
> kernel:
> - One set of DMA mapping operations that is used by most drivers.
> - Another set of DMA mapping operations that is only used by the RDMA
> drivers.
> Having two types of DMA mapping operations is not only a source of
> confusion but also a source of unnecessary overhead. The DMA mapping
> operations are in the hot path so it is important that the overhead
> of these operations is as low as possible. Hence this patch series
> that converts the RDMA code to the standard DMA mapping operations
> and thereby eliminates the if (dev->dma_ops) test from the hot path.
>
> The changes compared to version 2 of this patch series are:
> - Left out the inlining of the ib_dma_map_*() functions to keep the
> number of patches in this patch series reasonable.
> - Reworked this patch series such that (hopefully) the hfi1 and qib
> drivers keep working.
>
> The changes compared to version 1 of this patch series are:
> - Patch "Move dma_ops from archdata into struct device" has been
> split into three patches.
> - Patch "treewide: Inline ib_dma_map_*() functions" has been split
> into 15 patches (one per driver).
> - A patch has been added that builds dma_noop_ops only for the
> architectures that need it.
> - The new dma_virt_ops is only built if it is used by a driver.
> - In these last 15 patches indentation has been adjusted to keep
> the arguments aligned with the opening parenthesis.
Hi Bart,
I think this has enough Acks to move foward (especially from the larger
kernel community on the core kernel bits, such as GKH's ack on the core
bits). I've pulled it into a branch (there were a few fixups I had to
do, compile testing that now). However, I'm going to wait until the
very end to merge this branch right before my pull request. That way
if Linus has any objections, he can just pop the top 37 patches off of
my pull request and effectively remove this patchset, at which point we
can fix up whatever he objected to and resubmit. And I'm only doing
that because of the number of patches that are either outside of
drivers/infiniband or treewide in this series.
--
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2017-01-24 17:38 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-20 21:04 [PATCH v3 00/37] IB: Optimize DMA mapping Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 02/37] treewide: Move dma_ops from struct dev_archdata into struct device Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 03/37] treewide: Consolidate set_dma_ops() implementations Bart Van Assche
2017-01-30 13:58 ` Russell King - ARM Linux
[not found] ` <20170120210437.26389-1-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-20 21:04 ` [PATCH v3 01/37] treewide: Constify most dma_map_ops structures Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 04/37] treewide: Consolidate get_dma_ops() implementations Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 05/37] lib/dma-noop: Clarify a comment Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 06/37] lib/dma-noop: Only build dma_noop_ops for s390 and m32r Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 07/37] lib/dma-virt: Add dma_virt_ops Bart Van Assche
[not found] ` <20170120210437.26389-8-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-23 16:03 ` Joerg Roedel
[not found] ` <20170123160341.GM9529-l3A5Bk7waGM@public.gmane.org>
2017-01-23 16:12 ` Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 08/37] IB/core: Remove ib_dma_*map_single_attrs() Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 09/37] RDS: IB: Remove an unused structure member Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 10/37] IB/core: Change the type of an ib_dma_alloc_coherent() argument Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 11/37] IB/hf1: Remove DMA mapping code Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 12/37] IB/qib: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 13/37] IB/core: Initialize ib_device.dev.parent earlier Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 14/37] IB/core: Use dev.parent instead of dma_device Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 15/37] IB/cxgb3: Set " Bart Van Assche
[not found] ` <20170120210437.26389-16-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-20 21:27 ` Steve Wise
2017-01-20 21:04 ` [PATCH v3 16/37] IB/cxgb4: " Bart Van Assche
[not found] ` <20170120210437.26389-17-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-20 21:27 ` Steve Wise
2017-01-20 21:04 ` [PATCH v3 17/37] IB/hfi1: Switch from dma_device to dev.parent Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 18/37] IB/hns: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 19/37] IB/i40iw: Remove a superfluous assignment statement Bart Van Assche
[not found] ` <20170120210437.26389-20-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-21 14:18 ` Shiraz Saleem
2017-01-20 21:04 ` [PATCH v3 20/37] IB/mlx4: Switch from dma_device to dev.parent Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 21/37] IB/mlx5: " Bart Van Assche
[not found] ` <20170120210437.26389-22-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-22 14:15 ` Leon Romanovsky
2017-01-20 21:04 ` [PATCH v3 22/37] IB/mthca: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 23/37] IB/nes: Remove a superfluous assignment statement Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 24/37] IB/ocrdma: Switch from dma_device to dev.parent Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 25/37] IB/qedr: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 26/37] IB/qib: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 27/37] IB/usnic: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 28/37] IB/vmw_pvrdma: " Bart Van Assche
[not found] ` <20170120210437.26389-29-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-20 21:54 ` Adit Ranadive
2017-01-20 21:04 ` [PATCH v3 29/37] IB/rxe: " Bart Van Assche
[not found] ` <20170120210437.26389-30-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-26 21:06 ` Boyer, Andrew
[not found] ` <D4AFCE43.A031%Andrew.Boyer-mb1K0bWo544@public.gmane.org>
2017-01-27 22:14 ` Bart Van Assche
[not found] ` <1485555269.13218.10.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-02-14 16:47 ` Doug Ledford
2017-01-20 21:04 ` [PATCH v3 30/37] IB/IPoIB: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 31/37] IB/iser: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 32/37] IB/srp: " Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 33/37] IB/srpt: Modify a debug statement Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 34/37] RDS: net: Switch from dma_device to dev.parent Bart Van Assche
[not found] ` <20170120210437.26389-35-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-20 23:24 ` Santosh Shilimkar
2017-01-20 21:04 ` [PATCH v3 35/37] nvme-rdma: " Bart Van Assche
[not found] ` <20170120210437.26389-36-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-22 16:08 ` Sagi Grimberg
2017-01-20 21:04 ` [PATCH v3 36/37] IB/core: Remove ib_device.dma_device Bart Van Assche
2017-01-20 21:04 ` [PATCH v3 37/37] IB/rxe, IB/rdmavt: Use dma_virt_ops instead of duplicating it Bart Van Assche
[not found] ` <20170120210437.26389-38-bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-22 14:11 ` Leon Romanovsky
[not found] ` <20170122141141.GI28570-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-01-22 15:51 ` Bart Van Assche
2017-01-26 21:00 ` Boyer, Andrew
2017-01-20 21:57 ` [PATCH v3 00/37] IB: Optimize DMA mapping Laurence Oberman
[not found] ` <1671405275.19009584.1484949453215.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-01-20 22:18 ` Bart Van Assche
[not found] ` <1484950725.2665.10.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-20 22:23 ` Laurence Oberman
2017-01-24 17:38 ` Doug Ledford [this message]
[not found] ` <1485279487.43764.38.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-01-24 17:43 ` Bart Van Assche
[not found] ` <1485279791.2715.3.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-24 17:49 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1485279487.43764.38.camel@redhat.com \
--to=dledford-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).