Re: [PATCH v3 2/2] drm/panthor: Avoid sleep locking in the internal BO size path

From: Boris Brezillon
Date: Fri Feb 28 2025 - 03:19:07 EST


On Thu, 27 Feb 2025 23:16:26 +0000
Adrián Larumbe <adrian.larumbe@xxxxxxxxxxxxx> wrote:

> -static int panthor_alloc_heap_chunk(struct panthor_device *ptdev,
> +static int panthor_alloc_heap_chunk(struct panthor_heap_pool *pool,
> struct panthor_vm *vm,
> struct panthor_heap *heap,
> bool initial_chunk)

The pool has a ptdev and a vm, so we can get rid of the vm field and
make the panthor_alloc_heap_chunk() and panthor_fre_heap_chunk() helpers
consistent.