Skip to content

Commit

Permalink
ioatdma: Push pending transactions to hardware more frequently
Browse files Browse the repository at this point in the history
Every 20 descriptors turns out to be to few append commands with
newer/faster CPUs.  Pushing every 4 still cuts down on MMIO writes to an
acceptable level without letting the DMA engine run out of work.

Signed-off-by: Chris Leech <[email protected]>
  • Loading branch information
Chris Leech authored and djbw committed Jul 11, 2007
1 parent 7dcca30 commit 000725d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dma/ioatdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ static dma_cookie_t do_ioat_dma_memcpy(struct ioat_dma_chan *ioat_chan,
list_splice_init(&new_chain, ioat_chan->used_desc.prev);

ioat_chan->pending += desc_count;
if (ioat_chan->pending >= 20) {
if (ioat_chan->pending >= 4) {
append = 1;
ioat_chan->pending = 0;
}
Expand Down Expand Up @@ -818,7 +818,7 @@ static void __devexit ioat_remove(struct pci_dev *pdev)
}

/* MODULE API */
MODULE_VERSION("1.7");
MODULE_VERSION("1.9");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Intel Corporation");

Expand Down

0 comments on commit 000725d

Please sign in to comment.