[Skiboot] [PATCH] Set proper value for RPR register

Stewart Smith stewart at linux.vnet.ibm.com
Thu Jul 23 08:18:39 AEST 2015


Benjamin Herrenschmidt <benh at au1.ibm.com> writes:

> On Thu, 2015-06-18 at 08:11 -0400, Patrick Williams III wrote:
>> Do you have code elsewhere to set the register in the SLW?  You need
>> to update the SLW as well. Though, I think the RPR is only cleared on
>> winkle and not sleep.
>
> It's not in the list for the SLW, at least not with my current copy of
> p8_pore_table_static_data.c, but it's been a while since I've resynced
> this with the HWP's...
>
> However, I believe Linux restores it on the way back from winkle.

Looks like it:

~/linux$ ack SPRN_RPR arch/powerpc/
arch/powerpc/include/asm/reg.h
230:#define SPRN_RPR    0xBA    /* Relative Priority Register */

arch/powerpc/kernel/idle_power7.S
222:    mfspr   r3,SPRN_RPR
359:    mtspr   SPRN_RPR,r4

arch/powerpc/platforms/powernv/subcore-asm.S
50:     mfspr   r9,  SPRN_RPR
83:     mtspr   SPRN_RPR, r9



More information about the Skiboot mailing list