interface.
Example commands.
To enable: echo 1 > /proc/sys/kernel/nmi_watchdog
To disable: echo 0 > /proc/sys/kernel/nmi_watchdog
It can also achieved using the sysctl parameter kernel.nmi_watchdog
Signed-off-by: Babu Moger
---
arch/sparc/kernel/nmi.c | 26 ++
1
On 10/6/2016 11:34 PM, Sam Ravnborg wrote:
On Thu, Oct 06, 2016 at 03:16:42PM -0700, Babu Moger wrote:
Currently we do not have a way to enable/disable arch specific
watchdog handlers if it was implemented by any of the architectures.
This patch introduces new function
On 10/24/2016 5:54 AM, Yoshihiro Shimoda wrote:
Hi,
From: Mathias Nyman
Sent: Monday, October 24, 2016 6:58 PM
On 22.10.2016 01:25, Babu Moger wrote:
Never seen XHCI auto handoff working on TI and RENESAS cards.
Eventually, we force handoff. This code forces the handoff
unconditionally
On 10/24/2016 10:19 AM, Don Zickus wrote:
On Fri, Oct 21, 2016 at 04:50:21PM -0500, Babu Moger wrote:
Don,
On 10/21/2016 2:19 PM, Andrew Morton wrote:
On Fri, 21 Oct 2016 11:11:14 -0400 Don Zickus wrote:
On Thu, Oct 20, 2016 at 08:25:27PM -0700, Andrew Morton wrote:
On Thu, 20 Oct 2016
On 10/25/2016 1:51 AM, Mathias Nyman wrote:
On 24.10.2016 17:52, Babu Moger wrote:
On 10/24/2016 5:54 AM, Yoshihiro Shimoda wrote:
Hi,
From: Mathias Nyman
Sent: Monday, October 24, 2016 6:58 PM
On 22.10.2016 01:25, Babu Moger wrote:
Never seen XHCI auto handoff working on TI and RENESAS
proc or sysctl interface.
Example commands.
To enable: echo 1 > /proc/sys/kernel/nmi_watchdog
To disable: echo 0 > /proc/sys/kernel/nmi_watchdog
It can also achieved using the sysctl parameter kernel.nmi_watchdog
Signed-off-by: Babu Moger
---
arch/sparc/kernel/nmi.c
such that architectures can override its definitions.
Thanks to Don Zickus for his suggestions.
Here is the previous discussion
http://www.spinics.net/lists/sparclinux/msg16441.html
Babu Moger (4):
watchdog: Remove hardlockup handler references
watchdog: Move shared definitions to nmi.h
watchdog: Move
Move shared macros and definitions to nmi.h so that watchdog.c,
watchdog_hld.c or any other architecture specific handler can use
those definitions.
Signed-off-by: Babu Moger
---
include/linux/nmi.h | 19 +++
kernel/watchdog.c | 25 -
2 files
Separate hardlockup code from watchdog.c. It is mostly straight forward.
Remove everything inside CONFIG_HARDLOCKUP_DETECTORS. This code will go
to file watchdog_hld.c.
We also define weak handlers watchdog_nmi_enable and watchdog_nmi_disable.
Signed-off-by: Babu Moger
---
kernel/watchdog.c
Move hardlockup detector code to watchdog_hld.c.
Also update the makefile accordigly.
Signed-off-by: Babu Moger
---
kernel/Makefile |1 +
kernel/watchdog_hld.c | 238 +
2 files changed, 239 insertions(+), 0 deletions(-)
create mode
, since not all implementations make that distinction, for
optimal performance, a DCTI should not be placed in the instruction word
immediately following an annulled branch-always instruction (BA,A or
BPA,A)."
Signed-off-by: Babu Moger
Reviewed-by: Rob Gardner
---
arch/sparc/kernel/hea
/spinlock_types.h:5:3: error:
#error "please don't include this file directly"
Re-arrange the includes in qrwlock_types.h and also include spinlock.h
in qrwlock.c to fix it. This should also help other architectures when
queued rwlock is enabled.
Signed-off-by: Babu Moger
Reviewed-by: H
xchg16.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Steven Sistare
Reviewed-by: Shannon Nelson
Reviewed-by: Jane Chu
Reviewed-by: Vijay Kumar
---
arch/sparc/include/asm/cmpxchg_64.h | 49 +++---
1 files changed, 39 insertions(+), 10 deletions
This patch makes the necessary changes in SPARC architecture to enable
queued spinlock support. Here are some of the earlier discussions about
this feature.
https://lwn.net/Articles/561775/
https://lwn.net/Articles/590243/
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Steve Sistare
Reviewed-by: Shannon Nelson
Reviewed-by: Jane Chu
Reviewed-by: Vijay Kumar
---
arch/sparc/include/asm/cmpxchg_64.h | 29 +
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/arch
Enable queued rwlocks for SPARC. Here are the discussions on this feature
when this was introduced.
https://lwn.net/Articles/572765/
https://lwn.net/Articles/582200/
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
(u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
}
Define CPU_BIG_ENDIAN for SPARC to fix it.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |4
1 files changed, 4 insertions
324812.2+20.74
fserver IO 1200-2000 users 229538.87 284713.77 +24.03
Disk I/O results are little bit in negative territory. But majority of the
performance changes are in positive and it is significant in some cases.
Babu Moger (6):
kernel/locking: Fix compile error
On 5/22/2017 2:03 PM, David Miller wrote:
From: Babu Moger
Date: Fri, 19 May 2017 18:16:55 -0600
Some architectures use the following guard in include file
"asm/spinlock_types.h" to discourage including the file directly.
Saw these compile errors on SPARC when queued rwlo
(u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
}
Define CPU_BIG_ENDIAN for SPARC to fix it.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |4
1 files changed, 4 insertions
xchg16.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Steven Sistare
Reviewed-by: Shannon Nelson
Reviewed-by: Jane Chu
Reviewed-by: Vijay Kumar
---
arch/sparc/include/asm/cmpxchg_64.h | 49 +++---
1 files changed, 39 insertions(+), 10 deletions
nitial version
Babu Moger (7):
arch/sparc: Remove the check #ifndef __LINUX_SPINLOCK_TYPES_H
kernel/locking: Fix compile error with qrwlock.c
arch/sparc: Define config parameter CPU_BIG_ENDIAN
arch/sparc: Introduce cmpxchg_u8 SPARC
arch/sparc: Enable queued rwlocks for SPARC
arch/sparc: Int
ndif
Remove this un-necessary "ifndef __LINUX_SPINLOCK_TYPES_H" stanza from SPARC.
Signed-off-by: Babu Moger
Suggested-by: David Miller
---
arch/sparc/include/asm/spinlock_types.h |4
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/arch/sparc/include/asm/spinlock
-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Steve Sistare
Reviewed-by: Shannon Nelson
Reviewed-by: Jane Chu
Reviewed-by: Vijay Kumar
---
arch/sparc/include/asm/cmpxchg_64.h | 29 +
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/arch
are
replaced by the function in
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |1 +
arch/sparc/include/asm/qspinlock.h |7 +++
arch/sparc/include/asm/spinlock_64.h
: implicit declaration of function
‘arch_spin_unlock’
make[4]: *** [kernel/locking/qrwlock.o] Error 1
Include spinlock.h in qrwlock.c to fix it.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
kernel/locking
in include/asm-generic/qrwlock.h
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |1 +
arch/sparc/include/asm/qrwlock.h|7 ++
arch/sparc/include/asm/spinlock_64.h
On 5/24/2017 4:48 AM, Geert Uytterhoeven wrote:
On Tue, May 23, 2017 at 11:45 PM, Babu Moger wrote:
Found this problem while enabling queued rwlock on SPARC.
The parameter CONFIG_CPU_BIG_ENDIAN is used to clear the
specific byte in qrwlock structure. Without this parameter,
we clear the wrong
Arnd,
On 5/24/2017 5:18 AM, Arnd Bergmann wrote:
On Wed, May 24, 2017 at 11:59 AM, Geert Uytterhoeven
wrote:
On Tue, May 23, 2017 at 11:45 PM, Babu Moger wrote:
Found this problem while enabling queued rwlock on SPARC.
The parameter CONFIG_CPU_BIG_ENDIAN is used to clear the
specific byte
On 5/24/2017 10:09 AM, Arnd Bergmann wrote:
On Wed, May 24, 2017 at 4:45 PM, Babu Moger wrote:
On 5/24/2017 5:18 AM, Arnd Bergmann wrote:
On Wed, May 24, 2017 at 11:59 AM, Geert Uytterhoeven
wrote:
On Tue, May 23, 2017 at 11:45 PM, Babu Moger
wrote:
include/asm-generic/qrwlock.h is also
ndif
Remove this un-necessary "ifndef __LINUX_SPINLOCK_TYPES_H" stanza from SPARC.
Signed-off-by: Babu Moger
Suggested-by: David Miller
---
arch/sparc/include/asm/spinlock_types.h |4
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/arch/sparc/include/asm/spinlock
-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Steve Sistare
Reviewed-by: Shannon Nelson
Reviewed-by: Jane Chu
Reviewed-by: Vijay Kumar
---
arch/sparc/include/asm/cmpxchg_64.h | 29 +
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/arch
xchg16.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Steven Sistare
Reviewed-by: Shannon Nelson
Reviewed-by: Jane Chu
Reviewed-by: Vijay Kumar
---
arch/sparc/include/asm/cmpxchg_64.h | 49 +++---
1 files changed, 39 insertions(+), 10 deletions
: implicit declaration of function
‘arch_spin_unlock’
make[4]: *** [kernel/locking/qrwlock.o] Error 1
Include spinlock.h in qrwlock.c to fix it.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
kernel/locking
(u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
}
Define CPU_BIG_ENDIAN for SPARC to fix it.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |3 +++
1 files changed, 3 insertions
s defined now in qrwlock.h.
4. Removed check for CONFIG_QUEUED_SPINLOCKS in SPARC64 as it is the default
definition now for SPARC64 now. Cleaned-up the previous arch_spin_xxx
definitions as it is defined in qspinlock.h.
v1: Initial version
Babu Moger (7):
arch/sparc: Remove the chec
are
replaced by the function in
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |1 +
arch/sparc/include/asm/qspinlock.h |7 +++
arch/sparc/include/asm/spinlock_64.h
in include/asm-generic/qrwlock.h
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |1 +
arch/sparc/include/asm/qrwlock.h|7 ++
arch/sparc/include/asm/spinlock_64.h
Hi Arnd,
Here is the draft patch. Some questions below.
On 5/24/2017 5:18 AM, Arnd Bergmann wrote:
On Wed, May 24, 2017 at 11:59 AM, Geert Uytterhoeven
wrote:
On Tue, May 23, 2017 at 11:45 PM, Babu Moger wrote:
Found this problem while enabling queued rwlock on SPARC.
The parameter
On 5/25/2017 3:09 PM, Arnd Bergmann wrote:
On Thu, May 25, 2017 at 4:51 PM, Babu Moger wrote:
On 5/24/2017 5:18 AM, Arnd Bergmann wrote:
I guess the time is ripe for adding (both) symbols to all architectures?
Good idea. I think we can do most of this by adding a few lines to
arch/Kconfig
On 5/25/2017 5:27 PM, Max Filippov wrote:
On Wed, May 24, 2017 at 3:18 AM, Arnd Bergmann wrote:
On Wed, May 24, 2017 at 11:59 AM, Geert Uytterhoeven
wrote:
I guess the time is ripe for adding (both) symbols to all architectures?
Good idea. I think we can do most of this by adding a few
On 5/18/2017 9:26 PM, David Miller wrote:
From: Babu Moger
Date: Thu, 18 May 2017 18:36:06 -0600
@@ -91,6 +91,10 @@ config ARCH_DEFCONFIG
config ARCH_PROC_KCORE_TEXT
def_bool y
+config CPU_BIG_ENDIAN
+ bool
+ default y if SPARC64
+
32-bit sparc is big-endian too
On 5/18/2017 9:27 PM, David Miller wrote:
From: Babu Moger
Date: Thu, 18 May 2017 18:36:05 -0600
Seeing this error on SPARC while compiling qrwlock.c.
CC kernel/locking/qrwlock.o
In file included from ./include/asm-generic/qrwlock_types.h:5,
from ./arch/sparc
On 5/18/2017 9:31 PM, David Miller wrote:
From: Babu Moger
Date: Thu, 18 May 2017 18:36:08 -0600
@@ -82,6 +82,7 @@ config SPARC64
select HAVE_ARCH_AUDITSYSCALL
select ARCH_SUPPORTS_ATOMIC_RMW
select HAVE_NMI
+ select ARCH_USE_QUEUED_RWLOCKS
If you
On 5/18/2017 9:32 PM, David Miller wrote:
From: Babu Moger
Date: Thu, 18 May 2017 18:36:10 -0600
@@ -83,6 +83,7 @@ config SPARC64
select ARCH_SUPPORTS_ATOMIC_RMW
select HAVE_NMI
select ARCH_USE_QUEUED_RWLOCKS
+ select ARCH_USE_QUEUED_SPINLOCKS
config
On 5/19/2017 4:03 AM, Peter Zijlstra wrote:
On Thu, May 18, 2017 at 10:31:13PM -0400, David Miller wrote:
From: Babu Moger
Date: Thu, 18 May 2017 18:36:08 -0600
@@ -82,6 +82,7 @@ config SPARC64
select HAVE_ARCH_AUDITSYSCALL
select ARCH_SUPPORTS_ATOMIC_RMW
select
in include/asm-generic/qrwlock.h
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |1 +
arch/sparc/include/asm/qrwlock.h|7 ++
arch/sparc/include/asm/spinlock_64.h
(u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
}
Define CPU_BIG_ENDIAN for SPARC to fix it.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |4
1 files changed, 4 insertions
-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Steve Sistare
Reviewed-by: Shannon Nelson
Reviewed-by: Jane Chu
Reviewed-by: Vijay Kumar
---
arch/sparc/include/asm/cmpxchg_64.h | 29 +
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/arch
d include spinlock.h
in qrwlock.c to fix it.
Also will be removing this stanza from SPARC. Stay tuned.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
include/asm-generic/qrwlock_types.h |6 +++---
kern
xchg16.
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Steven Sistare
Reviewed-by: Shannon Nelson
Reviewed-by: Jane Chu
Reviewed-by: Vijay Kumar
---
arch/sparc/include/asm/cmpxchg_64.h | 49 +++---
1 files changed, 39 insertions(+), 10 deletions
Remove the un-necessary "ifndef __LINUX_SPINLOCK_TYPES_H" stanza from SPARC.
Signed-off-by: Babu Moger
Suggested-by: David Miller
---
arch/sparc/include/asm/spinlock_types.h |4
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/arch/sparc/include/asm/spinlock_
ons as it is defined now in qrwlock.h.
4. Removed check for CONFIG_QUEUED_SPINLOCKS in SPARC64 as it is the default
definition now for SPARC64 now. Cleaned-up the previous arch_spin_xxx
definitions as it is defined in qspinlock.h.
v1: Initial version
Babu Moger (7):
kernel/locking: Fix compile er
are
replaced by the function in
Signed-off-by: Babu Moger
Reviewed-by: Håkon Bugge
Reviewed-by: Jane Chu
Reviewed-by: Shannon Nelson
Reviewed-by: Vijay Kumar
---
arch/sparc/Kconfig |1 +
arch/sparc/include/asm/qspinlock.h |7 +++
arch/sparc/include/asm/spinlock_64.h
to introduce new variable nmi_init_done to synchronize
watchdog thread and kernel init thread.
v1:
Initial version. Discussion thread here
http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1245427.html
Babu Moger (2):
watchdog: Introduce arch_watchdog_nmi_enable
On 10/7/2016 10:51 AM, Don Zickus wrote:
On Thu, Oct 06, 2016 at 03:16:41PM -0700, Babu Moger wrote:
During our testing we noticed that nmi watchdogs in sparc could not be disabled
or
enabled dynamically using sysctl/proc interface. Sparc uses its own arch
specific
nmi watchdogs
handlers. These functions are defined as weak as
architectures can override their definitions to enable/disable nmi
watchdog behaviour.
Signed-off-by: Babu Moger
---
kernel/watchdog.c | 65 +++-
1 files changed, 44 insertions(+), 21 deletions
watchdogs using proc or sysctl interface.
Example commands.
To enable: echo 1 > /proc/sys/kernel/nmi_watchdog
To disable: echo 0 > /proc/sys/kernel/nmi_watchdog
It can also achieved using the sysctl parameter kernel.nmi_watchdog
Signed-off-by: Babu Moger
---
arch/sparc/kernel/nmi.c
On 10/31/2016 4:00 PM, Don Zickus wrote:
On Wed, Oct 26, 2016 at 09:02:19AM -0700, Babu Moger wrote:
This is an attempt to cleanup watchdog handlers. Right now,
kernel/watchdog.c implements both softlockup and hardlockup detectors.
Softlockup code is generic. Hardlockup code is arch specific
On 10/31/2016 4:00 PM, Don Zickus wrote:
On Wed, Oct 26, 2016 at 09:02:19AM -0700, Babu Moger wrote:
This is an attempt to cleanup watchdog handlers. Right now,
kernel/watchdog.c implements both softlockup and hardlockup detectors.
Softlockup code is generic. Hardlockup code is arch specific
On 11/1/2016 8:20 AM, Don Zickus wrote:
On Mon, Oct 31, 2016 at 04:30:59PM -0500, Babu Moger wrote:
On 10/31/2016 4:00 PM, Don Zickus wrote:
On Wed, Oct 26, 2016 at 09:02:19AM -0700, Babu Moger wrote:
This is an attempt to cleanup watchdog handlers. Right now,
kernel/watchdog.c implements
.
is_hardlockup kind of generic most part.
kernel/built-in.o: In function `watchdog_overflow_callback':
watchdog_hld.c:(.text+0x56940): undefined reference to
`sysctl_hardlockup_all_cpu_backtrace'
Moved this definition to nmi.h.
v1:
Initial version
Babu Moger (3):
watchdog: Move shared
Separate hardlockup code from watchdog.c and move it to watchdog_hld.c.
It is mostly straight forward. Remove everything inside
CONFIG_HARDLOCKUP_DETECTORS. This code will go to file watchdog_hld.c.
Also update the makefile accordigly.
Signed-off-by: Babu Moger
---
kernel/Makefile |1
Move shared macros and definitions to nmi.h so that watchdog.c,
new file watchdog_hld.c or any other architecture specific handler
can use those definitions.
Signed-off-by: Babu Moger
---
include/linux/nmi.h | 24
kernel/watchdog.c | 28
proc or sysctl interface.
Example commands.
To enable: echo 1 > /proc/sys/kernel/nmi_watchdog
To disable: echo 0 > /proc/sys/kernel/nmi_watchdog
It can also achieved using the sysctl parameter kernel.nmi_watchdog
Signed-off-by: Babu Moger
---
arch/sparc/kernel/nmi.c
-ci/linux/commits/Babu-Moger/Define-CPU_BIG_ENDIAN-or-warn-for-inconsistencies/20170610-200424
config: microblaze-mmu_defconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 6.2.0
reproduce:
wget
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O
~/bin
On 6/12/2017 3:51 PM, Arnd Bergmann wrote:
On Mon, Jun 12, 2017 at 10:30 PM, Babu Moger wrote:
Looks like microblaze can be configured to either little or big endian
formats. How about
adding a choice statement to address this.
Here is my proposed patch.
Hi Babu,
This part looks fine
On 6/12/2017 3:58 PM, Max Filippov wrote:
On Mon, Jun 12, 2017 at 1:51 PM, Arnd Bergmann wrote:
That way, we don't have to guess what the toolchain does, but rather
tell it to do whatever is configured, like we do for most other architectures.
Unfortunately we can't do the same thing on
ion for microblaze.
Updated the Makefile for microblaze(Suggested by Arnd Bergmann) to
properly compile for the correct format.
Updated acks.
v1 -> v2:
Updated the commit messages and acks.
Babu Moger (3):
arch: Define CPU_BIG_ENDIAN for all fixed big endian archs
arch/microblaze: Add
microblaze architectures can be configured for either little or
big endian formats. Add a choice option for the user to select the
correct endian format(default to big endian).
Also update the Makefile so toolchain can compile for the format
it is configured for.
Signed-off-by: Babu Moger
is not defined on big endian
architecture and also warn if it defined on little endian architectures.
Here is our original discussion
https://lkml.org/lkml/2017/5/24/620
Signed-off-by: Babu Moger
Suggested-by: Arnd Bergmann
Acked-by: Geert Uytterhoeven
---
include/linux/byteorder/big_endian.h
/earlycon.c
drivers/tty/serial/serial_core.c
Be aware that this may cause regressions if someone has worked-around
problems in the above code already. Remove the work-around.
Here is our original discussion
https://lkml.org/lkml/2017/5/24/620
Signed-off-by: Babu Moger
Suggested-by: Arnd Bergmann
Hi Don,
On 6/14/2017 9:09 AM, Don Zickus wrote:
On Wed, Jun 14, 2017 at 02:11:18AM +1000, Nicholas Piggin wrote:
Yeah, if you wouldn't mind. Sorry for dragging this out, but I feel like we
are getting close to have this defined properly which would allow us to
split the code up correctly in
Nick,
On 6/14/2017 10:04 PM, Nicholas Piggin wrote:
On Wed, 14 Jun 2017 21:16:04 -0500
Babu Moger wrote:
Hi Don,
On 6/14/2017 9:09 AM, Don Zickus wrote:
On Wed, Jun 14, 2017 at 02:11:18AM +1000, Nicholas Piggin wrote:
Yeah, if you wouldn't mind. Sorry for dragging this out, but I feel
Tested on sparc:
Tested-by: Babu Moger
Reviewed patch #1, #2, #3
Reviewed-by: Babu Moger
On 6/16/2017 9:50 AM, Don Zickus wrote:
(adding Andrew)
On Fri, Jun 16, 2017 at 04:57:10PM +1000, Nicholas Piggin wrote:
This is the latest series to make the hardlockup watchdog more
easily
Hi Don, Nicholas,
On 6/6/2017 11:08 AM, Don Zickus wrote:
(adding Babu)
On Tue, May 30, 2017 at 11:26:55AM +1000, Nicholas Piggin wrote:
Since last time:
- Have the perf based hardlockup detector use arch_touch_nmi_watchdog()
rather than hld_touch_nmi_watchdog(). This changes direction
On 5/29/2017 9:56 PM, Michael Ellerman wrote:
Geert Uytterhoeven writes:
Hi Michael,
On Mon, May 29, 2017 at 2:07 PM, Michael Ellerman wrote:
Geert Uytterhoeven writes:
On Tue, May 23, 2017 at 11:45 PM, Babu Moger wrote:
Found this problem while enabling queued rwlock on SPARC
discussion
http://www.spinics.net/lists/devicetree/msg178101.html
Signed-off-by: Babu Moger
Suggested-by: Arnd Bergmann
---
include/linux/byteorder/big_endian.h|4
include/linux/byteorder/little_endian.h |4
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include
and sparc). And warn if there are inconsistencies in this definition.
Babu Moger (2):
arch: Define CPU_BIG_ENDIAN for all fixed big endian archs
include: warn for inconsistent endian config definition
arch/frv/Kconfig|3 +++
arch/h8300/Kconfig |3
);
}
Problem is many of the fixed big endian architectures dont define
CPU_BIG_ENDIAN and clears the wrong byte.
Define CPU_BIG_ENDIAN for all the fixed big endian architecture.
Here is the orinal discussion
http://www.spinics.net/lists/devicetree/msg178101.html
Signed-off-by: Babu Moger
Suggested
Geert,
On 6/9/2017 2:16 AM, Geert Uytterhoeven wrote:
Hi Babu,
On Fri, Jun 9, 2017 at 9:05 AM, Geert Uytterhoeven wrote:
Here is the original discussion
http://www.spinics.net/lists/devicetree/msg178101.html
Signed-off-by: Babu Moger
Suggested-by: Arnd Bergmann
Hmm, the link above refers
On 6/9/2017 9:11 AM, Geert Uytterhoeven wrote:
Hi Babu,
On Fri, Jun 9, 2017 at 3:55 PM, Babu Moger wrote:
On 6/9/2017 2:16 AM, Geert Uytterhoeven wrote:
On Fri, Jun 9, 2017 at 9:05 AM, Geert Uytterhoeven
wrote:
Here is the original discussion
http://www.spinics.net/lists/devicetree
On 6/9/2017 2:03 AM, Geert Uytterhoeven wrote:
On Fri, Jun 9, 2017 at 12:17 AM, Babu Moger wrote:
While working on enabling queued rwlock on SPARC, found
this following code in include/asm-generic/qrwlock.h
which uses CONFIG_CPU_BIG_ENDIAN to clear a byte.
static inline u8
is not defined on big endian
architecture and also warn if it defined on little endian architectures.
Here is our original discussion
https://lkml.org/lkml/2017/5/24/620
Signed-off-by: Babu Moger
Suggested-by: Arnd Bergmann
Acked-by: Geert Uytterhoeven
---
include/linux/byteorder/big_endian.h
/earlycon.c
drivers/tty/serial/serial_core.c
Be aware that this may cause regressions if someone has worked-around
problems in the above code already. Remove the work-around.
Here is our original discussion
https://lkml.org/lkml/2017/5/24/620
Signed-off-by: Babu Moger
Suggested-by: Arnd Bergmann
/2017/5/24/620
Based on the discussion, it was decided to add CONFIG_CPU_BIG_ENDIAN
for all the fixed big endian architecture(frv, h8300, m68k, openrisc,
parisc and sparc). And warn if there are inconsistencies in this definition.
v1 -> v2:
Updated the commit messages and acks.
Babu Moger
Reduce the size of data structure for lockdep entries half if
PROVE_LOCKING_SMALL if defined. This is used for sparc. This
config variable is disabled by default.
Signed-off-by: Babu Moger
---
kernel/locking/lockdep_internals.h | 13 ++---
1 files changed, 10 insertions(+), 3
v2:
As suggested by Peter Zijlstra, keeping the default as is.
Introduced new config variable CONFIG_PROVE_LOCKING_SMALL
to handle sparc specific case.
v0:
Initial revision.
Babu Moger (2):
config: Add new CONFIG_PROVE_LOCKING_SMALL
lockdep: Keep the static allocations sm
s sections. With
PROVE_LOCKING feature, the kernel size could grow beyond this limit and
causing system bootup issues. With this option, kernel limits the size
of the entries of lock_chains, stack_trace etc. so that kernel fits in
required size limit. This is only visible for sparc.
Signed-off-by: Babu Moger
On 9/27/2016 6:40 AM, Peter Zijlstra wrote:
On Tue, Sep 27, 2016 at 06:46:25AM +0200, Sam Ravnborg wrote:
Since this is only relevant for sparc, and for sparc this is "select"ed,
then there is limited/no gain having this as a visible menu config option.
How about adding just a simple
On 9/27/2016 10:43 AM, Sam Ravnborg wrote:
On Tue, Sep 27, 2016 at 09:51:40AM -0500, Babu Moger wrote:
On 9/27/2016 6:40 AM, Peter Zijlstra wrote:
On Tue, Sep 27, 2016 at 06:46:25AM +0200, Sam Ravnborg wrote:
Since this is only relevant for sparc, and for sparc this is "sele
Peter Zijlstra, keeping the default as is.
Introduced new config variable CONFIG_PROVE_LOCKING_SMALL
to handle sparc specific case.
v0:
Initial revision.
Babu Moger (2):
config: Adding the new config parameter CONFIG_PROVE_LOCKING_SMALL
for sparc
lockdep: Limit static alloc
row
beyond this limit and causing system boot-up issues. With this option,
kernel limits the size of the entries of lock_chains, stack_trace etc.,
so that kernel fits in required size limit. This is not visible to user
and only used for sparc.
Signed-off-by: Babu Moger
---
arch/sparc/Kconfig |
Reduce the size of data structure for lockdep entries by half if
PROVE_LOCKING_SMALL if defined. This is used only for sparc.
Signed-off-by: Babu Moger
---
kernel/locking/lockdep_internals.h | 20 +---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/kernel
Don,
On 10/21/2016 2:19 PM, Andrew Morton wrote:
On Fri, 21 Oct 2016 11:11:14 -0400 Don Zickus wrote:
On Thu, Oct 20, 2016 at 08:25:27PM -0700, Andrew Morton wrote:
On Thu, 20 Oct 2016 12:14:14 -0400 Don Zickus wrote:
-static int watchdog_nmi_enable(unsigned int cpu) { return 0; }
Never seen XHCI auto handoff working on TI and RENESAS cards.
Eventually, we force handoff. This code forces the handoff
unconditionally. It saves 5 seconds boot time for each card.
Signed-off-by: Babu Moger
---
v2:
Made changes per comments from Greg KH.
Extra space removal in assignment
Don,
On 10/17/2016 12:31 PM, Don Zickus wrote:
On Thu, Oct 13, 2016 at 01:38:01PM -0700, Babu Moger wrote:
Currently we do not have a way to enable/disable arch specific
watchdog handlers if it was implemented by any of the architectures.
This patch introduces new functions
:
Initial version. Discussion thread here
http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1245427.html
Babu Moger (2):
watchdog: Introduce arch_watchdog_nmi_enable and
arch_watchdog_nmi_disable
sparc: Implement arch_watchdog_nmi_enable and
arch_watchdog_nmi_disable
arch/sparc
handlers. These functions are defined as weak as
architectures can override their definitions to enable/disable nmi
watchdog behaviour.
Signed-off-by: Babu Moger
---
kernel/watchdog.c | 69 +++-
1 files changed, 46 insertions(+), 23 deletions
watchdogs using proc or sysctl interface.
Example commands.
To enable: echo 1 > /proc/sys/kernel/nmi_watchdog
To disable: echo 0 > /proc/sys/kernel/nmi_watchdog
It can also achieved using the sysctl parameter kernel.nmi_watchdog
Signed-off-by: Babu Moger
---
arch/sparc/kernel/nmi.c
401 - 500 of 561 matches
Mail list logo