mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 18:12:48 +00:00
Since commit3309323241("drm/gpuvm: Kill drm_gpuva_init()") MSM driver fails to init, failing with "[drm:msm_gpu_init] *ERROR* could not allocate memptrs: -22" errors. The mentioned commit reworked the function, but didn't take into account that op_map is initialized at the top of the function, while ranges might change if GPUVM is managed by the kernel. Move op_mode initialization after finalizing all addresses and right before the drm_gpuva_init_from_op() call. Reported-by: Danct12 <[email protected]> Fixes:3309323241("drm/gpuvm: Kill drm_gpuva_init()") Suggested-by: Rob Clark <[email protected]> Reviewed-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>