[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] [PATCH] xilinx: Fix Microblaze dma_map_sg bug
On Tue, 2009-05-26 at 22:58 +0800, Thomas Chou wrote:
> > - sg[i].dma_address = page_to_bus(sg_page(sg)) + sg->offset;
> > + sg->dma_address = page_to_bus(sg_page(sg)) + sg->offset;
> > virt = page_address(sg_page(sg)) + sg->offset;
> >
> sg->dma_address = sg_phys(sg);
> virt = sg_virt(sg);
>
> There are accessors defined in include/linux/scatterlist.h .
Even better, thanks for the tip.
A little birdie told me that Xilinx is not actively maintaining the
particular GIT tree on their website so it doesn't look like this patch
will go anywhere. I'll update my local copy though.
Steve
>
> - Thomas
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/