]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/biomerge: Don't allow biovec's to be merged when Linux is not using 4KB pages
authorJulien Grall <julien.grall@citrix.com>
Mon, 11 May 2015 12:44:21 +0000 (13:44 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:08 +0000 (02:01 +0100)
commit4982a6b4ce317d6d4110c43716b5172d9664bd59
tree0c36e165dbb08e59c78cb22556e817e5c4daaa2b
parentef21294ea02f8b6bcd92da5898e97d76ccdab1bc
xen/biomerge: Don't allow biovec's to be merged when Linux is not using 4KB pages

On ARM all dma-capable devices on a same platform may not be protected
by an IOMMU. The DMA requests have to use the BFN (i.e MFN on ARM) in
order to use correctly the device.

While the DOM0 memory is allocated in a 1:1 fashion (PFN == MFN), grant
mapping will screw this contiguous mapping.

When Linux is using 64KB page granularitary, the page may be split
accross multiple non-contiguous MFN (Xen is using 4KB page
granularity). Therefore a DMA request will likely fail.

Checking that a 64KB page is using contiguous MFN is tedious. For
now, always says that biovec are not mergeable.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 36f8abd36febf1c6f67dae26ec7a87be44629138)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/biomerge.c