From b4970ebf56d0ee81c4d930b2ce1178aa5bb329dc Mon Sep 17 00:00:00 2001 From: Xianzhong Date: Fri, 21 Jun 2019 01:21:05 +0800 Subject: [PATCH] MGS-4975 [#imx-1542] fix incomplete dump for gpu command buffer gpu dump address is aligned with 4096, but dump size is up to 1024, that causes command dump incomplete around gpu address. fix gpu dump size with 4096 upper limit. Signed-off-by: Xianzhong --- drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c index 58f6aae824c3..bf1f3d89bea4 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c +++ b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c @@ -4322,7 +4322,7 @@ gckCOMMAND_DumpExecutingBuffer( gpuAddress &= 0xfffff000; /* Dump max 4096 bytes. */ - bytes = (bytes - offset) > 1024 ? 1024 : (bytes - offset); + bytes = (bytes - offset) > 4096 ? 4096 : (bytes - offset); /* Kernel address of page where stall point stay. */ entryDump = (gctUINT8_PTR)entryDump + offset; -- 2.17.1