Skip to content

Commit 5c1ef59

Browse files
Tomoya MORINAGAVinod Koul
authored andcommitted
pch_dma: Use GFP_ATOMIC because called from interrupt context
pdc_desc_get() is called from pd_prep_slave_sg, and the function is called from interrupt context(e.g. Uart driver "pch_uart.c"). In fact, I saw kernel error message. So, GFP_ATOMIC must be used not GFP_NOIO. Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 30fb980 commit 5c1ef59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/pch_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ static struct pch_dma_desc *pdc_desc_get(struct pch_dma_chan *pd_chan)
476476
dev_dbg(chan2dev(&pd_chan->chan), "scanned %d descriptors\n", i);
477477

478478
if (!ret) {
479-
ret = pdc_alloc_desc(&pd_chan->chan, GFP_NOIO);
479+
ret = pdc_alloc_desc(&pd_chan->chan, GFP_ATOMIC);
480480
if (ret) {
481481
spin_lock(&pd_chan->lock);
482482
pd_chan->descs_allocated++;

0 commit comments

Comments
 (0)