lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=+Hx+3Jk0yprAffhvQM+WcO+WytaLBU-vwbetc@mail.gmail.com>
Date:	Fri, 28 Jan 2011 10:44:19 +0530
From:	MJ embd <mj.embd@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: equivalent of phys_to_virt in an iommu system

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