LSDK20.04-isc-19 Memory Error

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

LSDK20.04-isc-19 Memory Error

60 次查看
Chidananda22
Contributor III

Hi All,

 

Previously I was using LSDK20.04-isc-09 . All running fine.

Now compiling my application with LSDK20.04-isc-19. Getting issue while pool creation .

It hangs . in GDB i can see stack corrupted .

compared . config and config/defconfig_arm64-dpaa-linuxapp-gcc.

Disabled : 

CONFIG_RTE_LA12XX_SOCKET_ID=0

CONFIG_RTE_LA12XX_SOCKET_MAX_SEG=0

 

Any memory and pool related changes I need to take care in my application.

Please suggest

标记 (1)
0 项奖励
回复
4 回复数

20 次查看
Chidananda22
Contributor III

Hi @LFGP 

Verified with LSDK 21.08 . Same result. Stuck in memory allocation  .

Currently our application working fine with isc-09 . But while migrating to isc-19 it is stuck in memory allocation .

 

Working Logs

  • fslmc: fslmc_get_container_group(): Container: dprc.2 has VFIO iommu group id = 11
  • fslmc: fslmc_vfio_setup_group(): VFIO Container FD is [0x1D]
  • fslmc: fslmc_map_dma(): --> Map address: 0x140000000, size: 1073741824
  • fslmc: rte_fslmc_vfio_dmamap(): Installed memory callback handler
  • fslmc: rte_fslmc_vfio_dmamap(): Total 1 segments found.
  • fslmc: Unable to map region (errno = 22)

 

  • fslmc: dpaa2_get_qbman_swp(): New Portal 0x17ffec3c0 (2) affined thread - 2340
  • fslmc: dpaa2_configure_stashing(): Portal= 2  CPU= 3 SDEST= 1
  • fslmc: DPAA Portal=0x17ffec3c0 (2) is affined to thread 2340
  • fslmc: dpaa2_get_qbman_swp(): New Portal 0x17ffe4dc0 (3) affined thread - 2341
  • fslmc: dpaa2_configure_stashing(): Portal= 3  CPU= 2 SDEST= 1
  • fslmc: DPAA Portal=0x17ffe4dc0 (3) is affined to thread 2341
  • fslmc: fslmc_memevent_cb(): Request for alloc, va=0x1c0000000, virt_addr=0x1c0000000, iova=0x1c0000000, map_len=1073741824
  • fslmc: fslmc_map_dma(): --> Map address: 0x1c0000000, size: 1073741824
  • fslmc: fslmc_memevent_cb(): Total Mapped: addr=0x1c0000000, len=1073741824
  • fslmc: dpaa2_get_qbman_swp(): New Portal 0x17ffdd7c0 (4) affined thread - 2338
  • fslmc: dpaa2_configure_stashing(): Portal= 4  CPU= 1 SDEST= 0
  • fslmc: DPAA Portal=0x17ffdd7c0 (4) is affined for eth rx to thread 2338
  • fslmc: fslmc_memevent_cb(): Request for alloc, va=0x200000000, virt_addr=0x200000000, iova=0x200000000, map_len=1073741824

 

Not working Logs

  • fslmc: fslmc_get_group_id(): GROUP(dprc.2) has VFIO iommu group id = 11
  • fslmc: fslmc_vfio_setup_group(): VFIO GROUP FD is 28
  • fslmc: fslmc_map_dma(): DMA MEM map size(40000000): VA(140000000):IOVA(140000000):PHY(2700000000)
  • fslmc NOTICE: DMA MEM map size(40000000): VA(140000000):IOVA(140000000):PHY(2700000000)
  • fslmc: rte_fslmc_vfio_dmamap(): Installed memory callback handler
  • fslmc: rte_fslmc_vfio_dmamap(): Total 1 segments found.

Stuck Here

  • fslmc: fslmc_memevent_cb(): alloc, va=0x180000000, virt=180000000, iova=180000000, len=1073741824
  • fslmc: fslmc_map_dma(): DMA MEM map size(40000000): VA(180000000):IOVA(180000000):PHY(26c0000000)

 

recompiled again with

CONFIG_RTE_LA12XX_SOCKET_ID=0

CONFIG_RTE_LA12XX_SOCKET_MAX_SEG=0

 

No success . If any quick help based on above logs .

0 项奖励
回复

7 次查看
LFGP
NXP TechSupport
NXP TechSupport
dear @Chidananda22

please be sure regarding the free space to allocate the DMA.
On the other hand, please set the CONFIG_DEBUG_FS, CONFIG_DMA_API_DEBUG in the Kernel, in order to get out more info about the issue.
could you please share the complete logs for isc-09 and isc-19 as a compressed file.
0 项奖励
回复

20 次查看
Chidananda22
Contributor III

 thanks @LFGP  for your quick response . I will use 21.08 LSDK and update you ,

0 项奖励
回复

34 次查看
LFGP
NXP TechSupport
NXP TechSupport

dear @Chidananda22 ,

there were several updates between  both releases (LSDK20.04-isc-09-Ubuntu 18 and  LSDK20.04-isc-19-Ubuntu20).

You need to upgrade your developer environment. Please considere to use the LSDK21.08 release.

BR

LFGP

0 项奖励
回复