AnsweredAssumed Answered

FM QMAN Init Failed at boot-up - FqAlloc: Memory Allocation Failed

Question asked by Vignesh R on Mar 4, 2018
Latest reply on Mar 8, 2018 by Vignesh R

Hi,

 

I'm adding board support for ls1043ardb with 3.14 kernel support. I have ported all required files and during boot-up I do face some FMAN issue failed to allocate memory as per log.

 

21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 86, base_baud = 25000000) is a 16550A
serial: Freescale lpuart driver
brd: module loaded
loop: module loaded
CAN device driver interface
Freescale FM module FMD API version 21.1.0
cpu 1: ! MAJOR FM Error [CPU01, drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c:207 FqAlloc]: Memory Allocation Failed;
cpu 1: FQ obj - qman_init_fq!!!cpu 1:

 

I have used updated u-boot and below rcw & fman.

RCW: rcw_1600.bin

Fm-Ucode: fsl_fman_ucode_ls1043_r1.0_108_4_9.bin

DTS: fsl-ls1043ardb-aarch32.dts

 

I have used these same RCW, DTS and FMAN for 3.19 kernel and it was booted successfully with ethernet support.

 

On further analysis on issue in qman_init_fq function, it is failed at below part of code,

while (!(mcr = qm_mc_result(&p->p)))
cpu_relax();
DPA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == myverb);
res = mcr->result;

if (res != QM_MCR_RESULT_OK) {
FQUNLOCK(fq);
PORTAL_IRQ_UNLOCK(p, irqflags);
put_affine_portal();
return -EIO;
}

It returned EIO and the qman_init_fq function is failed. The value which receives for res is f2 which is pointing QM_MCR_RESULT_ERR_FQSTATE.

 

Please suggest me what could be the cause for issue and how to overcome this issue.

 

PFA kernel config, bootup log and dtsi file. Kindly please do the needful, thanks in advance

 

Regards,

Vigneshwaran R

Attachments

Outcomes