Files
linux/drivers/gpu/drm/msm
Dmitry Baryshkov efe927b970 drm/msm: fix msm_gem_vma_new() allocations for managed GPUVMs
Since commit 3309323241 ("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]>
2025-08-23 17:20:18 +03:00
..
2025-07-04 17:48:39 -07:00
2025-07-05 07:13:35 -07:00
2025-07-04 17:48:38 -07:00
2025-07-04 17:48:39 -07:00
…