[arc:topic-mmu 25/32] arch/arc/include/asm/mmu-arcv2.h:79:1: warning: 'inline' is not at beginning of declaration

2021-08-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-mmu head: aad84191703280f0aace986bff0afd917b77511e commit: d6ebfa35edcd6b043526f8d4dc6425f8c8afe3ae [25/32] ARC: mm: disintegrate mmu.h (arcv2 bits out) config: arc-randconfig-r012-20210805 (attached as .config

[arc:topic-mmu 15/32] arch/arc/mm/tlb.c:109:36: error: 'TLBDeleteEntry' undeclared

2021-08-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-mmu head: aad84191703280f0aace986bff0afd917b77511e commit: 44180330845d9748c468560312cd2ce28101325f [15/32] ARC: mm: retire MMUv1 and MMUv2 support config: arc-randconfig-r012-20210805 (attached as .config) compiler

[RFC] bitops/non-atomic: make @nr unsigned to avoid any DIV

2021-08-05 Thread Vineet Gupta
signed math causes generation of costlier instructions such as DIV when they could be done by barrerl shifter. Worse part is this is not caught by things like bloat-o-meter since instruction length / symbols are typically same size. e.g. stock (signed math) __ 919b4614 : 919b461

Re: [PATCH 00/11] ARC atomics update

2021-08-05 Thread Vineet Gupta
On 8/5/21 2:02 AM, Peter Zijlstra wrote: > On Wed, Aug 04, 2021 at 12:15:43PM -0700, Vineet Gupta wrote: > >> Vineet Gupta (10): >>ARC: atomics: disintegrate header >>ARC: atomic: !LLSC: remove hack in atomic_set() for for UP >>ARC: atomic: !LLSC: use int data type consistently >>A

[RFC PATCH 02/15] arch: mm: rename FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER

2021-08-05 Thread Zi Yan
From: Zi Yan This Kconfig option is used by individual arch to set its desired MAX_ORDER. Rename it to reflect its actual use. Signed-off-by: Zi Yan Cc: Vineet Gupta Cc: Shawn Guo Cc: Catalin Marinas Cc: Guo Ren Cc: Geert Uytterhoeven Cc: Thomas Bogendoerfer Cc: Ley Foon Tan Cc: Michael

Re: [PATCH 1/3] arch: Export machine_restart() instances so they can be called from modules

2021-08-05 Thread Lee Jones
On Thu, 05 Aug 2021, Greg Kroah-Hartman wrote: > On Thu, Aug 05, 2021 at 06:36:25PM +0100, Catalin Marinas wrote: > > On Thu, Aug 05, 2021 at 08:50:30AM +0100, Lee Jones wrote: > > > diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c > > > index b4bb67f17a2ca..cf89ce91d7145 100

Re: [PATCH 1/3] arch: Export machine_restart() instances so they can be called from modules

2021-08-05 Thread Greg Kroah-Hartman
On Thu, Aug 05, 2021 at 06:36:25PM +0100, Catalin Marinas wrote: > On Thu, Aug 05, 2021 at 08:50:30AM +0100, Lee Jones wrote: > > diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c > > index b4bb67f17a2ca..cf89ce91d7145 100644 > > --- a/arch/arm64/kernel/process.c > > +++ b/arch

Re: [PATCH 1/3] arch: Export machine_restart() instances so they can be called from modules

2021-08-05 Thread Catalin Marinas
On Thu, Aug 05, 2021 at 08:50:30AM +0100, Lee Jones wrote: > diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c > index b4bb67f17a2ca..cf89ce91d7145 100644 > --- a/arch/arm64/kernel/process.c > +++ b/arch/arm64/kernel/process.c > @@ -212,6 +212,7 @@ void machine_restart(char *cm

Re: [PATCH 00/11] ARC atomics update

2021-08-05 Thread Peter Zijlstra
On Thu, Aug 05, 2021 at 04:18:29PM +, Vineet Gupta wrote: > On 8/5/21 2:02 AM, Peter Zijlstra wrote: > > On Wed, Aug 04, 2021 at 12:15:43PM -0700, Vineet Gupta wrote: > > > >> Vineet Gupta (10): > >>ARC: atomics: disintegrate header > >>ARC: atomic: !LLSC: remove hack in atomic_set() f

Re: [PATCH 1/3] arch: Export machine_restart() instances so they can be called from modules

2021-08-05 Thread Thomas Bogendoerfer
On Thu, Aug 05, 2021 at 08:50:30AM +0100, Lee Jones wrote: > A recent attempt to convert the Power Reset Restart driver to tristate > failed because of the following compile error (reported once merged by > Stephen Rothwell via Linux Next): > > ERROR: "machine_restart" [drivers/power/reset/resta

Re: [PATCH 00/11] ARC atomics update

2021-08-05 Thread Peter Zijlstra
On Wed, Aug 04, 2021 at 12:15:43PM -0700, Vineet Gupta wrote: > Vineet Gupta (10): > ARC: atomics: disintegrate header > ARC: atomic: !LLSC: remove hack in atomic_set() for for UP > ARC: atomic: !LLSC: use int data type consistently > ARC: atomic64: LLSC: elide unused atomic_{and,or,xor,an

[PATCH 1/3] arch: Export machine_restart() instances so they can be called from modules

2021-08-05 Thread Lee Jones
A recent attempt to convert the Power Reset Restart driver to tristate failed because of the following compile error (reported once merged by Stephen Rothwell via Linux Next): ERROR: "machine_restart" [drivers/power/reset/restart-poweroff.ko] undefined! This error occurs since some of the machi

[PATCH 0/3] power: reset: Convert Power-Off driver to tristate

2021-08-05 Thread Lee Jones
Provide support to compile the Power-Off driver as a module. Elliot Berman (2): reboot: Export reboot_mode power: reset: Enable tristate on restart power-off driver Lee Jones (1): arch: Export machine_restart() instances so they can be called from modules arch/arc/kernel/reset.c