Re: [PATCH v2 2/2] sparc64: Use lzcnt instruction for fls and __fls

2017-09-27 Thread David Miller
From: Anthony Yznaga Date: Wed, 27 Sep 2017 14:45:34 -0700 > Vijay, > Older assemblers may not support this flag so you’ll need to > hardcode the lzcnt instructions using .word directives. Right, older binutils do not support the T4 instructions. This is why we hardcode the opcodes for all of t

Re: [PATCH v2 2/2] sparc64: Use lzcnt instruction for fls and __fls

2017-09-27 Thread Anthony Yznaga
> On Sep 27, 2017, at 12:56 PM, Sam Ravnborg wrote: > > Hi Vijay. > > On Wed, Sep 27, 2017 at 01:25:26PM -0600, Vijay Kumar wrote: >> For T4 and above, patch fls and __fls functions >> at the boot time to use lzcnt instruction. >> >> Signed-off-by: Vijay Kumar >> Reviewed-by: Babu Moger >> -

Re: [PATCH v2 2/2] sparc64: Use lzcnt instruction for fls and __fls

2017-09-27 Thread David Miller
From: Sam Ravnborg Date: Wed, 27 Sep 2017 21:56:37 +0200 > Hi Vijay. > > On Wed, Sep 27, 2017 at 01:25:26PM -0600, Vijay Kumar wrote: >> For T4 and above, patch fls and __fls functions >> at the boot time to use lzcnt instruction. >> >> Signed-off-by: Vijay Kumar >> Reviewed-by: Babu Moger >>

Re: [PATCH v2 2/2] sparc64: Use lzcnt instruction for fls and __fls

2017-09-27 Thread Vijay Kumar
Hi Sam, On 9/27/2017 2:56 PM, Sam Ravnborg wrote: .size niagara4_patch_pageops,.-niagara4_patch_pageops + + .globl niagara4_patch_fls + .type niagara4_patch_fls,#function +niagara4_patch_fls: + NG_DO_PATCH(fls, NG4fls) + NG_DO_PATCH(__fls, __NG4fls) + r

Re: [PATCH v2 2/2] sparc64: Use lzcnt instruction for fls and __fls

2017-09-27 Thread Sam Ravnborg
Hi Vijay. On Wed, Sep 27, 2017 at 01:25:26PM -0600, Vijay Kumar wrote: > For T4 and above, patch fls and __fls functions > at the boot time to use lzcnt instruction. > > Signed-off-by: Vijay Kumar > Reviewed-by: Babu Moger > --- > arch/sparc/Makefile |1 + > arch/sparc/kernel/head_

[PATCH v2 2/2] sparc64: Use lzcnt instruction for fls and __fls

2017-09-27 Thread Vijay Kumar
For T4 and above, patch fls and __fls functions at the boot time to use lzcnt instruction. Signed-off-by: Vijay Kumar Reviewed-by: Babu Moger --- arch/sparc/Makefile |1 + arch/sparc/kernel/head_64.S |2 ++ arch/sparc/lib/Makefile |3 +++ arch/sparc/lib/NG4fls.S |