drm/lima: support heap buffer creation
authorQiang Yu <yuq825@gmail.com>
Thu, 16 Jan 2020 13:11:55 +0000 (21:11 +0800)
committerQiang Yu <yuq825@gmail.com>
Mon, 27 Jan 2020 14:01:09 +0000 (22:01 +0800)
commit6aebc51d7aeff5a30d86485f320f0c871b5f23a4
tree66067f933e78b142401d6cd985fa225514b37c6e
parentdc76cb7a1fd195348100c2a87eb1d55d2a7ddd09
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
drivers/gpu/drm/lima/lima_drv.c
drivers/gpu/drm/lima/lima_drv.h
drivers/gpu/drm/lima/lima_gem.c
drivers/gpu/drm/lima/lima_gem.h
drivers/gpu/drm/lima/lima_vm.c
include/uapi/drm/lima_drm.h