[PATCH v2] ARM: i.MX8M: esdctl: split memory banks for devices with >4G

2023-08-31 Thread Marco Felsch
At the moment the whole available memory is added to one single memory bank "ram0". This can cause barebox chainload issues on devices with a huge amount of memory like the i.MX8MP-EVK which has 6G of RAM if the barebox pbl binary is to large. The reason for this issues is that

Re: [PATCH 2/2] ARM: i.MX8M: esdctl: split memory banks for devices with >4G

2023-08-31 Thread Marco Felsch
On 23-08-31, Lucas Stach wrote: > Am Donnerstag, dem 31.08.2023 um 15:05 +0200 schrieb Marco Felsch: > > At the moment the whole available memory is added to one single memory > > bank "ram0". This can cause barebox chainload issues on devices with a > > huge amount of memory like the i.MX8MP-EVK

Re: [PATCH 2/2] ARM: i.MX8M: esdctl: split memory banks for devices with >4G

2023-08-31 Thread Lucas Stach
Am Donnerstag, dem 31.08.2023 um 15:05 +0200 schrieb Marco Felsch: > At the moment the whole available memory is added to one single memory > bank "ram0". This can cause barebox chainload issues on devices with a > huge amount of memory like the i.MX8MP-EVK which has 6G of RAM if the > barebox pbl

[PATCH 2/2] ARM: i.MX8M: esdctl: split memory banks for devices with >4G

2023-08-31 Thread Marco Felsch
At the moment the whole available memory is added to one single memory bank "ram0". This can cause barebox chainload issues on devices with a huge amount of memory like the i.MX8MP-EVK which has 6G of RAM if the barebox pbl binary is to large. The reason for this issues is that

[PATCH 1/2] ARM: i.MX: esdctl: add force_split option to add_mem

2023-08-31 Thread Marco Felsch
Currently add_mem() tries to merge the memory banks if they are continuous. Add a option to avoid this merge which is not always useful e.g. for devices with memory > 4G. Signed-off-by: Marco Felsch --- arch/arm/mach-imx/esdctl.c | 14 +++--- 1 file changed, 7 insertions(+), 7

Re: [PATCH 3/3] ARM: boards: Add MyirTech MYD-YA15XC-T development board support

2023-08-31 Thread Alexander Shiyan
> > +struct id_eeprom { > > + u8 hrcw_primary[0x10]; > > + u8 pn[64]; > > + u8 sn[64]; > > + u8 mac0[6]; > > + u8 mac1[6]; > > +} __packed; > > You could describe this as nvmem-cells in the DT and you'd automatically > get the MAC addresses assigned. ... > > + if

[PATCH master] ARM: mmu32: mark whole early pagetable region as reserved

2023-08-31 Thread Ahmad Fatoum
The TTB area allocated for early MMU is now 64K instead of 16K, yet only the old 16K were requested to ensure e.g. memtest doesn't touch them. Fix this by requesting the full region. Fixes: 407ff71a3b5d ("ARM: mmu: alloc 64k for early page tables") Signed-off-by: Ahmad Fatoum ---

Re: [PATCH 3/3] ARM: boards: Add MyirTech MYD-YA15XC-T development board support

2023-08-31 Thread Alexander Shiyan
Hello Ahmad. > Thanks for your patch. A few comments below. ... > > +ENTRY_FUNCTION(start_stm32mp15x_myir, r0, r1, r2) > > +{ > > + void *fdt; > > + > > + stm32mp_cpu_lowlevel_init(); > > + > > + if (IS_ENABLED(CONFIG_DEBUG_LL)) > > + setup_uart(); > > + > > + fdt =