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

2021-06-17 Thread Michael Ellerman
On Mon, 14 Jun 2021 23:14:40 +1000, Michael Ellerman wrote: > Commit b0b3b2c78ec0 ("powerpc: Switch to relative jump labels") switched > us to using relative jump labels. That involves changing the code, > target and key members in struct jump_entry to be relative to the > address of the

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

2021-06-15 Thread Michael Ellerman
Roman Bolshakov writes: > On Mon, Jun 14, 2021 at 11:14:40PM +1000, Michael Ellerman wrote: >> Commit b0b3b2c78ec0 ("powerpc: Switch to relative jump labels") switched >> us to using relative jump labels. That involves changing the code, >> target and key members in struct jump_entry to be

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

2021-06-15 Thread Anastasia Kovaleva
> On 14 Jun 2021, at 16:14, Michael Ellerman wrote: > > Commit b0b3b2c78ec0 ("powerpc: Switch to relative jump labels") switched > us to using relative jump labels. That involves changing the code, > target and key members in struct jump_entry to be relative to the > address of the jump_entry,

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

2021-06-15 Thread Roman Bolshakov
On Mon, Jun 14, 2021 at 11:14:40PM +1000, Michael Ellerman wrote: > Commit b0b3b2c78ec0 ("powerpc: Switch to relative jump labels") switched > us to using relative jump labels. That involves changing the code, > target and key members in struct jump_entry to be relative to the > address of the

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

2021-06-15 Thread Greg Kurz
On Mon, 14 Jun 2021 17:57:40 +0200 Greg Kurz wrote: > On Mon, 14 Jun 2021 23:14:40 +1000 > Michael Ellerman wrote: > > > Commit b0b3b2c78ec0 ("powerpc: Switch to relative jump labels") switched > > us to using relative jump labels. That involves changing the code, > > target and key members in

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

2021-06-14 Thread Daniel Axtens
Hi Michael, > The fix is simply to make the key value relative to the jump_entry > struct in the ARCH_STATIC_BRANCH macro. This fixes the boot issues I observed. Thank you very much!! Tested-by: Daniel Axtens Kind regards, Daniel

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

2021-06-14 Thread Greg Kurz
On Mon, 14 Jun 2021 23:14:40 +1000 Michael Ellerman wrote: > Commit b0b3b2c78ec0 ("powerpc: Switch to relative jump labels") switched > us to using relative jump labels. That involves changing the code, > target and key members in struct jump_entry to be relative to the > address of the

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

2021-06-14 Thread Michael Ellerman
Commit b0b3b2c78ec0 ("powerpc: Switch to relative jump labels") switched us to using relative jump labels. That involves changing the code, target and key members in struct jump_entry to be relative to the address of the jump_entry, rather than absolute addresses. We have two static inlines that