]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ada62846a84e5535509bd3334bfd7f0d04f1b8c
tree66067f933e78b142401d6cd985fa225514b37c6e
parent1e5c04ce49b462cb9a0d3d75afea9b27569fc63c
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