LS1023a linux 初始化dpa_priv_bp_create failed

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

LS1023a linux 初始化dpa_priv_bp_create failed

Jump to solution
1,525 Views
wangss
Contributor II

亲爱的恩智浦团队,我的芯片是 LS-1023a,我需要将现使用的linux 4.9内核升级到 linux6.6 内核(源自于flexbuild ),没有更新u-boot,只升级linux kernel版本。

在linux 初始化启动的时候,出现了dpa_priv_bp_create 创建失败,导致我进入系统后,以太网口不能正常创建和使用。

我可以确认,在uboot阶段,可以正常使用以太网口的,并且可以通过tftp加载 image

linux启动日志节选如下(完整日志见附件):

[ 19.286572] Freeing initrd memory: 34712K
[ 19.310596] Freescale FM module, FMD API version 21.1.0
[ 19.317821] Freescale FM Ports module
[ 19.321500] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[ 19.327376] fsl_mac 1ae4000.ethernet: FMan MEMAC
[ 19.332012] fsl_mac 1ae4000.ethernet: FMan MAC address: 00:11:22:33:44:55
[ 19.338926] fsl_dpa: FSL DPAA Ethernet driver
[ 19.343613] alloc_range(1,0,0)
[ 19.346679] Free Nodes
[ 19.349034]
[ 19.350876] Used Nodes
[ 19.353231]
[ 19.355072] returning -12
[ 19.357688] Free Nodes
[ 19.360052]
[ 19.361886] Used Nodes
[ 19.364247]
[ 19.366089] 393:bman_alloc_bpid ret : -12
[ 19.370193] bman_new_pool() failed
[ 19.373591] fsl_dpa: dpa_bp_alloc() failed! err = -2131591224

 

调用栈如下:

dpaa_eth_priv_probe
    -> dpa_priv_bp_create
           ->  dpa_bp_alloc
                   -> bman_new_poll
                         -> bman_alloc_bpid 
 
 

 

Tags (1)
0 Kudos
Reply
1 Solution
1,383 Views
yipingwang
NXP TechSupport
NXP TechSupport

I downloaded the pre-built image package and verified the images on ls1043ardb, it worked normally without any problem.

wget https://www.nxp.com/lgfiles/sdk/lsdk2506/boot_LS_arm64_lts_6.6.52.tar.zst

Please try to use Image provided in this pre-built image package and please port your dts file based on fsl-ls1043a-rdb-sdk.dts.

View solution in original post

0 Kudos
Reply
4 Replies
1,489 Views
yipingwang
NXP TechSupport
NXP TechSupport

Linux Kernel 4.9 是否可以正常工作。

请下载NXP 提供的这个版本Linux Kernel source, 看看是否能正常工作。

https://github.com/nxp-qoriq/linux/tree/lf-6.6.52-2.2.0

0 Kudos
Reply
1,480 Views
wangss
Contributor II
Linux Kernel 4.9 可以正常工作。
Linux Kernel 6.6.52 是基于flexbuild(LSDK-25.06_DEBIAN-12_LF-6.6.52)版本。 该Linux Kernel 启动过程中,会报 bman_new_pool() failed! 导致不能创建以太网eth0。
0 Kudos
Reply
1,477 Views
wangss
Contributor II
1. 在Linux Kernel 4.9 中,dpa_alloc_new 函数中的 DUMP(alloc);可以打印许多信息;
2. 在Linux Kernel 6.6.52 中,同是dpa_alloc_new 函数中的 DUMP(alloc); &alloc->free 和 &alloc->used 都是空的;
0 Kudos
Reply
1,384 Views
yipingwang
NXP TechSupport
NXP TechSupport

I downloaded the pre-built image package and verified the images on ls1043ardb, it worked normally without any problem.

wget https://www.nxp.com/lgfiles/sdk/lsdk2506/boot_LS_arm64_lts_6.6.52.tar.zst

