[PATCH v2 2/2] treewide: Add the __GFP_PACKED flag to several non-DMA kmalloc() allocations
Christoph Hellwig
hch at lst.de
Sun Oct 30 02:13:49 PDT 2022
On Sun, Oct 30, 2022 at 10:02:53AM +0100, Greg Kroah-Hartman wrote:
> Ah, my fault, sorry, you are right. Is there a sparse tag that just
> means "enforce this void * type?" I guess we could do that with something
> like:
> typedef void *dmaptr;
>
> but that feels icky.
That's because it is :) I find the concept of the DMA pointes pretty
strange to be honest. It only affects a subset of dma (when devices
are not attached in a DMA coherent way). So count me in as someone
who would be much more happy about figuring out a way to simplify
bounce buffer for non-coherent DMA if the start and length are not
aligned to the cache line size over any kind of special annotation
all over the kernel.
More information about the linux-arm-kernel
mailing list