lkml.org 
[lkml]   [2008]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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.


    \
     
     \ /
      Last update: 2008-08-06 15:27    [from the cache]
    ©2003-2014 Jasper Spaans. Advertise on this site