Re: [Freedreno] [PATCH v4 00/13] drm/msm/dpu: use managed memory allocations

2023-12-06 Thread Dmitry Baryshkov
On Sat, 02 Dec 2023 00:18:32 +0300, Dmitry Baryshkov wrote: > In a lots of places in DPU driver memory is allocated by using the > kzalloc and then manually freed using kfree. However thes memory chunks > have a well-defined life cycle. They are either a part of the driver's > runtime and can be

[Freedreno] [PATCH v4 00/13] drm/msm/dpu: use managed memory allocations

2023-12-01 Thread Dmitry Baryshkov
In a lots of places in DPU driver memory is allocated by using the kzalloc and then manually freed using kfree. However thes memory chunks have a well-defined life cycle. They are either a part of the driver's runtime and can be devm_kzalloc'ed or are exposed to userspace via the DRM objects and