All of lore.kernel.org
 help / color / mirror / Atom feed
* equivalent of phys_to_virt in an iommu system
@ 2011-01-28  5:14 MJ embd
  2011-01-28  9:32 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: MJ embd @ 2011-01-28  5:14 UTC (permalink / raw)
  To: linux-kernel

Hi,

Assuming at core mmu there is a mapping, V1 -> P1
And at the IOMMU for the device to access a region of DDR there is a
mapping P2 -> P1. [P2 is the address on which device issues a r/w]

Now the device driver does the following.

Line 0: V1 = kmalloc();
Line 1: P2 = dma_map_single(V1)

Now if later in the driver, there is a requirement to get V1 from P2
what is the primitive in linux  ?
Also is my understanding of Line 1(above) correct ?


-- 
-mj

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-28  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-28  5:14 equivalent of phys_to_virt in an iommu system MJ embd
2011-01-28  9:32 ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.