Re: [5/8] powerpc/slb: Add documentation to runtime patching of SLB encoding

2015-08-12 Thread Michael Ellerman
On Wed, 2015-29-07 at 07:10:02 UTC, Anshuman Khandual wrote: > This patch adds some documentation to 'patch_slb_encoding' function > explaining about how it clears the existing immediate value in the > given instruction and inserts a new one there. > > Signed-off-by: Anshuman Khandual Applied to

Re: [5/8] powerpc/slb: Add documentation to runtime patching of SLB encoding

2015-08-11 Thread Michael Ellerman
On Wed, 2015-29-07 at 07:10:02 UTC, Anshuman Khandual wrote: > This patch adds some documentation to 'patch_slb_encoding' function > explaining about how it clears the existing immediate value in the > given instruction and inserts a new one there. > > Signed-off-by: Anshuman Khandual > --- > ar

[PATCH 5/8] powerpc/slb: Add documentation to runtime patching of SLB encoding

2015-07-29 Thread Anshuman Khandual
This patch adds some documentation to 'patch_slb_encoding' function explaining about how it clears the existing immediate value in the given instruction and inserts a new one there. Signed-off-by: Anshuman Khandual --- arch/powerpc/mm/slb.c | 13 - 1 file changed, 12 insertions(+), 1

Re: [RFC 5/8] powerpc/slb: Add documentation to runtime patching of SLB encoding

2015-07-22 Thread Segher Boessenkool
On Wed, Jul 22, 2015 at 03:51:03PM +1000, Michael Ellerman wrote: > How about: > > /* >* This function patches either an li or a cmpldi instruction with >* a new immediate value. This relies on the fact that both li >* (which is actually ori) and cmpldi both take a 16

Re: [RFC 5/8] powerpc/slb: Add documentation to runtime patching of SLB encoding

2015-07-22 Thread Michael Ellerman
On Wed, 2015-07-22 at 07:57 +0200, Gabriel Paubert wrote: > On Wed, Jul 22, 2015 at 03:51:03PM +1000, Michael Ellerman wrote: > > On Tue, 2015-07-21 at 12:28 +0530, Anshuman Khandual wrote: > > > From: "khand...@linux.vnet.ibm.com" > > > > > > This patch adds some documentation to 'patch_slb_enco

Re: [RFC 5/8] powerpc/slb: Add documentation to runtime patching of SLB encoding

2015-07-21 Thread Gabriel Paubert
On Wed, Jul 22, 2015 at 03:51:03PM +1000, Michael Ellerman wrote: > On Tue, 2015-07-21 at 12:28 +0530, Anshuman Khandual wrote: > > From: "khand...@linux.vnet.ibm.com" > > > > This patch adds some documentation to 'patch_slb_encoding' function > > explaining about how it clears the existing immed

Re: [RFC 5/8] powerpc/slb: Add documentation to runtime patching of SLB encoding

2015-07-21 Thread Michael Ellerman
On Tue, 2015-07-21 at 12:28 +0530, Anshuman Khandual wrote: > From: "khand...@linux.vnet.ibm.com" > > This patch adds some documentation to 'patch_slb_encoding' function > explaining about how it clears the existing immediate value in the > given instruction and inserts a new one there. > > diff

[RFC 5/8] powerpc/slb: Add documentation to runtime patching of SLB encoding

2015-07-21 Thread Anshuman Khandual
From: "khand...@linux.vnet.ibm.com" This patch adds some documentation to 'patch_slb_encoding' function explaining about how it clears the existing immediate value in the given instruction and inserts a new one there. Signed-off-by: Anshuman Khandual --- arch/powerpc/mm/slb.c | 8 +++- 1 f