Re: [PATCHv8 00/12] Contiguous Memory Allocator
- Subject: Re: [PATCHv8 00/12] Contiguous Memory Allocator
- From: Michal Nazarewicz <mina86@xxxxxxxxxx>
- Date: Thu, 23 Dec 2010 14:41:26 +0100
- Cc: Kyungmin Park <kmpark@xxxxxxxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Daniel Walker <dwalker@xxxxxxxxxxxxxx>, Johan MOSSBERG <johan.xx.mossberg@xxxxxxxxxxxxxx>, Mel Gorman <mel@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx, Ankita Garg <ankita@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linux-media@xxxxxxxxxxxxxxx, KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>, Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
- In-reply-to: <20101223100642.GD3636@xxxxxxxxxxxxxxxxxxxxxx> (Russell King's message of "Thu, 23 Dec 2010 10:06:42 +0000")
- User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0 (Slckware Linux)
Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx> writes:
> Has anyone addressed my issue with it that this is wide-open for
> abuse by allocating large chunks of memory, and then remapping
> them in some way with different attributes, thereby violating the
> ARM architecture specification?
>
> In other words, do we _actually_ have a use for this which doesn't
> involve doing something like allocating 32MB of memory from it,
> remapping it so that it's DMA coherent, and then performing DMA
> on the resulting buffer?
Huge pages.
Also, don't treat it as coherent memory and just flush/clear/invalidate
cache before and after each DMA transaction. I never understood what's
wrong with that approach.
--
Best regards, _ _
.o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +--<mina86-tlen.pl>--<jid:mina86-jabber.org>--ooO--(_)--Ooo--
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Input]
[Video for Linux]
[Mplayer Users]
[Linux USB Devel]
[Linux Audio Users]
[Photos]
[Yosemite Photos]
[Linux Kernel]
[Linux SCSI]
[XFree86]
[Devices]
[Yosemite Backpacking]
[Linux Input]