Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362813
b: refs/heads/master
c: 186f50f
h: refs/heads/master
i:
  362811: e0bee98
v: v3
  • Loading branch information
Gerald Schaefer authored and Martin Schwidefsky committed Apr 23, 2013
1 parent 2a61652 commit ddbbced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 63dd9b44ac926d3250c1e8dfcb309c37c870fe21
refs/heads/master: 186f50fa568a221fdabd6753341c2de4abd24b78
4 changes: 1 addition & 3 deletions trunk/arch/s390/pci/pci_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ static dma_addr_t s390_dma_map_pages(struct device *dev, struct page *page,
int flags = ZPCI_PTE_VALID;
dma_addr_t dma_addr;

WARN_ON_ONCE(offset > PAGE_SIZE);

/* This rounds up number of pages based on size and offset */
nr_pages = iommu_num_pages(pa, size, PAGE_SIZE);
iommu_page_index = dma_alloc_iommu(zdev, nr_pages);
Expand All @@ -292,7 +290,7 @@ static dma_addr_t s390_dma_map_pages(struct device *dev, struct page *page,

if (!dma_update_trans(zdev, pa, dma_addr, size, flags)) {
atomic64_add(nr_pages, (atomic64_t *) &zdev->fmb->mapped_pages);
return dma_addr + offset;
return dma_addr + (offset & ~PAGE_MASK);
}

out_free:
Expand Down

0 comments on commit ddbbced

Please sign in to comment.