Re: [PATCH 04/14] powerpc/64s: avoid reloading (H)SRR registers if they are still valid

2021-04-03 Thread Nicholas Piggin
Excerpts from Michael Ellerman's message of April 3, 2021 12:28 pm: > Nicholas Piggin writes: >> diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S >> index ccf913cedd29..b466b3e1bb3f 100644 >> --- a/arch/powerpc/kernel/entry_64.S >> +++ b/arch/powerpc/kernel/entry_64.S >

Re: [PATCH 04/14] powerpc/64s: avoid reloading (H)SRR registers if they are still valid

2021-04-03 Thread Nicholas Piggin
Excerpts from Michael Ellerman's message of April 3, 2021 8:39 am: > Nicholas Piggin writes: >> When an interrupt is taken, the SRR registers are set to return to >> where it left off. Unless they are modified in the meantime, or the >> return address or MSR are modified, there is no need to reloa

Re: [PATCH 04/14] powerpc/64s: avoid reloading (H)SRR registers if they are still valid

2021-04-02 Thread Michael Ellerman
Nicholas Piggin writes: > diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S > index ccf913cedd29..b466b3e1bb3f 100644 > --- a/arch/powerpc/kernel/entry_64.S > +++ b/arch/powerpc/kernel/entry_64.S > @@ -64,6 +64,30 @@ exception_marker: > .section".text" >

Re: [PATCH 04/14] powerpc/64s: avoid reloading (H)SRR registers if they are still valid

2021-04-02 Thread Michael Ellerman
Nicholas Piggin writes: > When an interrupt is taken, the SRR registers are set to return to > where it left off. Unless they are modified in the meantime, or the > return address or MSR are modified, there is no need to reload these > registers when returning from interrupt. > > Introduce per-CPU

[PATCH 04/14] powerpc/64s: avoid reloading (H)SRR registers if they are still valid

2021-03-15 Thread Nicholas Piggin
When an interrupt is taken, the SRR registers are set to return to where it left off. Unless they are modified in the meantime, or the return address or MSR are modified, there is no need to reload these registers when returning from interrupt. Introduce per-CPU flags that track the validity of SR