Re: 回复: 回复: 回复: [PATCH] firmware: scmi: Drop mmu_set_region_dcache_behaviour() misuse

Marek Vasut marek.vasut at mailbox.org
Fri Oct 31 05:10:44 CET 2025


On 10/31/25 4:36 AM, Alice Guo (OSS) wrote:

Hello Alice,

>> Would it be possible to fix up the SRAM mapping in:
>>
>> arch/arm/mach-imx/imx8ulp/soc.c:static struct mm_region
>> imx8ulp_arm64_mem_map[] = {
>>
>> ?
>>
>> --
>> Best regards,
>> Marek Vasut
> 
> Hi Marek,
> 
> Configuring the memory region for SCMI communication as MT_DEVICE_NGNRNE resolves the issue. With this change, SCMI works correctly and the i.MX8ULP boots successfully.
> 
>                  /* SRAM0 (align with 2M) */
>                  .virt = 0x22000000UL,
>                  .phys = 0x22000000UL,
> -               .size = 0x200000UL,
> +               .size = 0x1f000UL,
> +               .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
> +                        PTE_BLOCK_OUTER_SHARE |
> +                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
> +       }, {
> +               .virt = 0x2201f000UL,
> +               .phys = 0x2201f000UL,
> +               .size = 0x1000UL,
> +               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
> +                        PTE_BLOCK_NON_SHARE |
> +                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
> +       }, {
> +               .virt = 0x22020000UL,
> +               .phys = 0x22020000UL,
> +               .size = 0x1e0000UL,
>                  .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
>                           PTE_BLOCK_OUTER_SHARE |
>                           PTE_BLOCK_PXN | PTE_BLOCK_UXN
> 
Excellent !

Can you please submit a fix like this upstream ?


More information about the U-Boot mailing list