提交 0440d732 编写于 作者: C Craig Tatlor 提交者: Zheng Zengkai

drm/msm: Call msm_init_vram before binding the gpu

stable inclusion
from stable-5.10.9
commit d565c626b4e14864be4f6886d73e86f3338f7bac
bugzilla: 47457

--------------------------------

[ Upstream commit d863f0c7 ]

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>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 04babe79
......@@ -444,14 +444,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.
先完成此消息的编辑!
想要评论请 注册