Please try to use Image provided in this pre-built image package and please port your dts file based on fsl-ls1043a-rdb-sdk.dts.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2157254%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ELS1023a%20linux%20initialize%20dpa_priv_bp_create%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2157254%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EDear%20NXP%20team%2C%20my%20chip%20is%20LS-1023a%20and%20I%20need%20to%20upgrade%20my%20current%20linux%204.9%20kernel%20to%20linux%206.6%20kernel%20(derived%20from%20flexbuild)%20without%20updating%20the%20u-boot%2C%20only%20the%20linux%20kernel%20version.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EDuring%20linux%20initialization%20boot.%3C%2FSPAN%3E%3CSPAN%3E%20There%20was%20a%20dpa_priv_bp_create%20creation%20failure%2C%20causing%20the%20Ethernet%20port%20to%20not%20be%20created%20and%20used%20properly%20once%20I%20got%20into%20the%20system.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20can%20confirm%20that%20during%20the%20uboot%20phase%2C%20the%20ethernet%20port%20can%20be%20used%20normally%20and%20the%20image%20can%20be%20loaded%20via%20tftp.%3C%2FP%3E%3CP%3E%3CSPAN%3EAn%20excerpt%20from%20the%20linux%20boot%20log%20is%20below%20(see%20attachment%20for%20full%20log)%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%5B%2019.286572%5D%20Freeing%20initrd%20memory%3A%2034712K%20%3CBR%20%2F%3E%5B%2019.310596%5D%20Freescale%20FM%20module%2C%20FMD%20API%20version%2021.1.0%20%3CBR%20%2F%3E%5B%2019.317821%5D%20Freescale%20FM%20Ports%20module%20%3CBR%20%2F%3E%5B%2019.321500%5D%20fsl_mac%3A%20fsl_mac%3A%20FSL%20FMan%20MAC%20API%20based%20driver%20%3CBR%20%2F%3E%5B%2019.327376%5D%20fsl_mac%201ae4000.ethernet.%20FMan%20MEMAC%20%3CBR%20%2F%3E%5B%2019.332012%5D%20fsl_mac%201ae4000.ethernet.%20FMan%20MAC%20address%3A%2000%3A11%3A22%3A33%3A44%3A55%20%3CBR%20%2F%3E%5B%2019.338926%5D%20fsl_dpa%3A%20FSL%20DPAA%20Ethernet%20driver%20%3CBR%20%2F%3E%5B%2019.343613%5D%20alloc_range(1%2C0%2C0)%20%3CBR%20%2F%3E%5B%2019.346679%5D%20Free%20Nodes%20%3CBR%20%2F%3E%5B%2019.349034%5D%20%3CBR%20%2F%3E%5B%2019.350876%5D%20Used%20Nodes%20%3CBR%20%2F%3E%5B%2019.353231%5D%20%3CBR%20%2F%3E%5B%2019.355072%5D%20returning%20-12%20%3CBR%20%2F%3E%5B%2019.357688%5D%20Free%20Nodes%20%3CBR%20%2F%3E%5B%2019.360052%5D%20%3CBR%20%2F%3E%5B%2019.361886%5D%20Used%20Nodes%20%3CBR%20%2F%3E%5B%2019.364247%5D%20%3CBR%20%2F%3E%5B%2019.366089%5D%20393%3Abman_alloc_bpid%20ret%20%3A%20-12%20%3CBR%20%2F%3E%5B%2019.370193%5D%20bman_new_pool()%20failed%20%3CBR%20%2F%3E%5B%2019.373591%5D%20fsl_dpa%3A%20dpa_bp_alloc()%20failed!%20err%20%3D%20-2131591224%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EThe%20call%20stack%20is%20as%20follows%3A%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3Edpaa_eth_priv_probe%3C%2FDIV%3E%3CDIV%3E%20%20%20%20-%20%26gt%3B%20dpa_priv_bp_create%3C%2FDIV%3E%3CDIV%3E%20%20%20%20%20%20%20%20%20%20%20-%20%26gt%3B%20dpa_bp_alloc%3C%2FDIV%3E%3CDIV%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%20%26gt%3B%20bman_new_poll%3C%2FDIV%3E%3CDIV%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-%20%26gt%3B%20bman_alloc_bpid%20%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2161717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1023a%20linux%20%E5%88%9D%E5%A7%8B%E5%8C%96dpa_priv_bp_create%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2161717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20downloaded%20the%20pre-built%20image%20package%20and%20verified%20the%20images%20on%20ls1043ardb%2C%20it%20worked%20normally%20without%20any%20problem.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ewget%20%3C%2FSPAN%3E%3CA%20id%3D%22menurkl%22%20class%3D%22fui-Link%20___1q1shib%20f2hkw1w%20f3rmtva%20f1ewtqcl%20fyind8e%20f1k6fduh%20f1w7gpdv%20fk6fouc%20fjoy568%20figsok6%20f1s184ao%20f1mk8lai%20fnbmjn9%20f1o700av%20f13mvf36%20f1cmlufx%20f9n3di6%20f1ids18y%20f1tx3yz7%20f1deo86v%20f1eh06m1%20f1iescvh%20fhgqx19%20f1olyrje%20f1p93eir%20f1nev41a%20f1h8hb77%20f1lqvz6u%20f10aw75t%20fsle3fq%20f17ae5zn%22%20tabindex%3D%220%22%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk2506%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20nofollow%22%20aria-label%3D%22Link%20https%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk2506%2F%22%20data-testid%3D%22atp-safelink%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Flgfiles%2Fsdk%2Flsdk2506%2F%3C%2FA%3E%3CSPAN%3Eboot_LS_arm64_lts_6.6.52.tar.zst%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPlease%20try%20to%20use%20Image%20provided%20in%20this%20pre-built%20image%20package%20and%20please%20port%20your%20dts%20file%20based%20on%26nbsp%3Bfsl-ls1043a-rdb-sdk.dts.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158030%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1023a%20linux%20%E5%88%9D%E5%A7%8B%E5%8C%96dpa_priv_bp_create%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158030%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E1.%20in%20Linux%20Kernel%204.9%2C%20DUMP(alloc)%20in%20the%20dpa_alloc_new%20function%3B%20can%20print%20a%20lot%20of%20information%3B%20%3CBR%20%2F%3E2.%20in%20Linux%20Kernel%206.6.52%2C%20DUMP(alloc)%20in%20the%20same%20dpa_alloc_new%20function%3B%20%26amp%3Balloc-%20%26gt%3Bfree%20and%20%26amp%3Balloc-%20%26gt%3Bused%20are%20both%20empty%3B%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158007%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1023a%20linux%20%E5%88%9D%E5%A7%8B%E5%8C%96dpa_priv_bp_create%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158007%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ELinux%20Kernel%204.9%20works%20fine.%20%3CBR%20%2F%3ELinux%20Kernel%206.6.52%20is%20based%20on%20the%20flexbuild%20(LSDK-25.06_DEBIAN-12_LF-6.6.52)%20version.The%20Linux%20Kernel%20boots%20with%20bman_new_pool()%20failed!%20Causes%20Ethernet%20eth0%20to%20not%20be%20created.%20%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2157959%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1023a%20linux%20%E5%88%9D%E5%A7%8B%E5%8C%96dpa_priv_bp_create%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2157959%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EDoes%20Linux%20Kernel%204.9%20work%20properly.%3C%2FP%3E%0A%3CP%3EPlease%20download%20this%20version%20of%20Linux%20Kernel%20source%20provided%20by%20NXP%20to%20see%20if%20it%20works.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-qoriq%2Flinux%2Ftree%2Flf-6.6.52-2.2.0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-qoriq%2Flinux%2Ftree%2Flf-6.6.52-2.2.0%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E