Skip to content

Commit 5a85670

Browse files
committed
drm/etnaviv: always allocate 4K for kernel ringbuffers
Since the kernel ringbuffers are allocated from a larger suballocated area, same as the user commandbufs, they don't need to be CPU page sized. Allocate 4KB for the kernel ring buffers, as we never use more than that. Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
1 parent 68786b7 commit 5a85670

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/etnaviv/etnaviv_gpu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,7 @@ int etnaviv_gpu_init(struct etnaviv_gpu *gpu)
840840
goto fail;
841841

842842
/* Create buffer: */
843-
ret = etnaviv_cmdbuf_init(priv->cmdbuf_suballoc, &gpu->buffer,
844-
PAGE_SIZE);
843+
ret = etnaviv_cmdbuf_init(priv->cmdbuf_suballoc, &gpu->buffer, SZ_4K);
845844
if (ret) {
846845
dev_err(gpu->dev, "could not create command buffer\n");
847846
goto fail;

0 commit comments

Comments
 (0)