Add call to early_memtest() so that kernel compiled with
CONFIG_MEMTEST really perform memtest at startup when requested
via 'memtest' boot parameter.
Signed-off-by: Christophe Leroy <redacted>
---
arch/powerpc/kernel/setup-common.c | 3 +++
1 file changed, 3 insertions(+)
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2018-09-28 03:41:21
Christophe Leroy [off-list ref] writes:
quoted hunk
Add call to early_memtest() so that kernel compiled with
CONFIG_MEMTEST really perform memtest at startup when requested
via 'memtest' boot parameter.
Signed-off-by: Christophe Leroy <redacted>
---
arch/powerpc/kernel/setup-common.c | 3 +++
1 file changed, 3 insertions(+)
Add call to early_memtest() so that kernel compiled with
CONFIG_MEMTEST really perform memtest at startup when requested
via 'memtest' boot parameter.
Signed-off-by: Christophe Leroy <redacted>
---
arch/powerpc/kernel/setup-common.c | 3 +++
1 file changed, 3 insertions(+)
On a ppc64le VM this boils down to early_memtest(0, 0) for me.
I think it's too early, we don't set up max_low_pfn until
initmem_init().
If I move it after initmem_init() then it does something more useful:
Ok. On my 8xx max_low_pfn is set in mem_topology_setup().
Moving the test afte initmem_init() still works on the 8xx so I'll do that.
Thanks for testing.
Christophe
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2018-09-28 12:44:13
Christophe LEROY [off-list ref] writes:
Le 28/09/2018 à 05:41, Michael Ellerman a écrit :
quoted
Christophe Leroy [off-list ref] writes:
quoted
Add call to early_memtest() so that kernel compiled with
CONFIG_MEMTEST really perform memtest at startup when requested
via 'memtest' boot parameter.
Signed-off-by: Christophe Leroy <redacted>
---
arch/powerpc/kernel/setup-common.c | 3 +++
1 file changed, 3 insertions(+)
On a ppc64le VM this boils down to early_memtest(0, 0) for me.
I think it's too early, we don't set up max_low_pfn until
initmem_init().
If I move it after initmem_init() then it does something more useful:
Ok. On my 8xx max_low_pfn is set in mem_topology_setup().
Moving the test afte initmem_init() still works on the 8xx so I'll do that.