Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64070
b: refs/heads/master
c: 54a09fe
h: refs/heads/master
v: v3
  • Loading branch information
Shannon Nelson authored and David S. Miller committed Aug 15, 2007
1 parent bf1f3de commit eaca77b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c29a377f99b42c59721112cd2388cf27547fc84
refs/heads/master: 54a09feb0ebb018dadaebeb51e860154198abc83
7 changes: 3 additions & 4 deletions trunk/drivers/dma/ioatdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,7 @@ ioat_dma_prep_memcpy(struct dma_chan *chan, size_t len, int int_en)
new->async_tx.ack = 0; /* client is in control of this ack */
new->async_tx.cookie = -EBUSY;

pci_unmap_len_set(new, src_len, orig_len);
pci_unmap_len_set(new, dst_len, orig_len);
pci_unmap_len_set(new, len, orig_len);
spin_unlock_bh(&ioat_chan->desc_lock);

return new ? &new->async_tx : NULL;
Expand Down Expand Up @@ -423,11 +422,11 @@ static void ioat_dma_memcpy_cleanup(struct ioat_dma_chan *chan)
*/
pci_unmap_page(chan->device->pdev,
pci_unmap_addr(desc, dst),
pci_unmap_len(desc, dst_len),
pci_unmap_len(desc, len),
PCI_DMA_FROMDEVICE);
pci_unmap_page(chan->device->pdev,
pci_unmap_addr(desc, src),
pci_unmap_len(desc, src_len),
pci_unmap_len(desc, len),
PCI_DMA_TODEVICE);
}

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/dma/ioatdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ struct ioat_desc_sw {
struct ioat_dma_descriptor *hw;
struct list_head node;
int tx_cnt;
DECLARE_PCI_UNMAP_LEN(len)
DECLARE_PCI_UNMAP_ADDR(src)
DECLARE_PCI_UNMAP_LEN(src_len)
DECLARE_PCI_UNMAP_ADDR(dst)
DECLARE_PCI_UNMAP_LEN(dst_len)
struct dma_async_tx_descriptor async_tx;
};

Expand Down

0 comments on commit eaca77b

Please sign in to comment.