Re: [PATCH 16/67] powerpc: rename dma_direct_ to dma_nommu_

From
Geert Uytterhoeven <hidden>
Date
2018-01-03 07:49:42
Also in
linux-arch, linux-arm-kernel, linux-iommu, linux-mips, linux-s390, linux-sh, linuxppc-dev, lkml, sparclinux
Reply to
Michael Ellerman, 2018-01-03
Hi Michael,

On Wed, Jan 3, 2018 at 7:24 AM, Michael Ellerman [off-list ref] wrote:
Geert Uytterhoeven [off-list ref] writes:
quoted
On Tue, Jan 2, 2018 at 10:45 AM, Michael Ellerman [off-list ref] wrote:
quoted
Christoph Hellwig [off-list ref] writes:
quoted
We want to use the dma_direct_ namespace for a generic implementation,
so rename powerpc to the second best choice: dma_nommu_.
I'm not a fan of "nommu". Some of the users of direct ops *are* using an
IOMMU, they're just setting up a 1:1 mapping once at init time, rather
than mapping dynamically.

Though I don't have a good idea for a better name, maybe "1to1",
"linear", "premapped" ?
"identity"?
I think that would be wrong, but thanks for trying to help :)

The address on the device side is sometimes (often?) offset from the CPU
address. So eg. the device can DMA to RAM address 0x0 using address
0x800000000000000.

Identity would imply 0 == 0 etc.

I think "bijective" is the correct term, but that's probably a bit
esoteric.
OK, didn't know about the offset.
Then "linear" is what we tend to use, right?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org

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
Thread (97 messages) 97 messages, 8 authors, last reply 2018-01-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help