Messages in this thread | | | Date | Wed, 06 Aug 2008 09:23:11 -0400 | From | Prarit Bhargava <> | Subject | Re: [PATCH]: PCI: GART iommu alignment fixes [v2] |
| |
>> >> >>> @@ -265,7 +268,7 @@ static dma_addr_t dma_map_area(struct device >>> *dev, dma_addr_t phys_mem, >>> static dma_addr_t >>> gart_map_simple(struct device *dev, phys_addr_t paddr, size_t size, >>> int dir) >>> { >>> - dma_addr_t map = dma_map_area(dev, paddr, size, dir); >>> + dma_addr_t map = dma_map_area(dev, paddr, size, dir, size - 1); >>> > > Maybe I'm missing something -- what implies size has to be a power of > two? > > P. >
Ixnay that last comment -- I geddit (duh.).
The implication of "size-1" is that size is always a power of two.
Jesse -- I'll have to post a follow-up patch to fix this.
P.
| |