projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
340cf82
)
dmaengine: idxd: set DMA_INTERRUPT cap bit
author
Dave Jiang
<dave.jiang@intel.com>
Mon, 11 Apr 2022 22:09:38 +0000
(15:09 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:14 +0000
(18:36 +0200)
[ Upstream commit
4e5a4eb20393b851590b4465f1197a8041c2076b
]
Even though idxd driver has always supported interrupt, it never actually
set the DMA_INTERRUPT cap bit. Rectify this mistake so the interrupt
capability is advertised.
Reported-by: Ben Walker <benjamin.walker@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link:
https://lore.kernel.org/r/164971497859.2201379.17925303210723708961.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/idxd/dma.c
b/drivers/dma/idxd/dma.c
index c39e9483206adec9b7917dbf192f3989ddcf1567..acb5681e25eddfa19e2169fb812a38d07576fc1c 100644
(file)
--- a/
drivers/dma/idxd/dma.c
+++ b/
drivers/dma/idxd/dma.c
@@
-181,6
+181,7
@@
int idxd_register_dma_device(struct idxd_device *idxd)
INIT_LIST_HEAD(&dma->channels);
dma->dev = dev;
+ dma_cap_set(DMA_INTERRUPT, dma->cap_mask);
dma_cap_set(DMA_PRIVATE, dma->cap_mask);
dma_cap_set(DMA_COMPLETION_NO_ORDER, dma->cap_mask);
dma->device_release = idxd_dma_release;