]> 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)
commit3b089f0c1c6afff1b0e7510b190ac85b1f9c0105
tree66067f933e78b142401d6cd985fa225514b37c6e
parent400b7afadcdd90736faa4c6d144febfc0e5849d5
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