arm: mm: dma-mapping: add support for prefech and gap pages
authorKrishna Reddy <vdumpa@nvidia.com>
Wed, 17 Jul 2013 20:04:39 +0000 (13:04 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:19:44 +0000 (13:19 -0700)
commit415a618ebf62f14f3c06984a30d32beb6c8b4b16
treeadfc7c694f461d1048c011e8d345c50204668f10
parentc806857d0920d19798f4dffd06fdf98d1c6ca072
arm: mm: dma-mapping: add support for prefech and gap pages

add support for prefetch and gap pages to be part of iova allocations
and mapping.
prefetch pages are necessary to avoid smmu faults, which are the result
of hw engines speculatively fetching beyond the iova mapped area.
gap pages are to separate the iova allcoations in order catch iova
access violations.

Bug 1303110
Bug 1265246
Bug 1215880
Bug 1327616

Change-Id: Ieacc0cd0a82e7f93746b453dafcec6a1766088a6
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/246693
(cherry picked from commit 889be8cbffa184c38f31542546d1f1ffbe8d8502)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/264780
arch/arm/mm/dma-mapping.c