[lkml]   [2011]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectequivalent of phys_to_virt in an iommu system

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 ?


 \ /
  Last update: 2011-01-28 06:17    [W:0.029 / U:15.180 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site