Alloc cma pages failed

I found this error when using DDR_MODE in MIPI. What caused it?

@ninver2020 Can you provide us a full log info ? Thanks

[10:27:52][ 59.446546@3] AM_MIPI: am_mipi_csi_init:csi version 0x3130322a
[10:27:52][ 59.451426@3] AM_MIPI: am_mipi_init:Success mipi init
[10:27:52][ 59.456407@3] AM_ADAP: inject_data_flag = 0, dump_data_flag = 0
[10:27:52][ 59.462303@3] AM_ADAP: alloc cma pages failed.
[10:27:52][ 59.466741@3] AM_ADAP: adapter irq = 80, ret = 0
[10:27:52][ 59.471328@3] AM_ADAP: reader : width = 1280, val = 100
[10:27:52][ 59.476517@3] AM_ADAP: frontend : width = 1280, val = 100

I tested the driver test to allocate physical memory through CMA. The following is my test code

static uint8_t *isp_cma_mem = NULL;

cma_pages = dma_alloc_from_contiguous(&gpip_dev,(3*SZ_1M) >> PAGE_SHIFT, 0);

if (cma_pages) {
	buffer_start = page_to_phys(cma_pages);	
	pr_info("alloc cma pages success 3m.\n");
	isp_cma_mem = phys_to_virt(buffer_start);
	//pr_info("phy add:0x%x virt:0x%x.\n",buffer_start,*isp_cma_mem);
} else {
	pr_err("alloc cma pages failed.\n");
	return 0;
}

[ 34.675513@1] BAD USING of phys_to_virt, addr:49080000, page:49080
[ 34.680071@1] CPU: 1 PID: 4973 Comm: insmod Tainted: G O 4.9.113 #33
[ 34.687464@1] Hardware name: Generic DT based system
[ 34.692412@1] [bc90bb34+ 16][] show_stack+0x20/0x24
[ 34.698213@1] [bc90bb54+ 32][] dump_stack+0x90/0xac
[ 34.704020@1] [bc90bb7c+ 40][] phys_check+0x88/0x8c
[ 34.709831@1] [bc90bb9c+ 32][] init_module+0x190/0x1b8 [io_drv]
[ 34.716685@1] [bc90bc1c+ 128][] do_one_initcall+0x58/0x198
[ 34.723000@1] [bc90bc44+ 40][] do_init_module+0x78/0x3f4
[ 34.729240@1] [bc90bd04+ 192][] load_module+0x21bc/0x2678
[ 34.735481@1] [bc90bd8c+ 136][] SyS_finit_module+0xb8/0xc8
[ 34.741805@1] [00000000+ 0][] ret_fast_syscall+0x0/0x48