[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Re: [PATCH] Microblaze: implement dma-coherent API andrefactorcache flush code.
- To: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
- Subject: [microblaze-uclinux] Re: [PATCH] Microblaze: implement dma-coherent API andrefactorcache flush code.
- From: Michal Simek <monstr@xxxxxxxxx>
- Date: Tue, 06 May 2008 11:33:13 +0200
- Cc: Stephen Neuendorffer <stephen.neuendorffer@xxxxxxxxxx>, John Williams <john.williams@xxxxxxxxxxxxx>, arnd@xxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, John Linn <linnj@xxxxxxxxxx>, matthew@xxxxxx, will.newton@xxxxxxxxx, drepper@xxxxxxxxxx, microblaze-uclinux@xxxxxxxxxxxxxx, grant.likely@xxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
- In-reply-to: <Pine.LNX.4.64.0805060923100.3160@anakin>
- References: <20080505223706.1236C1C8004E@xxxxxxxxxxxxxxxxxxxxxxx> <1210028237.5798.121.camel@localhost> <20080505231206.922A61C780C0@xxxxxxxxxxxxxxxxxxxxxx> <1210032899.5798.179.camel@localhost> <20080506003104.4717D19B8050@xxxxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.64.0805060923100.3160@anakin>
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
- User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
Hi John, Steve and others,
I'll only rename flush to invalidate. Thant's all for now.
Michal
> On Mon, 5 May 2008, Stephen Neuendorffer wrote:
>>> -----Original Message-----
>>> From: John Williams [mailto:john.williams@xxxxxxxxxxxxx]
>>>
>>> Sure - what I meant is can dma_alloc just call kmalloc to do it's
>> work?
>>
>> I scanned through Linux Device Drivers, and it appears that calling
>> get_free_pages is:
>> 1) more efficient than kmalloc for large allocations
>> 2) allocates physically contiguous memory, which kmalloc doesn't
>> necessarily do if there's an mmu.
>
> kmalloc() allocates physically contiguous memory, vmalloc() doesn't.
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
>
>
___________________________
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/