diff mbox

[v7,1/9] dmaengine: ioatdma: revert 7618d035 to allow sharing of DMA channels

Message ID 150412653838.69288.13562037747713264295.stgit@djiang5-desk3.ch.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dave Jiang Aug. 30, 2017, 8:55 p.m. UTC
Commit 7618d0359c16 ("dmaengine: ioatdma: Set non RAID channels to be
private capable") makes all non-RAID ioatdma channels as private to be
requestable by dma_request_channel(). With PQ CAP support going away for
ioatdma, this would make all channels private. To support the usage of
ioatdma for blk-mq implementation of pmem we need as many channels we can
share in order to be high performing. Thus reverting the patch.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
 drivers/dma/ioat/init.c |    3 ---
 1 file changed, 3 deletions(-)
diff mbox


diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c
index ed8ed11..1b881fb 100644
--- a/drivers/dma/ioat/init.c
+++ b/drivers/dma/ioat/init.c
@@ -1153,9 +1153,6 @@  static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca)
-	if (!(ioat_dma->cap & (IOAT_CAP_XOR | IOAT_CAP_PQ)))
-		dma_cap_set(DMA_PRIVATE, dma->cap_mask);
 	err = ioat_probe(ioat_dma);
 	if (err)
 		return err;