merged.

Bruce

In message: [linux-yocto][linux-yocto 
v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc & 
v6.1/standard/nxp-sdk-6.1/nxp-soc][PATCH] arm64: dts: imx93-11x11-evk: Use 
"alloc-ranges" + "size" instead of "reg" for the ethosu_mem
on 12/05/2024 Xiaolei Wang via lists.yoctoproject.org wrote:

> Reserve memory defined through "reg" is unconditionally set as reserve
> memory, so these reserve memory regions can also be successfully set in
> the crash kernel. However, if they are also used as CMA memory and
> their starting addresses are not within the accessible range of the
> crash kernel, it will cause the following memory access exception.
> On the other hand, reserve memory defined through the combination of
> "alloc-ranges" and "size" will be allocated from the memory space
> accessible to the current kernel. If there is no memory that meets the
> corresponding restriction conditions, allocation will fail, thus
> avoiding the memory access exception mentioned earlier. For the crash
> kernel, it is acceptable for allocation of reserve memory to fail in
> such cases.
> 
> At the same time, verify the npu working problem through python3 
> label_image.py
> -d /usr/lib64/libethosu_delegate.so -i grace_hopper.bmp -l labels.txt. No
> exceptions have been found yet
> 
> Unable to handle kernel paging request at virtual address fffffffe00000000
> Mem abort info:
>   ESR = 0x0000000096000006
>   EC = 0x25: DABT (current EL), IL = 32 bits
>   SET = 0, FnV = 0
>   EA = 0, S1PTW = 0
>   FSC = 0x06: level 2 translation fault
> Data abort info:
>   ISV = 0, ISS = 0x00000006
>   CM = 0, WnR = 0
> swapper pgtable: 4k pages, 39-bit VAs, pgdp=00000000defd8000
> [fffffffe00000000] pgd=10000000fd4a7003, p4d=10000000fd4a7003, 
> pud=10000000fd4a7003, pmd=0000000000000000
> Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
> Modules linked in:
> CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W          
> 6.1.83-yocto-standard #1
> Hardware name: NXP i.MX93 11X11 EVK board (DT)
> pstate: 00400009 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
> pc : cma_init_reserved_areas+0xb4/0x24c
> lr : cma_init_reserved_areas+0x88/0x24c
> sp : ffffffc00b32bd40
> x29: ffffffc00b32bd40 x28: 0000000000000680 x27: fffffffe00000000
> x26: ffffffc009866078 x25: ffffffc00974e5e8 x24: ffffffc00b2b9d70
> x23: 0000000000000000 x22: ffffffc00b2b9dd8 x21: 00000000000c0000
> x20: ffffffc0098f6008 x19: ffffffc00b2b9d70 x18: 00000000fffffffd
> x17: 20647261646e6174 x16: 732d6f74636f792d x15: ffffffc00b32b2e0
> x14: 0000000000000000 x13: 303278302f303178 x12: 302b6b726f665f6d
> x11: 656572665f74696e x10: 0000000000000004 x9 : ffffffc00919c8f4
> x8 : ffffff80214f8000 x7 : 00000000d6d64d8a x6 : 00000000d0855cef
> x5 : 00ffffffffffffff x4 : 0000000000000001 x3 : ffffffc0098f6008
> x2 : 0000000000000001 x1 : ffffffc00a125700 x0 : 0000000000000000
> Call trace:
>  cma_init_reserved_areas+0xb4/0x24c
>  do_one_initcall+0xb0/0x33c
>  kernel_init_freeable+0x2d4/0x344
>  kernel_init+0x30/0x140
>  ret_from_fork+0x10/0x20
> 
> Signed-off-by: Xiaolei Wang <xiaolei.w...@windriver.com>
> ---
>  arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts 
> b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> index d58bce2a86e2..50822162bf9a 100644
> --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> @@ -36,7 +36,8 @@ linux,cma {
>               ethosu_mem: ethosu_region@C0000000 {
>                       compatible = "shared-dma-pool";
>                       reusable;
> -                     reg = <0x0 0xC0000000 0x0 0x10000000>;
> +                     alloc-ranges = <0 0xB0000000 0 0x20000000>;
> +                     size = <0 0x10000000>;
>               };
>  
>               vdev0vring0: vdev0vring0@a4000000 {
> -- 
> 2.25.1
> 

> 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13934): 
https://lists.yoctoproject.org/g/linux-yocto/message/13934
Mute This Topic: https://lists.yoctoproject.org/mt/106055550/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to