Re: [PATCH] powerpc: Fix initrd corruption with relative jump labels

2021-06-15 Thread Roman Bolshakov
itrd, we can corrupt > the initrd. Depending on how exactly we corrupt the initrd it can either > cause the system to not boot, or just corrupt one of the files in the > initrd. > > The fix is simply to make the key value relative to the jump_entry > struct in the ARCH_STATIC

Re: [PATCH] Revert "powerpc: Switch to relative jump labels"

2021-05-30 Thread Roman Bolshakov
On Sat, May 29, 2021 at 09:39:49AM +1000, Michael Ellerman wrote: > Roman Bolshakov writes: > > This reverts commit b0b3b2c78ec075cec4721986a95abbbac8c3da4f. > > > > Otherwise, direct kernel boot with initramfs no longer works in QEMU. > > It's broken in some bizar

[PATCH] Revert "powerpc: Switch to relative jump labels"

2021-05-27 Thread Roman Bolshakov
s not initramfs (XZ-compressed data is corrupt); looks like an initrd The issue is observed on v5.13-rc3 if the kernel is built with defconfig, GCC 7.5.0 and GNU ld 2.32.0. Cc: Christophe Leroy Reported-by: Anastasia Kovaleva Signed-off-by: Roman Bolshakov --- arch/powerpc/Kc

Re: HPT allocation failures on POWER8 KVM hosts

2019-12-12 Thread Roman Bolshakov
On Mon, Nov 18, 2019 at 02:42:42PM +0300, Roman Bolshakov wrote: > On Mon, Nov 18, 2019 at 01:02:00PM +1100, Daniel Axtens wrote: > > Hi Roman, > > > > > We're running a lot of KVM virtual machines on POWER8 hosts and > > > sometimes new VMs can't

MODPOST warnings on ppc64le

2019-12-11 Thread Roman Bolshakov
Hello, I'm seeing a set of build warnings on the 5.5-rc1 kernel: WARNING: vmlinux.o(.text+0x31e4): Section mismatch in reference from the variable __boot_from_prom to the function .init.text:prom_init() The function __boot_from_prom() references the function __init prom_init(). This is often bec

Re: HPT allocation failures on POWER8 KVM hosts

2019-11-18 Thread Roman Bolshakov
On Mon, Nov 18, 2019 at 01:02:00PM +1100, Daniel Axtens wrote: > Hi Roman, > > > We're running a lot of KVM virtual machines on POWER8 hosts and > > sometimes new VMs can't be started because there are no contiguous > > regions for HPT because of CMA region fragmentation. > > > > The issue is cove

HPT allocation failures on POWER8 KVM hosts

2019-11-15 Thread Roman Bolshakov
Hi Aneesh, We're running a lot of KVM virtual machines on POWER8 hosts and sometimes new VMs can't be started because there are no contiguous regions for HPT because of CMA region fragmentation. The issue is covered in the LWN article: https://lwn.net/Articles/684611/ The article points that you