From: Jason Gunthorpe Date: Wed, 5 Aug 2015 20:14:45 +0000 (-0600) Subject: IB/core: Guarantee that a local_dma_lkey is available X-Git-Tag: omap-for-v4.3/fixes-rc1~52^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96249d70dd70;p=pandora-kernel.git IB/core: Guarantee that a local_dma_lkey is available Every single ULP requires a local_dma_lkey to do anything with a QP, so let us ensure one exists for every PD created. If the driver can supply a global local_dma_lkey then use that, otherwise ask the driver to create a local use all physical memory MR associated with the new PD. Signed-off-by: Jason Gunthorpe Reviewed-by: Sagi Grimberg Acked-by: Christoph Hellwig Reviewed-by: Steve Wise Reviewed-by: Ira Weiny Tested-by: Ira Weiny Signed-off-by: Doug Ledford --- Reading git-diff-tree failed