drm/msm: Call msm_init_vram before binding the gpu
authorCraig Tatlor <ctatlor97@gmail.com>
Wed, 30 Dec 2020 15:29:42 +0000 (17:29 +0200)
committerRob Clark <robdclark@chromium.org>
Thu, 7 Jan 2021 17:12:53 +0000 (09:12 -0800)
commitd863f0c7b536288e2bd40cbc01c10465dd226b11
tree1e515daa2bd9736dc1155ff875b50c3f2463db06
parent2b5f09cadfc576817c0450e01d454f750909b103
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: Craig Tatlor <ctatlor97@gmail.com>
Reviewed-by: Brian Masney <masneyb@onstation.org>
Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c