提交 d863f0c7 编写于 作者: C Craig Tatlor 提交者: Rob Clark

drm/msm: Call msm_init_vram before binding the gpu

vram.size is needed when binding a gpu without an iommu and is defined
in msm_init_vram(), so run that before binding it.
Signed-off-by: NCraig Tatlor <ctatlor97@gmail.com>
Reviewed-by: NBrian Masney <masneyb@onstation.org>
Tested-by: NAlexey Minnekhanov <alexeymin@postmarketos.org>
Signed-off-by: NRob Clark <robdclark@chromium.org>
上级 2b5f09ca
......@@ -457,14 +457,14 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)
drm_mode_config_init(ddev);
/* Bind all our sub-components: */
ret = component_bind_all(dev, ddev);
ret = msm_init_vram(ddev);
if (ret)
goto err_destroy_mdss;
ret = msm_init_vram(ddev);
/* Bind all our sub-components: */
ret = component_bind_all(dev, ddev);
if (ret)
goto err_msm_uninit;
goto err_destroy_mdss;
dma_set_max_seg_size(dev, UINT_MAX);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册