Re: [PATCH] Make system_reset_pSeries relocatable

2016-07-27 Thread Balbir Singh
On Wed, Jul 27, 2016 at 09:50:03PM +1000, Nicholas Piggin wrote: > On Wed, 27 Jul 2016 17:32:06 +1000 > Balbir Singh wrote: > > > +#ifndef CONFIG_RELOCATABLE > > + b power7_wakeup_common > > +#else > > + /* > > +* We can't just use a direct branch to

Re: [PATCH] Make system_reset_pSeries relocatable

2016-07-27 Thread Nicholas Piggin
On Wed, 27 Jul 2016 20:01:24 +1000 Balbir Singh wrote: > On Wed, Jul 27, 2016 at 7:53 PM, Benjamin Herrenschmidt > wrote: > > On Wed, 2016-07-27 at 17:32 +1000, Balbir Singh wrote: > >> From: Balbir Singh > >> > >>

Re: [PATCH] Make system_reset_pSeries relocatable

2016-07-27 Thread Nicholas Piggin
On Wed, 27 Jul 2016 17:32:06 +1000 Balbir Singh wrote: > From: Balbir Singh > > Currently the power management bits are broken w.r.t. relocation. > There are direct branches from system_reset_pSeries to > power7_wakeup_*. The correct way to do it

Re: [PATCH] Make system_reset_pSeries relocatable

2016-07-27 Thread Balbir Singh
On Wed, Jul 27, 2016 at 05:32:06PM +1000, Balbir Singh wrote: > > From: Balbir Singh > > Currently the power management bits are broken w.r.t. relocation. > There are direct branches from system_reset_pSeries to > power7_wakeup_*. The correct way to do it is to do what >

Re: [PATCH] Make system_reset_pSeries relocatable

2016-07-27 Thread kbuild test robot
Hi, [auto build test ERROR on v4.7-rc7] [cannot apply to powerpc/next next-20160727] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] Make system_reset_pSeries relocatable

2016-07-27 Thread Balbir Singh
On Wed, Jul 27, 2016 at 7:53 PM, Benjamin Herrenschmidt wrote: > On Wed, 2016-07-27 at 17:32 +1000, Balbir Singh wrote: >> From: Balbir Singh >> >> Currently the power management bits are broken w.r.t. relocation. >> There are direct branches from

Re: [PATCH] Make system_reset_pSeries relocatable

2016-07-27 Thread Benjamin Herrenschmidt
On Wed, 2016-07-27 at 17:32 +1000, Balbir Singh wrote: > From: Balbir Singh > > Currently the power management bits are broken w.r.t. relocation. > There are direct branches from system_reset_pSeries to > power7_wakeup_*. Side track: we should really get rid of the

[PATCH] Make system_reset_pSeries relocatable

2016-07-27 Thread Balbir Singh
From: Balbir Singh Currently the power management bits are broken w.r.t. relocation. There are direct branches from system_reset_pSeries to power7_wakeup_*. The correct way to do it is to do what the slb miss handler does, which is jump to a small stub within the first