RE: [PATCH v2 00/26] IB: Optimize DMA mapping

From
Estrin, Alex <hidden>
Date
2017-01-13 21:09:43
Also in
lkml
Reply to
Bart Van Assche, 2017-01-13
quoted hunk ↗ jump to hunk
Hello Alex,

Sorry for this. Can you check whether the patch below fixes this regression?
diff --git a/drivers/infiniband/sw/rdmavt/vt.c
b/drivers/infiniband/sw/rdmavt/vt.c
index 6a81b179f631..f7fcd015ec09 100644
--- a/drivers/infiniband/sw/rdmavt/vt.c
+++ b/drivers/infiniband/sw/rdmavt/vt.c
@@ -778,8 +778,7 @@ int rvt_register_device(struct rvt_dev_info *rdi)
 	}

 	/* DMA Operations */
-	if (rdi->ibdev.dma_device->dma_ops == NULL)
-		set_dma_ops(rdi->ibdev.dma_device, &dma_virt_ops);
+	set_dma_ops(rdi->ibdev.dma_device, &dma_virt_ops);

 	/* Protection Domain */
 	spin_lock_init(&rdi->n_pds_lock);
--
2.11.0

I will make sure that this series applies cleanly on top of v4.10-rc3 when I
repost it.

Bart.
Hi Bart,
It didn't fix the failure... Apparently there is an issue with generic mapping itself. 
Thanks,
Alex.
Thread (45 messages) 45 messages, 9 authors, last reply 2017-01-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help