mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/rockchip: drv: add more info about iommu_reserve_map
Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: I7d6120e1c2a78c4b51d69dc0e6c65b021519b9d3
This commit is contained in:
committed by
Huang Jiachai
parent
cc61a7f0e7
commit
de1cef0912
@@ -1467,13 +1467,18 @@ static int rockchip_drm_init_iommu(struct drm_device *drm_dev)
|
||||
*/
|
||||
ret = iommu_map(private->domain, 0, 0, (size_t)SZ_2G,
|
||||
IOMMU_WRITE | IOMMU_READ | IOMMU_PRIV);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
dev_err(drm_dev->dev, "failed to create 0-2G pre mapping\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
ret = iommu_map(private->domain, SZ_2G, SZ_2G, (size_t)SZ_2G,
|
||||
IOMMU_WRITE | IOMMU_READ | IOMMU_PRIV);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
dev_err(drm_dev->dev, "failed to create 2G-4G pre mapping\n");
|
||||
return 0;
|
||||
}
|
||||
dev_info(drm_dev->dev, "Enable iommu reserve map\n");
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user