DPAA usage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DPAA usage

2,117 Views
awilhelm1
Contributor I

Hello,

I am currently working on a custom board with an LS1046A CPU on a system with Linux kernel version v5.15.137. My board has two Ethernet ports, each of which has a communication partner. The ports are connected to an L2 bridge.

My 'Iperf' performance via this bridge looks very good, I achieve 90% of the gross data rate with a 2.5 GBit/s full duplex setting. All 4 cores are utilized at 40-50%. DPAA promises to reduce the load on all CPUs. Unfortunately, I don't know how to configure the DPAA, or rather, where to start? Can anyone give me a tip on whether optimization is even possible and where it is easiest to implement?

Best regards

Alexander Wilhelm

0 Kudos
Reply
5 Replies

2,081 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please apply fmc policy before iperf test.

fmc -c /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/config.xml -p /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/policy_ipv4.xml -a

Please modify /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/config.xml according to your target board.

0 Kudos
Reply

2,070 Views
awilhelm1
Contributor I

@yipingwang: I would like to use 'fmc' tool but I need to compile it first. Since it depends on 'fmlib' I try to compile that library before. Thus leads to a lot of errors with missing header files like 'fm_ioctls.h' an further. It seems that my vanilla kernel does not contain those files and I shall use the NXP-custom one. While searching I've only found Yocto recipes. Since I'm not using Yocto in my system it does not work for me. Is there a possibility to get a set of patches that I can apply to my vanilla kernel? If so where can I find it?

Best regards

Alexander Wilhelm

0 Kudos
Reply

2,048 Views
yipingwang
NXP TechSupport
NXP TechSupport

The attached are fmc binary and fmc policy files, please check whether they can work on your target board.

2,042 Views
awilhelm1
Contributor I

Thanks for the help. The 'fmc' could be in fact executed on my target. I additionally required to compile the 'libxml2' dependency due to missing libraries. Now I get the following error:

./fmc -c /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/config.xml -p /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/policy_ipv4.xml -a
ERR : Invocation of FM_Open for fm0 failed
ERR : Invocation of FM_PCD_Disable for fm0/pcd failed with error code 0x00010028

Do I require something special in my vanilla kernel or should the config and PCD files work out of the box?

Best regards

Alexander Wilhelm

0 Kudos
Reply

1,984 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please modify /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/config.xml  according to your custom board.

If you problem persists, please provide the whole console log from Linux booting up.

0 Kudos
Reply