[PATCH] drm/msm: fix msm_gem_vma_new() allocations for managed GPUVMs
Dmitry Baryshkov
dmitry.baryshkov at oss.qualcomm.com
Sat Aug 23 13:50:22 UTC 2025
On Fri, Aug 22, 2025 at 05:14:02PM -0700, Rob Clark wrote:
> On Fri, Aug 22, 2025 at 5:12 PM Dmitry Baryshkov
> <dmitry.baryshkov at oss.qualcomm.com> wrote:
> >
> > Since commit 3309323241fb ("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 <danct12 at disroot.org>
> > Fixes: 3309323241fb ("drm/gpuvm: Kill drm_gpuva_init()")
> > Suggested-by: Rob Clark <robin.clark at oss.qualcomm.com>
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at oss.qualcomm.com>
> > ---
> > drivers/gpu/drm/msm/msm_gem_vma.c | 13 +++++++------
> > 1 file changed, 7 insertions(+), 6 deletions(-)
> >
>
> Thanks,
>
> Reviewed-by: Rob Clark <rob.clark at oss.qualcomm.com>
I'll also need Acked-by to merge through drm-misc-next, where the
offending commit is.
--
With best wishes
Dmitry
More information about the Freedreno
mailing list