From 17c98393f9f3cb0801b73b2d4c62442859417368 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 4 May 2022 12:16:27 -0400 Subject: [PATCH] panfrost: Increase the maximum tiler heap size Required to avoid tiler heap out-of-memory condition on Valhall on tests including: dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawelements_combined_grid_1200x1200_drawcount_8 This test passes on Bifrost without the fix because varyings are only allocated from the tiler heap on Valhall. Minimal perf or memory usage impacted is expected, as even old versions of panfrost.ko support growable memory. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/pan_props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/pan_props.c b/src/panfrost/lib/pan_props.c index 152fd2cb5ef..5884a826b8e 100644 --- a/src/panfrost/lib/pan_props.c +++ b/src/panfrost/lib/pan_props.c @@ -282,7 +282,7 @@ panfrost_open_device(void *memctx, int fd, struct panfrost_device *dev) * active for a single job chain at once, so a single heap can be * shared across batches/contextes */ - dev->tiler_heap = panfrost_bo_create(dev, 64 * 1024 * 1024, + dev->tiler_heap = panfrost_bo_create(dev, 128 * 1024 * 1024, PAN_BO_INVISIBLE | PAN_BO_GROWABLE, "Tiler heap"); pthread_mutex_init(&dev->submit_lock, NULL);