IMX8QX memory overlap and VPU init fail

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

IMX8QX memory overlap and VPU init fail

2,990 Views
thepnimit
Contributor III

Hi nxp,

In kernel 5.10.35, I found log 

[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'm4@0x88000000': base 0x0000000088000000, size 128 MiB
[ 0.000000] OF: reserved mem: OVERLAP DETECTED!
[ 0.000000] vdev0vring0@90000000 (0x0000000090000000--0x0000000090008000) overlaps with rsc_table@90000000 (0x0000000090000000--0x0000000090008000)
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c0000000, size 960 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000090400000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vdevbuffer, compatible id shared-dma-pool
[ 0.000000] earlycon: lpuart32 at MMIO32 0x000000005a060000 (options '')
[ 0.000000] printk: bootconsole [lpuart32] enabled
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xffbc1700-0xffbc3fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x0000000083ffffff]
[ 0.000000] node 0: [mem 0x0000000084000000-0x00000000861fffff]
[ 0.000000] node 0: [mem 0x0000000086200000-0x000000008fffffff]
[ 0.000000] node 0: [mem 0x0000000090000000-0x000000009001ffff]
[ 0.000000] node 0: [mem 0x0000000090020000-0x00000000900fefff]
[ 0.000000] node 0: [mem 0x00000000900ff000-0x00000000900fffff]
[ 0.000000] node 0: [mem 0x0000000090100000-0x00000000901fffff]
[ 0.000000] node 0: [mem 0x0000000090200000-0x00000000904fffff]
[ 0.000000] node 0: [mem 0x0000000090500000-0x0000000091ffffff]
[ 0.000000] node 0: [mem 0x0000000092000000-0x0000000094bfffff]
[ 0.000000] node 0: [mem 0x0000000094c00000-0x00000000ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 25 pages/cpu s62104 r8192 d32104 u102400
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515592
[ 0.000000] Policy zone: DMA

and in DTB file is

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

rsc_table: rsc_table@90000000 {
reg = <0 0x90000000 0 0x8000>;
no-map;
};

vdev0vring0: vdev0vring0@90000000 {
reg = <0 0x90000000 0 0x8000>;
no-map;
};

This config is correctly or not? 

And It make VPU init fail or not?

[ 1.825604] [VPU Decoder] warning: init rtx channel failed, ret: -517
[ 1.832119] [VPU Decoder] failed to request mailbox, ret = -517
[ 1.844521] [VPU Encoder] warning: init rtx channel failed, ret: -517
[ 1.851133] [VPU Encoder] fail to request mailbox, ret = -517
[ 5.048018] [VPU Encoder] enable mu for core[0]
[ 5.061240] [VPU Encoder] vpu encoder core[0] firmware version is 1.3.0

0 Kudos
Reply
4 Replies

2,797 Views
lchen
Contributor III

I built an image for iMX8QM with the same kernel 5.10.35, and got the same warnings:

failed to reserve memory for node m4 and memory overlap.

Not sure if "failed to reserve memory for node m4" will impact the Cortex-M4 and the FPU operations, such as camera or audio?

 

[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'm4@0x88000000': base 0x0000000088000000, size 128 MiB
[ 0.000000] OF: reserved mem: OVERLAP DETECTED!
[ 0.000000] vdev0vring0@90000000 (0x0000000090000000--0x0000000090008000) overlaps with rsc_table0@90000000 (0x0000000090000000--0x000)
[ 0.000000] OF: reserved mem: OVERLAP DETECTED!
[ 0.000000] vdev0vring0@90100000 (0x0000000090100000--0x0000000090108000) overlaps with rsc_table1@90100000 (0x0000000090100000--0x000)
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c0000000, size 960 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000090400000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node vdevbuffer, compatible id shared-dma-pool

0 Kudos
Reply

2,980 Views
joanxie
NXP TechSupport
NXP TechSupport

what imx8qxp board version do you use? c0 or B0? did this demo images booting up? or your own built images?pls share with more detailed information

0 Kudos
Reply

2,976 Views
thepnimit
Contributor III

Hi joanxie,

I use image from NXP official LF_v5.10_2.0.0_images_IMX8QXPC0MEK.zip

https://www.nxp.com/webapp/Download?colCode=L5.10.35_2.0.0_MX8QXPC0&appType=license

my board chip's: B0

u-boot: imx-boot-imx8qxpmek-sd.bin-flash

dtb: imx8qxp-mek.dtb

Kernel image: Image-imx8_all.bin

os: imx-image-multimedia-imx8qxpc0mek.tar.bz2

dtb code I see in https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8x-mek.dt...

 

Best regards

 

0 Kudos
Reply

2,923 Views
joanxie
NXP TechSupport
NXP TechSupport

I have tested on my B0 board successfully, I attached the uuu.auto script, you can put it with your demo images, and use the command "uuu.exe uuu.auto" to download to the board and test again

0 Kudos
Reply