fix display anomaly when loading cvi_fb.ko

fb and vo use the same memory. The boot logo uses vo in u-boot.
When loading cvi_fb.ko in the kernel, we do not need to use
this line to clear the buffer. Otherwise, when insmod cvi_fb.ko,
a rectangular display abnormality will appear in the middle.

Signed-off-by: carbon <carbon@milkv.io>
This commit is contained in:
carbon
2024-06-27 17:07:20 +08:00
parent 2597fae7c4
commit 9e6a33e293

View File

@ -761,7 +761,7 @@ int cvifb_probe(struct platform_device *pdev)
len = pitch * info->var.yres * (1 + double_buffer);
// clear the framebuffer.
memset_io(info->screen_base, 0x00, info->screen_size);
//memset_io(info->screen_base, 0x00, info->screen_size);
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) && defined(__riscv)
arch_sync_dma_for_device(info->fix.smem_start, info->fix.smem_len, DMA_TO_DEVICE);
#else