[PATCH 1/2] drm/buddy: fix issue that force_merge cannot free all roots
Matthew Auld
matthew.auld at intel.com
Mon Dec 16 18:35:49 UTC 2024
On 16/12/2024 13:07, Arunpravin Paneer Selvam wrote:
> From: Lin.Cao <lincao12 at amd.com>
>
> If buddy manager have more than one roots and each root have sub-block
> need to be free. When drm_buddy_fini called, the first loop of
> force_merge will merge and free all of the sub block of first root,
> which offset is 0x0 and size is biggest(more than have of the mm size).
> In subsequent force_merge rounds, if we use 0 as start and use remaining
> mm size as end, the block of other roots will be skipped in
> __force_merge function. It will cause the other roots can not be freed.
>
> Solution: use roots' offset as the start could fix this issue.
>
> Signed-off-by: Lin.Cao <lincao12 at amd.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
More information about the dri-devel
mailing list