Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Hari Bathini
On 04/01/2016 04:07 PM, Michael Ellerman wrote: On Fri, 2016-04-01 at 12:23 +0530, Hari Bathini wrote: On 04/01/2016 11:44 AM, Michael Ellerman wrote: On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: Some of the interrupt vectors on 64-bit POWER server processors are only 32 bytes lon

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Michael Ellerman
On Fri, 2016-04-01 at 08:37 +0200, Gabriel Paubert wrote: > On Fri, Apr 01, 2016 at 05:14:35PM +1100, Michael Ellerman wrote: > > If you build an allmodconfig, and turn on CONFIG_RELOCATABLE, and then look > > at > > the disassembly, you see this: > > > > c0006ffc: 48 00 29 04

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Michael Ellerman
On Fri, 2016-04-01 at 12:23 +0530, Hari Bathini wrote: > > On 04/01/2016 11:44 AM, Michael Ellerman wrote: > > On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: > > > Some of the interrupt vectors on 64-bit POWER server processors are > > > only 32 bytes long (8 instructions), which is not e

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Gabriel Paubert
Hi Michael, On Fri, Apr 01, 2016 at 05:14:35PM +1100, Michael Ellerman wrote: > On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: > > Some of the interrupt vectors on 64-bit POWER server processors are > > only 32 bytes long (8 instructions), which is not enough for the full > ... > > Le

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Hari Bathini
On 04/01/2016 11:44 AM, Michael Ellerman wrote: On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: Some of the interrupt vectors on 64-bit POWER server processors are only 32 bytes long (8 instructions), which is not enough for the full ... Let us fix this undependable code path by movi

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-03-31 Thread Michael Ellerman
On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: > Some of the interrupt vectors on 64-bit POWER server processors are > only 32 bytes long (8 instructions), which is not enough for the full ... > Let us fix this undependable code path by moving these OOL handlers below > __end_interrupts ma

[PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-03-30 Thread Hari Bathini
Some of the interrupt vectors on 64-bit POWER server processors are only 32 bytes long (8 instructions), which is not enough for the full first-level interrupt handler. For these we need to branch to an out- of-line (OOL) handler. But when we are running a relocatable kernel, interrupt vectors til