Re: [PATCH] selftests/powerpc: Only test lwm/stmw on big endian

2021-01-19 Thread Libor Pechacek
l > still emulate those instructions even when running little > endian (which is arguably a kernel bug). > > But we don't really need to test that case, so ifdef those > instructions out to get the alignment test building again. > > Reported-by: Libor Pechacek > Signed-

Re: [PATCH] powerpc: drmem: avoid NULL pointer dereference when drmem is unavailable

2020-01-28 Thread Libor Pechacek
Hello Nathan, On Thu 23-01-20 09:56:10, Nathan Lynch wrote: > Libor Pechacek writes: > > In KVM guests drmem structure is only zero initialized. Trying to > > manipulate DLPAR parameters results in a crash in this environment. > > I think this statement needs qualification

[PATCH] powerpc: drmem: avoid NULL pointer dereference when drmem is unavailable

2020-01-16 Thread Libor Pechacek
is prevented. Fixes: 6c6ea53725b3 ("powerpc/mm: Separate ibm, dynamic-memory data from DT format") Cc: Michal Suchanek Cc: sta...@vger.kernel.org Signed-off-by: Libor Pechacek --- arch/powerpc/include/asm/drmem.h| 4 ++-- arch/powerpc/platforms/pseries/hotplug-memory.