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