[PATCH v4] of/fdt: Rework early_init_dt_scan_memory() to call directly

Andreas Rammhold andreas at rammhold.de
Sat Dec 17 11:42:14 AEDT 2022


Hi,

I've just debugged an issue that I traced down to this commit.

My mt7621 based board relies on the soc_info.mem_detect function for
memblock init which is never being called again with this patch being
applied.

The code in the original patch as well was on 6.0 doesn't allow any of
the other (fallback?) memory initialization code to run as
early_init_dt_scan_memory() always returns 0.

Was this an oversight in the implementation or are some follow-up
patches missing? Perhaps the code just has to return a different
value when it has found some blocks of memory that should be used?


Andi


More information about the Linuxppc-dev mailing list