DPAA usage

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DPAA usage

2,118 次查看
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 项奖励
回复
5 回复数

2,082 次查看
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 项奖励
回复

2,071 次查看
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 项奖励
回复

2,049 次查看
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,043 次查看
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 项奖励
回复

1,985 次查看
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 项奖励
回复