diff options
| author | Qiang Yu <[email protected]> | 2020-01-16 21:11:55 +0800 |
|---|---|---|
| committer | Qiang Yu <[email protected]> | 2020-01-27 22:01:09 +0800 |
| commit | 6aebc51d7aeff5a30d86485f320f0c871b5f23a4 (patch) | |
| tree | 66067f933e78b142401d6cd985fa225514b37c6e /drivers/gpu/drm/lima/lima_drv.h | |
| parent | dc76cb7a1fd195348100c2a87eb1d55d2a7ddd09 (diff) | |
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 <[email protected]>
Tested-by: Andreas Baierl <[email protected]>
Signed-off-by: Qiang Yu <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_drv.h')
| -rw-r--r-- | drivers/gpu/drm/lima/lima_drv.h | 1 |
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; |