drm/rockchip: support using reserved memory region for cma

Change-Id: I829162c21748052525b0583185db67015f24141d
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
Sandy Huang
2021-08-02 15:14:09 +08:00
parent c0be657e1e
commit b33b4d6a73

View File

@@ -18,6 +18,7 @@
#include <linux/component.h>
#include <linux/console.h>
#include <linux/iommu.h>
#include <linux/of_reserved_mem.h>
#include <drm/drm_debugfs.h>
#include <drm/drm_drv.h>
@@ -631,6 +632,9 @@ static int rockchip_drm_bind(struct device *dev)
drm_kms_helper_poll_init(drm_dev);
rockchip_gem_pool_init(drm_dev);
ret = of_reserved_mem_device_init(drm_dev->dev);
if (ret)
DRM_DEBUG_KMS("No reserved memory region assign to drm\n");
ret = drm_dev_register(drm_dev, 0);
if (ret)