drm/panthor: Make sure the tiler initial/max chunks are consistent
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 2 May 2024 16:51:55 +0000 (18:51 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 13 May 2024 07:49:15 +0000 (09:49 +0200)
commite3193f0fbd6d83510ff6879ac248f42a7c0fefe7
treef351e0ddd2a5671c1761fd055a56c05f46549c75
parentd2143297579f12ea22479d403d955819838e7e67
drm/panthor: Make sure the tiler initial/max chunks are consistent

It doesn't make sense to have a maximum number of chunks smaller than
the initial number of chunks attached to the context.

Fix the uAPI header to reflect the new constraint, and mention the
undocumented "initial_chunk_count > 0" constraint while at it.

v3:
- Add R-b

v2:
- Fix the check

Fixes: 9cca48fa4f89 ("drm/panthor: Add the heap logical block")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240502165158.1458959-3-boris.brezillon@collabora.com
drivers/gpu/drm/panthor/panthor_heap.c
include/uapi/drm/panthor_drm.h