summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/lima/lima_drv.h
diff options
context:
space:
mode:
authorQiang Yu <yuq825@gmail.com>2020-01-16 21:11:55 +0800
committerQiang Yu <yuq825@gmail.com>2020-01-27 22:01:09 +0800
commit6aebc51d7aeff5a30d86485f320f0c871b5f23a4 (patch)
tree66067f933e78b142401d6cd985fa225514b37c6e /drivers/gpu/drm/lima/lima_drv.h
parentdc76cb7a1fd195348100c2a87eb1d55d2a7ddd09 (diff)
downloadlinux-6aebc51d7aeff5a30d86485f320f0c871b5f23a4.tar.gz
linux-6aebc51d7aeff5a30d86485f320f0c871b5f23a4.tar.bz2
linux-6aebc51d7aeff5a30d86485f320f0c871b5f23a4.zip
drm/lima: support heap buffer creation
heap buffer is used as output of GP and input of PP for Mali Utgard GPU. Size of heap buffer depends on the task so is a runtime variable. Previously we just create a large enough buffer as heap buffer. Now we add a heap buffer type to be able to increase the backup memory dynamically when GP fail due to lack of heap memory. Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Tested-by: Andreas Baierl <ichgeh@imkreisrum.de> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200116131157.13346-4-yuq825@gmail.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_drv.h')
-rw-r--r--drivers/gpu/drm/lima/lima_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/lima/lima_drv.h b/drivers/gpu/drm/lima/lima_drv.h
index 69c7344715c9..f492ecc6a5d9 100644
--- a/drivers/gpu/drm/lima/lima_drv.h
+++ b/drivers/gpu/drm/lima/lima_drv.h
@@ -9,6 +9,7 @@
#include "lima_ctx.h"
extern int lima_sched_timeout_ms;
+extern uint lima_heap_init_nr_pages;
struct lima_vm;
struct lima_bo;