projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2baedcb
)
dmaengine: ioat: adding missed issue_pending to timeout handler
author
Leonid Ravich
<Leonid.Ravich@emc.com>
Wed, 22 Apr 2020 21:09:18 +0000
(
00:09
+0300)
committer
Vinod Koul
<vkoul@kernel.org>
Thu, 23 Apr 2020 07:21:45 +0000
(12:51 +0530)
completion timeout might trigger unnesesery DMA engine hw reboot
in case of missed issue_pending() .
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Leonid Ravich <Leonid.Ravich@emc.com>
Link:
https://lore.kernel.org/r/1587589761-32690-3-git-send-email-leonid.ravich@dell.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ioat/dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ioat/dma.c
b/drivers/dma/ioat/dma.c
index 55a8cf181816ae45b621e55a009a9df6485ee94c..8ad0ad861c86119ba09824abe2deeb560c44fa83 100644
(file)
--- a/
drivers/dma/ioat/dma.c
+++ b/
drivers/dma/ioat/dma.c
@@
-955,6
+955,15
@@
void ioat_timer_event(struct timer_list *t)
goto unlock_out;
}
+ /* handle missed issue pending case */
+ if (ioat_ring_pending(ioat_chan)) {
+ dev_warn(to_dev(ioat_chan),
+ "Completion timeout with pending descriptors\n");
+ spin_lock_bh(&ioat_chan->prep_lock);
+ __ioat_issue_pending(ioat_chan);
+ spin_unlock_bh(&ioat_chan->prep_lock);
+ }
+
set_bit(IOAT_COMPLETION_ACK, &ioat_chan->state);
mod_timer(&ioat_chan->timer, jiffies + COMPLETION_TIMEOUT);
unlock_out: