Patch "dmaengine: idxd: set DMA channel to be private" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    dmaengine: idxd: set DMA channel to be private

to the 5.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     dmaengine-idxd-set-dma-channel-to-be-private.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 917f5de20b91a83ce6ffb91ff5e814ce5bdc7b22
Author: Dave Jiang <dave.jiang@xxxxxxxxx>
Date:   Fri Jan 15 14:53:07 2021 -0700

    dmaengine: idxd: set DMA channel to be private
    
    [ Upstream commit c06e424be5f5184468c5f761c0d2cf1ed0a4e0fc ]
    
    Add DMA_PRIVATE attribute flag to idxd DMA channels. The dedicated WQs are
    expected to be used by a single client and not shared. While doing NTB
    testing this mistake was discovered, which prevented ntb_transport from
    requesting DSA wqs as DMA channels via dma_request_channel().
    
    Reported-by: Srinijia Kambham <srinija.kambham@xxxxxxxxx>
    Signed-off-by: Dave Jiang <dave.jiang@xxxxxxxxx>
    Tested-by: Srinijia Kambham <srinija.kambham@xxxxxxxxx>
    Fixes: 8f47d1a5e545 ("dmaengine: idxd: connect idxd to dmaengine subsystem")
    Link: https://lore.kernel.org/r/161074758743.2184057.3388557138816350980.stgit@xxxxxxxxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Vinod Koul <vkoul@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/dma/idxd/dma.c b/drivers/dma/idxd/dma.c
index 71fd6e4c42cd7..a15e50126434e 100644
--- a/drivers/dma/idxd/dma.c
+++ b/drivers/dma/idxd/dma.c
@@ -165,6 +165,7 @@ int idxd_register_dma_device(struct idxd_device *idxd)
 	INIT_LIST_HEAD(&dma->channels);
 	dma->dev = &idxd->pdev->dev;
 
+	dma_cap_set(DMA_PRIVATE, dma->cap_mask);
 	dma_cap_set(DMA_COMPLETION_NO_ORDER, dma->cap_mask);
 	dma->device_release = idxd_dma_release;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux