UPSTREAM: iommu/rockchip: Prepare to support generic DMA mapping
authorShunqian Zheng <zhengsq@rock-chips.com>
Fri, 24 Jun 2016 02:13:30 +0000 (10:13 +0800)
committerJeffy Chen <jeffy.chen@rock-chips.com>
Mon, 28 Nov 2016 12:45:39 +0000 (20:45 +0800)
commit7d48c319268c2a09e32c7cccd59efc18bcce359c
treeb56f3a4d018f8764a8f98f34560d33968cc059da
parent5faeb3ebb42c1b7264ad3de6505f8bed31e8b1ed
UPSTREAM: iommu/rockchip: Prepare to support generic DMA mapping

Set geometry for allocated domains and fix .domain_alloc() callback to
work with IOMMU_DOMAIN_DMA domain type, which is used for implicit
domains on ARM64.

Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
(cherry picked from commit a93db2f22b6b48369acb72f66a0ae47ec17a0b05)

Change-Id: Ib04827afadbfb32ca52c6842cd056952269cbe93
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
drivers/iommu/rockchip-iommu.c