Commit 05ab49e0 authored by Joerg Roedel's avatar Joerg Roedel

iommu/amd: Remove 'start' parameter from dma_ops_area_alloc

Parameter is not needed because the value is part of the
already passed in struct dma_ops_domain.
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent ccb50e03
...@@ -1561,11 +1561,10 @@ static unsigned long dma_ops_area_alloc(struct device *dev, ...@@ -1561,11 +1561,10 @@ static unsigned long dma_ops_area_alloc(struct device *dev,
struct dma_ops_domain *dom, struct dma_ops_domain *dom,
unsigned int pages, unsigned int pages,
unsigned long align_mask, unsigned long align_mask,
u64 dma_mask, u64 dma_mask)
unsigned long start)
{ {
int max_index = dom->aperture_size >> APERTURE_RANGE_SHIFT; int max_index = dom->aperture_size >> APERTURE_RANGE_SHIFT;
int i = start >> APERTURE_RANGE_SHIFT; int i = dom->next_address >> APERTURE_RANGE_SHIFT;
unsigned long next_bit, boundary_size, mask; unsigned long next_bit, boundary_size, mask;
unsigned long address = -1; unsigned long address = -1;
...@@ -1612,13 +1611,12 @@ static unsigned long dma_ops_alloc_addresses(struct device *dev, ...@@ -1612,13 +1611,12 @@ static unsigned long dma_ops_alloc_addresses(struct device *dev,
dom->need_flush = true; dom->need_flush = true;
#endif #endif
address = dma_ops_area_alloc(dev, dom, pages, align_mask, address = dma_ops_area_alloc(dev, dom, pages, align_mask, dma_mask);
dma_mask, dom->next_address);
if (address == -1) { if (address == -1) {
dom->next_address = 0; dom->next_address = 0;
address = dma_ops_area_alloc(dev, dom, pages, align_mask, address = dma_ops_area_alloc(dev, dom, pages, align_mask,
dma_mask, 0); dma_mask);
dom->need_flush = true; dom->need_flush = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment