Re: [PATCH 3/9] drm/panfrost: handle error when allocating AS number

2024-10-21 Thread Boris Brezillon
On Tue, 15 Oct 2024 00:31:38 +0100 Adrián Larumbe wrote: > -u32 panfrost_mmu_as_get(struct panfrost_device *pfdev, struct panfrost_mmu > *mmu) > +int panfrost_mmu_as_get(struct panfrost_device *pfdev, struct panfrost_mmu > *mmu, u32 *asi) Or, we return an int that encodes the AS id when >= 0,

[PATCH 3/9] drm/panfrost: handle error when allocating AS number

2024-10-14 Thread Adrián Larumbe
If we reach the beginning of the LRU AS list, then trigger an error. Signed-off-by: Adrián Larumbe --- drivers/gpu/drm/panfrost/panfrost_job.c | 4 +++- drivers/gpu/drm/panfrost/panfrost_mmu.c | 8 +--- drivers/gpu/drm/panfrost/panfrost_mmu.h | 2 +- drivers/gpu/drm/panfrost/panf