diff mbox

RED state exception (trap type 0x64) on U5 reboot

Message ID 528B745E.7050801@hurleysoftware.com
State RFC
Delegated to: David Miller
Headers show

Commit Message

Peter Hurley Nov. 19, 2013, 2:23 p.m. UTC
On 11/18/2013 10:46 AM, Meelis Roos wrote:
>>> First I compared the configurations of working and nonworking machines
>>> (there were 2 different machines from the same era with problem), then
>>> did some conf bisecting and found that CONFIG_SUN_OPENPROMFS causes the
>>> RED problem in 3.12-rc5 when compiled modular and module loaded. It did
>>> not happen when it was compiled statically, or modular but module was
>>> not loaded. Reduced minimalistic configuration that causes this on Ultra
>>> 5 is attached to this mail.

Is the problem unique to these 2 machines given this configuration, or is
the problem reproduceable on other machines using this configuration?

>>> With the minimalistic conf, I redid the bisect with a different range
>>> end, fixing vmalloc.h include when needed. This led me into tty changes
>>> again, maybe more precise this time because of vmalloc fixes (no commits
>>> skipped this time). This is the culprit today:
>>>
>>> 20bafb3d23d108bc0a896eb8b7c1501f4f649b77 is the first bad commit
>>> commit 20bafb3d23d108bc0a896eb8b7c1501f4f649b77
>>> Author: Peter Hurley <peter@hurleysoftware.com>
>>> Date:   Sat Jun 15 10:21:19 2013 -0400
>>>
>>>       n_tty: Move buffers into n_tty_data
>>>
>>>       Reduce pointer reloading and improve locality-of-reference;
>>>       allocate read_buf and echo_buf within struct n_tty_data.
>>>
>>>       Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
>>>       Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>>>
>>> :040000 040000 96d92e4e242c4b2ff11b25c005bccd093865b350
>>> 2822d87b2425c3e7adc7b722a20d739c9d4a3046 M      drivers
>>>
>>> This patch seems to switch ldata with its read_buf and echo_buf from
>>> kmalloc/kfree to vmalloc/vfree (the bufs are now inlined in ldata, not
>>> separately allocated).
>>
>> Yep, this makes more sense than the original bisect.
>>
>>> More fields in ldata are now explicitly initialized to zero instead of
>>> kzalloc doing it before. However, I do not see the initialization of
>>> some of the fields - maybe they are done later in the code? I noticed
>>> process_char_map, raw, real_raw, icanon, read_buf, echo_buf that were
>>> zeroed before but I did not find explicit zeroing of them after the
>>> patch. However, just adding a memset to zero ldata after vmalloc does
>>> not change anything.
>>>
>>> Openpromfs does not seem to be changed after 3.11 and it does not seem
>>> to use any tty layer functions.
>>>
>>> I still have no idea how it would interact.
>>
>> Me neither. But it looks like something depends on tty working before
>> the mmu is initialized. David, would you know what that is?
>
> It happens on the shutdown part of reboot, not startup - when we call
> prom "boot" command, it should output "Resetting ..." and reset but
> never outputs anything, then RED state exeption occurs. To the best of
> my understanding, Linux does not output anything any more at that point,
> only prom. Have we hooked into prom somehow? Openpromfs itselt just
> seems to read the in-memory data structures of device tree.



> Another strange symptom is that the problem did not happen when
> openpromfs is compiled in statically, not loaded as module. When loaded
> as module, its memory is vmalloc()ed... but that's probably too weak
> connection to conclude anything.

What happens with the not-even-compile-tested debug patch below?

--->%---
Subject: [PATCH] Debug instrumentation of exit_openprom_fs()


Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
---
  fs/openpromfs/inode.c | 7 +++++++
  1 file changed, 7 insertions(+)

Comments

Meelis Roos Nov. 27, 2013, 5:39 p.m. UTC | #1
> > > > First I compared the configurations of working and nonworking machines
> > > > (there were 2 different machines from the same era with problem), then
> > > > did some conf bisecting and found that CONFIG_SUN_OPENPROMFS causes the
> > > > RED problem in 3.12-rc5 when compiled modular and module loaded. It did
> > > > not happen when it was compiled statically, or modular but module was
> > > > not loaded. Reduced minimalistic configuration that causes this on Ultra
> > > > 5 is attached to this mail.
> 
> Is the problem unique to these 2 machines given this configuration, or is
> the problem reproduceable on other machines using this configuration?

Have not had a convenient way to test because it would need remote 
power cycling (most my sparcs are remote).

> > Another strange symptom is that the problem did not happen when
> > openpromfs is compiled in statically, not loaded as module. When loaded
> > as module, its memory is vmalloc()ed... but that's probably too weak
> > connection to conclude anything.
> 
> What happens with the not-even-compile-tested debug patch below?

I am puzzled by this. I applied it to my slightly changed kernel with a 
lot of kernel debugging options turned on, started getting crashes on 
startup from slab.c during __kmem_cache_create. Reworked the patch, 
still the same. Commented it all out (just vmalloc->kmalloc change that 
worked fine before), still getting it.

Sorting __ex_table...
Memory: 493968K/523456K available (3521K kernel code, 343K rwdata, 1176K rodata, 264K init, 9803K bss, 29488K reserved)
kernel BUG at mm/slab.c:2391!
              \|/ ____ \|/
              "@'/ .. \`@"
              /_| \__/ |_\
                 \__U_/
swapper(0): Kernel bad sw trap 5 [#1]
CPU: 0 PID: 0 Comm: swapper Not tainted 3.11.0-rc2-00058-g20bafb3-dirty #122
task: 00000000008ac468 ti: 000000000089c000 task.ti: 000000000089c000
TSTATE: 0000004480e01606 TPC: 00000000004f57d4 TNPC: 00000000004f57d8 Y: 00000000    Not tainted
TPC: <__kmem_cache_create+0x374/0x480>
g0: 00000000000000f8 g1: 00000000008bb400 g2: 000000000002780b g3: 00000000008b5120
g4: 00000000008ac468 g5: 0000000000000000 g6: 000000000089c000 g7: 0000000000000000
o0: 0000000000845f08 o1: 0000000000000957 o2: ffffffffffffffe0 o3: 0000000000000000
o4: 0000000000002004 o5: 0000000000000000 sp: 000000000089f301 ret_pc: 00000000004f57cc
RPC: <__kmem_cache_create+0x36c/0x480>
l0: fffff8001e812040 l1: fffff8001e819f80 l2: fffff8001e819fb8 l3: fffff8001e819fd8
l4: 0000000000000001 l5: fffff8001e819fc8 l6: 0000000000845f08 l7: fffff8001e8300a0
i0: fffff8001e831fa0 i1: 0000000080002800 i2: 0000000080000000 i3: 0000000000000034
i4: 0000000000000000 i5: 0000000000002000 i6: 000000000089f3b1 i7: 0000000000907464
I7: <create_boot_cache+0x4c/0x84>
Call Trace:
 [0000000000907464] create_boot_cache+0x4c/0x84
 [00000000009074d0] create_kmalloc_cache+0x34/0x60
 [0000000000907540] create_kmalloc_caches+0x44/0x168
 [0000000000908dfc] kmem_cache_init+0x1d0/0x1e0
 [00000000008fc658] start_kernel+0x18c/0x370
 [0000000000761df4] tlb_fixup_done+0x88/0x94
 [0000000000000000]           (null)
Disabling lock debugging due to kernel taint
Caller[0000000000907464]: create_boot_cache+0x4c/0x84
Caller[00000000009074d0]: create_kmalloc_cache+0x34/0x60
Caller[0000000000907540]: create_kmalloc_caches+0x44/0x168
Caller[0000000000908dfc]: kmem_cache_init+0x1d0/0x1e0
Caller[00000000008fc658]: start_kernel+0x18c/0x370
Caller[0000000000761df4]: tlb_fixup_done+0x88/0x94
Caller[0000000000000000]:           (null)
Instruction DUMP: 92102957  7ffccb35  90122308 <91d02005> 90100018  
4009b371  920f20d0  ba922000  02480006 
Kernel panic - not syncing: Attempted to kill the idle task!
Press Stop-A (L1-A) to return to the boot prom


> 
> --->%---
> Subject: [PATCH] Debug instrumentation of exit_openprom_fs()
> 
> 
> Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
> ---
>  fs/openpromfs/inode.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c
> index 8c0ceb8..9fc4c86 100644
> --- a/fs/openpromfs/inode.c
> +++ b/fs/openpromfs/inode.c
> @@ -12,12 +12,15 @@
>  #include <linux/slab.h>
>  #include <linux/seq_file.h>
>  #include <linux/magic.h>
> +#include <linux/printk.h>
> 
>  #include <asm/openprom.h>
>  #include <asm/oplib.h>
>  #include <asm/prom.h>
>  #include <asm/uaccess.h>
> 
> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> +
>  static DEFINE_MUTEX(op_mutex);
> 
>  #define OPENPROM_ROOT_INO	0
> @@ -456,6 +459,8 @@ static int __init init_openprom_fs(void)
> 
>  static void __exit exit_openprom_fs(void)
>  {
> +	pr_info("exiting\n");
> +
>  	unregister_filesystem(&openprom_fs_type);
>  	/*
>  	 * Make sure all delayed rcu free inodes are flushed before we
> @@ -463,6 +468,8 @@ static void __exit exit_openprom_fs(void)
>  	 */
>  	rcu_barrier();
>  	kmem_cache_destroy(op_inode_cachep);
> +
> +	pr_info("exited\n");
>  }
> 
>  module_init(init_openprom_fs)
>
Meelis Roos Nov. 28, 2013, 1:38 a.m. UTC | #2
> > What happens with the not-even-compile-tested debug patch below?
> 
> I am puzzled by this. I applied it to my slightly changed kernel with a 
> lot of kernel debugging options turned on, started getting crashes on 
> startup from slab.c during __kmem_cache_create. Reworked the patch, 
> still the same. Commented it all out (just vmalloc->kmalloc change that 
> worked fine before), still getting it.

Found it - I had disabled kobject debugging because it did not find 
anything and enabled slab debugging:

-# CONFIG_DEBUG_SLAB is not set
+CONFIG_DEBUG_SLAB=y
+CONFIG_DEBUG_SLAB_LEAK=y

Reverting this config change makesit boot again so I can test it 
tomorrow. But why slab fails is interesting...

> 
> Sorting __ex_table...
> Memory: 493968K/523456K available (3521K kernel code, 343K rwdata, 1176K rodata, 264K init, 9803K bss, 29488K reserved)
> kernel BUG at mm/slab.c:2391!
>               \|/ ____ \|/
>               "@'/ .. \`@"
>               /_| \__/ |_\
>                  \__U_/
> swapper(0): Kernel bad sw trap 5 [#1]
> CPU: 0 PID: 0 Comm: swapper Not tainted 3.11.0-rc2-00058-g20bafb3-dirty #122
> task: 00000000008ac468 ti: 000000000089c000 task.ti: 000000000089c000
> TSTATE: 0000004480e01606 TPC: 00000000004f57d4 TNPC: 00000000004f57d8 Y: 00000000    Not tainted
> TPC: <__kmem_cache_create+0x374/0x480>
> g0: 00000000000000f8 g1: 00000000008bb400 g2: 000000000002780b g3: 00000000008b5120
> g4: 00000000008ac468 g5: 0000000000000000 g6: 000000000089c000 g7: 0000000000000000
> o0: 0000000000845f08 o1: 0000000000000957 o2: ffffffffffffffe0 o3: 0000000000000000
> o4: 0000000000002004 o5: 0000000000000000 sp: 000000000089f301 ret_pc: 00000000004f57cc
> RPC: <__kmem_cache_create+0x36c/0x480>
> l0: fffff8001e812040 l1: fffff8001e819f80 l2: fffff8001e819fb8 l3: fffff8001e819fd8
> l4: 0000000000000001 l5: fffff8001e819fc8 l6: 0000000000845f08 l7: fffff8001e8300a0
> i0: fffff8001e831fa0 i1: 0000000080002800 i2: 0000000080000000 i3: 0000000000000034
> i4: 0000000000000000 i5: 0000000000002000 i6: 000000000089f3b1 i7: 0000000000907464
> I7: <create_boot_cache+0x4c/0x84>
> Call Trace:
>  [0000000000907464] create_boot_cache+0x4c/0x84
>  [00000000009074d0] create_kmalloc_cache+0x34/0x60
>  [0000000000907540] create_kmalloc_caches+0x44/0x168
>  [0000000000908dfc] kmem_cache_init+0x1d0/0x1e0
>  [00000000008fc658] start_kernel+0x18c/0x370
>  [0000000000761df4] tlb_fixup_done+0x88/0x94
>  [0000000000000000]           (null)
> Disabling lock debugging due to kernel taint
> Caller[0000000000907464]: create_boot_cache+0x4c/0x84
> Caller[00000000009074d0]: create_kmalloc_cache+0x34/0x60
> Caller[0000000000907540]: create_kmalloc_caches+0x44/0x168
> Caller[0000000000908dfc]: kmem_cache_init+0x1d0/0x1e0
> Caller[00000000008fc658]: start_kernel+0x18c/0x370
> Caller[0000000000761df4]: tlb_fixup_done+0x88/0x94
> Caller[0000000000000000]:           (null)
> Instruction DUMP: 92102957  7ffccb35  90122308 <91d02005> 90100018  
> 4009b371  920f20d0  ba922000  02480006 
> Kernel panic - not syncing: Attempted to kill the idle task!
> Press Stop-A (L1-A) to return to the boot prom
> 
> 
> > 
> > --->%---
> > Subject: [PATCH] Debug instrumentation of exit_openprom_fs()
> > 
> > 
> > Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
> > ---
> >  fs/openpromfs/inode.c | 7 +++++++
> >  1 file changed, 7 insertions(+)
> > 
> > diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c
> > index 8c0ceb8..9fc4c86 100644
> > --- a/fs/openpromfs/inode.c
> > +++ b/fs/openpromfs/inode.c
> > @@ -12,12 +12,15 @@
> >  #include <linux/slab.h>
> >  #include <linux/seq_file.h>
> >  #include <linux/magic.h>
> > +#include <linux/printk.h>
> > 
> >  #include <asm/openprom.h>
> >  #include <asm/oplib.h>
> >  #include <asm/prom.h>
> >  #include <asm/uaccess.h>
> > 
> > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> > +
> >  static DEFINE_MUTEX(op_mutex);
> > 
> >  #define OPENPROM_ROOT_INO	0
> > @@ -456,6 +459,8 @@ static int __init init_openprom_fs(void)
> > 
> >  static void __exit exit_openprom_fs(void)
> >  {
> > +	pr_info("exiting\n");
> > +
> >  	unregister_filesystem(&openprom_fs_type);
> >  	/*
> >  	 * Make sure all delayed rcu free inodes are flushed before we
> > @@ -463,6 +468,8 @@ static void __exit exit_openprom_fs(void)
> >  	 */
> >  	rcu_barrier();
> >  	kmem_cache_destroy(op_inode_cachep);
> > +
> > +	pr_info("exited\n");
> >  }
> > 
> >  module_init(init_openprom_fs)
> > 
> 
>
Meelis Roos Nov. 28, 2013, 4:47 p.m. UTC | #3
> > Another strange symptom is that the problem did not happen when
> > openpromfs is compiled in statically, not loaded as module. When loaded
> > as module, its memory is vmalloc()ed... but that's probably too weak
> > connection to conclude anything.
> 
> What happens with the not-even-compile-tested debug patch below?

Now I have the results of that test. It does not trigger at all during 
normal shutdown since module is not unloaded. When I unmount openpromfs 
and rmmod openpromfs, both lines are promted to dmesg. After that, the 
RED state still happens on reboot.
Meelis Roos Nov. 29, 2013, 7:31 a.m. UTC | #4
> > > > First I compared the configurations of working and nonworking machines
> > > > (there were 2 different machines from the same era with problem), then
> > > > did some conf bisecting and found that CONFIG_SUN_OPENPROMFS causes the
> > > > RED problem in 3.12-rc5 when compiled modular and module loaded. It did
> > > > not happen when it was compiled statically, or modular but module was
> > > > not loaded. Reduced minimalistic configuration that causes this on Ultra
> > > > 5 is attached to this mail.
> 
> Is the problem unique to these 2 machines given this configuration, or is
> the problem reproduceable on other machines using this configuration?

Tried it on Sun E3500 with the same minimal config modified to boot 
there (scsi + console differences), did not trigger. I did get some 
other warning with all the lockdep config enabled, will investigate them 
separately.
Meelis Roos Nov. 30, 2013, 9:42 p.m. UTC | #5
> > > Another strange symptom is that the problem did not happen when
> > > openpromfs is compiled in statically, not loaded as module. When loaded
> > > as module, its memory is vmalloc()ed... but that's probably too weak
> > > connection to conclude anything.
> > 
> > What happens with the not-even-compile-tested debug patch below?
> 
> Now I have the results of that test. It does not trigger at all during 
> normal shutdown since module is not unloaded. When I unmount openpromfs 
> and rmmod openpromfs, both lines are promted to dmesg. After that, the 
> RED state still happens on reboot.

Played around some more (to reproduce the slab BUG with newer kernel 
for reporting) and found 2 things:

1. When I apply the kzmalloc vs vmalloc revert patch to 3.12.0, it 
breaks the serial layer with fireworks - did not investigate further.

2. When trying plain 3.12 with no debug patches but most debug options 
except SLAB ones, the RED state exception is still present but I do get 
a meaningful lockdep warning just before the exception. This is very 
similar to the warning I posted today for sparc64 startup on another 
machine (copied below). Maybe this is just some unannotated irq stuff 
(or 2 independent ones) but it happens in exactly the right spot...

The warning from Ultra 5 with RED State Exception (full dmesg and 
config are below):

[info] Will now restart.
sd 0:0:0:0: [sda] Synchronizing SCSI cache
reboot: Restarting system
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2826 at kernel/lockdep.c:3535 check_flags+0x7c/0x240()
DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
Modules linked in: openpromfs
CPU: 0 PID: 2826 Comm: reboot Tainted: G        W    3.12.0 #133
Call Trace:
 [0000000000454b6c] warn_slowpath_common+0x4c/0x80
 [0000000000454c4c] warn_slowpath_fmt+0x2c/0x40
 [0000000000499e3c] check_flags+0x7c/0x240
 [000000000049d000] lock_acquire+0x20/0x80
 [000000000077afe8] _raw_spin_lock+0x28/0x40
 [00000000005f8ef4] p1275_cmd_direct+0x14/0x60
 [00000000005f8980] prom_reboot+0x20/0x40
 [0000000000434c88] machine_restart+0x48/0x60
 [000000000047d9cc] kernel_restart+0x4c/0x60
 [000000000047db34] SyS_reboot+0x134/0x200
 [00000000004060b4] linux_sparc_syscall32+0x34/0x40
---[ end trace 4759822ebc3658d5 ]---
possible reason: unannotated irqs-off.
irq event stamp: 3799
hardirqs last  enabled at (3799): [<0000000000404b1c>] rtrap_xcall+0x18/0x20
hardirqs last disabled at (3797): [<0000000000459380>] __do_softirq+0x100/0x180
softirqs last  enabled at (3798): [<00000000004593dc>] __do_softirq+0x15c/0x180
softirqs last disabled at (3791): [<000000000042b89c>] do_softirq+0x5c/0xa0

RED State Exception

TL=0000.0000.0000.0005 TT=0000.0000.0000.0064
   TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
TL=0000.0000.0000.0004 TT=0000.0000.0000.0064
   TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
TL=0000.0000.0000.0003 TT=0000.0000.0000.0064
   TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
TL=0000.0000.0000.0002 TT=0000.0000.0000.0064
   TPC=0000.0000.f000.0c80 TnPC=0000.0000.f000.0c84 TSTATE=0000.0099.1104.1403
TL=0000.0000.0000.0001 TT=0000.0000.0000.0064
   TPC=0000.0000.f004.55c0 TnPC=0000.0000.f004.55c4 TSTATE=0000.0099.1100.1603


The warning from Sun E3500 startup:

WARNING: CPU: 6 PID: 1 at kernel/locking/lockdep.c:3535 check_flags+0x7c/0x240()                     
DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)                                                       
Modules linked in:                                                                                   
CPU: 6 PID: 1 Comm: swapper/6 Not tainted 3.13.0-rc1-dirty #17                                       
Call Trace:                                                                                          
 [00000000004585cc] warn_slowpath_common+0x4c/0x80                                                   
 [00000000004586ac] warn_slowpath_fmt+0x2c/0x40                                                      
 [0000000000498d9c] check_flags+0x7c/0x240                                                           
 [000000000049bf40] lock_acquire+0x20/0x80                                                           
 [000000000081e188] _raw_spin_lock+0x28/0x40                                                         
 [000000000061bd74] p1275_cmd_direct+0x14/0x60                                                       
 [000000000061bc0c] prom_startcpu+0x2c/0x40                                                          
 [000000000043e3bc] __cpu_up+0x5c/0x180                                                              
 [0000000000458830] _cpu_up.constprop.1+0xd0/0x160                                                   
 [0000000000458958] cpu_up+0x58/0x80                                                                 
 [00000000009fe2b4] smp_init+0x74/0xbc                                                               
 [00000000009f49e4] kernel_init_freeable+0x7c/0x110                                                  
 [000000000080af24] kernel_init+0x4/0x120                                                            
 [00000000004060c4] ret_from_fork+0x1c/0x2c                                                          
 [0000000000000000]           (null)                                                                 
---[ end trace e61cc8445001155f ]---                                                                 
possible reason: unannotated irqs-off.                                                               
irq event stamp: 2051                                                                                
hardirqs last  enabled at (2051): [<000000000081e9d8>] _raw_spin_unlock_irqrestore+0x38/0x60         
hardirqs last disabled at (2050): [<000000000081e234>] _raw_spin_lock_irqsave+0x14/0x60              
softirqs last  enabled at (398): [<000000000045d098>] __do_softirq+0x178/0x200                       
softirqs last disabled at (393): [<000000000042bb8c>] do_softirq_own_stack+0x2c/0x40

Full dmesg from Ultra 5:

PROMLIB: Sun IEEE Boot Prom 'OBP 3.31.0 2001/07/25 20:36'
PROMLIB: Root node compatible: 
Linux version 3.12.0 (mroos@mandariin) (gcc version 4.6.4 (Debian 4.6.4-4) ) #133 Sat Nov 30 22:14:37 EET 2013
debug: ignoring loglevel setting.
bootconsole [earlyprom0] enabled
ARCH: SUN4U
Ethernet address: 08:00:20:f8:c7:72
Kernel: Using 4 locked TLB entries for main kernel image.
Remapping the kernel... done.
OF stdout device is: /pci@1f,0/pci@1,1/ebus@1/se@14,400000:a
PROM: Built device tree with 42056 bytes of memory.
Top of RAM: 0x1ff40000, Total RAM: 0x1ff30000
Memory hole size: 0MB
Allocated 1056768 bytes for kernel page tables.
Zone ranges:
  Normal   [mem 0x00000000-0x1ff3ffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x1fefdfff]
  node   0: [mem 0x1ff00000-0x1ff2bfff]
  node   0: [mem 0x1ff3a000-0x1ff3ffff]
On node 0 totalpages: 65432
  Normal zone: 576 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65432 pages, LIFO batch:15
Booting Linux...
CPU CAPS: [flush,stbar,swap,muldiv,v9,mul32,div32,v8plus]
CPU CAPS: [vis]
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64856
Kernel command line: root=/dev/sda1 ro debug ignore_loglevel
PID hash table entries: 2048 (order: 1, 16384 bytes)
Dentry cache hash table entries: 65536 (order: 6, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 5, 262144 bytes)
Sorting __ex_table...
Memory: 493944K/523456K available (3551K kernel code, 345K rwdata, 1184K rodata, 256K init, 9803K bss, 29512K reserved)
NR_IRQS:255
kmemleak: Kernel memory leak detector disabled
clocksource: mult[2c71c72] shift[24]
clockevent: mult[5c28f5c3] shift[32]
Console: colour dummy device 80x25
console [tty0] enabled, bootconsole disabled
PROMLIB: Sun IEEE Boot Prom 'OBP 3.31.0 2001/07/25 20:36'
PROMLIB: Root node compatible: 
Linux version 3.12.0 (mroos@mandariin) (gcc version 4.6.4 (Debian 4.6.4-4) ) #133 Sat Nov 30 22:14:37 EET 2013
debug: ignoring loglevel setting.
bootconsole [earlyprom0] enabled
ARCH: SUN4U
Ethernet address: 08:00:20:f8:c7:72
Kernel: Using 4 locked TLB entries for main kernel image.
Remapping the kernel... done.
OF stdout device is: /pci@1f,0/pci@1,1/ebus@1/se@14,400000:a
PROM: Built device tree with 42056 bytes of memory.
Top of RAM: 0x1ff40000, Total RAM: 0x1ff30000
Memory hole size: 0MB
Allocated 1056768 bytes for kernel page tables.
Zone ranges:
  Normal   [mem 0x00000000-0x1ff3ffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x1fefdfff]
  node   0: [mem 0x1ff00000-0x1ff2bfff]
  node   0: [mem 0x1ff3a000-0x1ff3ffff]
On node 0 totalpages: 65432
  Normal zone: 576 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65432 pages, LIFO batch:15
Booting Linux...
CPU CAPS: [flush,stbar,swap,muldiv,v9,mul32,div32,v8plus]
CPU CAPS: [vis]
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64856
Kernel command line: root=/dev/sda1 ro debug ignore_loglevel
PID hash table entries: 2048 (order: 1, 16384 bytes)
Dentry cache hash table entries: 65536 (order: 6, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 5, 262144 bytes)
Sorting __ex_table...
Memory: 493944K/523456K available (3551K kernel code, 345K rwdata, 1184K rodata, 256K init, 9803K bss, 29512K reserved)
NR_IRQS:255
kmemleak: Kernel memory leak detector disabled
clocksource: mult[2c71c72] shift[24]
clockevent: mult[5c28f5c3] shift[32]
Console: colour dummy device 80x25
console [tty0] enabled, bootconsole disabled
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
... MAX_LOCKDEP_SUBCLASSES:  8
... MAX_LOCK_DEPTH:          48
... MAX_LOCKDEP_KEYS:        8191
... CLASSHASH_SIZE:          4096
... MAX_LOCKDEP_ENTRIES:     16384
... MAX_LOCKDEP_CHAINS:      32768
... CHAINHASH_SIZE:          16384
 memory used by lock dependency info: 5855 kB
 per task-struct memory footprint: 1920 bytes
------------------------
| Locking API testsuite:
----------------------------------------------------------------------------
                                 | spin |wlock |rlock |mutex | wsem | rsem |
  --------------------------------------------------------------------------
                     A-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                 A-B-B-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
             A-B-B-C-C-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
             A-B-C-A-B-C deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
         A-B-B-C-C-D-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
         A-B-C-D-B-D-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
         A-B-C-D-B-C-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                    double unlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                  initialize held:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                 bad unlock order:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
  --------------------------------------------------------------------------
              recursive read-lock:             |  ok  |             |  ok  |
           recursive read-lock #2:             |  ok  |             |  ok  |
            mixed read-write-lock:             |  ok  |             |  ok  |
            mixed write-read-lock:             |  ok  |             |  ok  |
  --------------------------------------------------------------------------
     hard-irqs-on + irq-safe-A/12:  ok  |  ok  |  ok  |
     soft-irqs-on + irq-safe-A/12:  ok  |  ok  |  ok  |
     hard-irqs-on + irq-safe-A/21:  ok  |  ok  |  ok  |
     soft-irqs-on + irq-safe-A/21:  ok  |  ok  |  ok  |
       sirq-safe-A => hirqs-on/12:  ok  |  ok  |  ok  |
       sirq-safe-A => hirqs-on/21:  ok  |  ok  |  ok  |
         hard-safe-A + irqs-on/12:  ok  |  ok  |  ok  |
         soft-safe-A + irqs-on/12:  ok  |  ok  |  ok  |
         hard-safe-A + irqs-on/21:  ok  |  ok  |  ok  |
         soft-safe-A + irqs-on/21:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/123:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/123:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/132:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/132:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/213:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/213:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/231:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/231:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/312:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/312:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/321:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/321:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/123:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/123:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/132:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/132:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/213:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/213:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/231:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/231:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/312:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/312:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/321:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/321:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/123:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/123:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/132:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/132:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/213:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/213:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/231:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/231:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/312:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/312:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/321:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/321:  ok  |  ok  |  ok  |
      hard-irq read-recursion/123:  ok  |
      soft-irq read-recursion/123:  ok  |
      hard-irq read-recursion/132:  ok  |
      soft-irq read-recursion/132:  ok  |
      hard-irq read-recursion/213:  ok  |
      soft-irq read-recursion/213:  ok  |
      hard-irq read-recursion/231:  ok  |
      soft-irq read-recursion/231:  ok  |
      hard-irq read-recursion/312:  ok  |
      soft-irq read-recursion/312:  ok  |
      hard-irq read-recursion/321:  ok  |
      soft-irq read-recursion/321:  ok  |
  --------------------------------------------------------------------------
  | Wound/wait tests |
  ---------------------
                  ww api failures:  ok  |  ok  |  ok  |
               ww contexts mixing:  ok  |  ok  |
             finishing ww context:  ok  |  ok  |  ok  |  ok  |
               locking mismatches:  ok  |  ok  |  ok  |
                 EDEADLK handling:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
           spinlock nest unlocked:  ok  |
  -----------------------------------------------------
                                 |block | try  |context|
  -----------------------------------------------------
                          context:  ok  |  ok  |  ok  |
                              try:  ok  |  ok  |  ok  |
                            block:  ok  |  ok  |  ok  |
                         spinlock:  ok  |  ok  |  ok  |
-------------------------------------------------------
Good, all 253 testcases passed! |
---------------------------------
ODEBUG: 10 of 10 active objects replaced
ODEBUG: selftest passed
kmemleak: Early log buffer exceeded (1261), please increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE
Calibrating delay using timer specific routine.. 723.70 BogoMIPS (lpj=3618502)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Performance events: No support for PMU type 'ultra12'
devtmpfs: initialized
kworker/u2:0 (11) used greatest stack depth: 9392 bytes left
atomic64 test passed
NET: Registered protocol family 16
/pci@1f,0: PCI IO[1fe02000000] MEM[1ff00000000]
/pci@1f,0: SABRE PCI Bus Module ver[0:0]
PCI: Scanning PBM /pci@1f,0
sabre f005f9c0: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1fe02000000-0x1fe02ffffff] (bus address [0x0000-0xffffff])
pci_bus 0000:00: root bus resource [mem 0x1ff00000000-0x1ffffffffff] (bus address [0x00000000-0xffffffff])
pci_bus 0000:00: root bus resource [bus 00-02]
bio: create slab <bio-0> at 0
vgaarb: device added: PCI:0000:01:02.0,decodes=io+mem,owns=none,locks=none
vgaarb: loaded
vgaarb: bridge control possible 0000:01:02.0
SCSI subsystem initialized
libata version 3.00 loaded.
/pci@1f,0/pci@1,1/ebus@1/eeprom@14,0: Mostek regs at 0x1fff1000000
DMA-API: preallocated 32768 debug entries
DMA-API: debugging enabled by kernel config
AUXIO: Found device at /pci@1f,0/pci@1,1/ebus@1/auxio@14,726000
Switched to clocksource tick
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 3, 65536 bytes)
TCP bind hash table entries: 4096 (order: 5, 262144 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 2, 40960 bytes)
UDP-Lite hash table entries: 256 (order: 2, 40960 bytes)
NET: Registered protocol family 1
PCI: CLS 64 bytes, default 64
power: Control reg at 1fff1724000
Initializing RT-Tester: OK
====[ backtrace testing ]===========
Testing a backtrace from process context.
The following trace is a kernel self test and not a bug!
CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.0 #133
Call Trace:
 [00000000004aa86c] backtrace_regression_test+0x2c/0x100
 [0000000000426d30] do_one_initcall+0x70/0x140
 [00000000009048d8] do_basic_setup+0x9c/0xd4
 [000000000090497c] kernel_init_freeable+0x6c/0xf0
 [00000000007694a4] kernel_init+0x4/0x100
 [0000000000405fc4] ret_from_fork+0x1c/0x2c
 [0000000000000000]           (null)
Testing a backtrace from irq context.
The following trace is a kernel self test and not a bug!
CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 3.12.0 #133
Call Trace:
 [00000000004aa824] backtrace_test_irq_callback+0x4/0x20
 [0000000000458d90] tasklet_action+0x70/0xc0
 [000000000045932c] __do_softirq+0xac/0x180
 [0000000000459424] run_ksoftirqd+0x24/0x80
 [000000000047f1a8] smpboot_thread_fn+0x1e8/0x200
 [0000000000476660] kthread+0x80/0xa0
 [0000000000405fc4] ret_from_fork+0x1c/0x2c
 [0000000000000000]           (null)
Testing a saved backtrace.
The following trace is a kernel self test and not a bug!
 [<00000000004aa908>] backtrace_regression_test+0xc8/0x100
 [<0000000000426d30>] do_one_initcall+0x70/0x140
 [<00000000009048d8>] do_basic_setup+0x9c/0xd4
 [<000000000090497c>] kernel_init_freeable+0x6c/0xf0
 [<00000000007694a4>] kernel_init+0x4/0x100
 [<0000000000405fc4>] ret_from_fork+0x1c/0x2c
 [<          (null)>]           (null)
====[ end of backtrace testing ]====
msgmni has been set to 964
io scheduler noop registered
io scheduler cfq registered (default)
list_sort_test: start testing list_sort()
test_string_helpers: Running tests...
f0061c64: ttyS0 at MMIO 0x1fff1400000 (irq = 5, base_baud = 115200) is a SAB82532 V3.2
Console: ttyS0 (SAB82532)
console [ttyS0] enabled
f0061c64: ttyS1 at MMIO 0x1fff1400040 (irq = 5, base_baud = 115200) is a SAB82532 V3.2
[sched_delayed] sched: RT throttling activated
Floppy drive(s): fd0 is 1.44M
loop: module loaded
scsi0 : pata_cmd64x
scsi1 : pata_cmd64x
ata1: PATA max MWDMA2 cmd 0x1fe02c00000 ctl 0x1fe02c00008 bmdma 0x1fe02c00020 irq 14
ata2: PATA max MWDMA2 cmd 0x1fe02c00010 ctl 0x1fe02c00018 bmdma 0x1fe02c00028 irq 14
pata_cmd64x: active 10 recovery 10 setup 3.
pata_cmd64x: active 10 recovery 10 setup 3.
PCI: Enabling device: (0000:01:01.1), cmd 2
sunhme.c:v3.10 August 26, 2008 David S. Miller (davem@davemloft.net)
FDC 0 is a National Semiconductor PC87306
eth0: HAPPY MEAL (PCI/CheerIO) 10/100BaseT Ethernet 08:00:20:f8:c7:72
ata1.00: HPA detected: current 234375000, native 234441648
ata1.00: ATA-5: WDC WD1200JB-75CRA0, 16.06V16, max UDMA/100
ata1.00: 234375000 sectors, multi 0: LBA 
pata_cmd64x: active 3 recovery 1 setup 1.
pata_cmd64x: active 3 recovery 1 setup 1.
mousedev: PS/2 mouse device common for all mice
rtc-m48t59 rtc-m48t59.0: rtc core: registered m48t59 as rtc0
TCP: cubic registered
NET: Registered protocol family 17
registered taskstats version 1
rtc-m48t59 rtc-m48t59.0: setting system clock to 2013-11-30 21:21:05 UTC (1385846465)
ata1.00: configured for MWDMA2
scsi 0:0:0:0: Direct-Access     ATA      WDC WD1200JB-75C 16.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 234375000 512-byte logical blocks: (120 GB/111 GiB)
pata_cmd64x: active 10 recovery 10 setup 3.
pata_cmd64x: active 10 recovery 10 setup 3.
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
ata2.00: ATAPI: CRD-8322B, 1.06, max MWDMA2
pata_cmd64x: active 3 recovery 1 setup 1.
pata_cmd64x: active 3 recovery 1 setup 1.
ata2.00: configured for MWDMA2
 sda: sda1 sda2 sda3
scsi 1:0:0:0: CD-ROM               LG    CD-ROM CRD-8322B 1.06 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Attached SCSI disk
sr0: scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray
cdrom: Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
devtmpfs: mounted
Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory
??
stty (371) used greatest stack depth: 4992 bytes left
[info] Using makefile-style concurrent boot in runlevel S.
ps (467) used greatest stack depth: 32 bytes left
[....] Starting the hotplug events dispatcher: udevdsystemd-udevd[482]: starting version 204
[ ok .
[....] Synthesizing the initial hotplug events...tput (536) used greatest stack depth: 8 bytes left
[ ok done.
[....] Waiting for /dev to be fully populated...[ ok done.
[....] Setting parameters of disc: (none)[ ok .
[....] Activating swap...Adding 1843624k swap on /dev/sda2.  Priority:-1 extents:1 across:1843624k 
[ ok done.
EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
mandariin-root: clean, 143609/14446080 files, 22345083/28835840 blocks
[ ok done.
EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Cleaning up temporary files... /tmp[ ok .
[info] Loading kernel module fuse.
FATAL: Module fuse not found.
[info] Loading kernel module snd-sun-cs4231.
FATAL: Module snd-sun-cs4231 not found.
[info] Loading kernel module snd-seq.
FATAL: Module snd-seq not found.
[....] Activating lvm and md swap...[ ok done.
[....] Checking file systems...fsck from util-linux 2.20.1
[ ok done.
[....] Mounting local filesystems...[ ok done.
[....] Activating swapfile swap...[ ok done.
[....] Cleaning up temporary files...[ ok .
[....] Setting kernel variables ...[ ok done.
[....] Setting up resolvconf...[ ok done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listenin------------[ cut here ]------------
WARNING: CPU: 0 PID: 1564 at lib/dma-debug.c:937 check_unmap+0x784/0x840()
hme 0000:01:01.1: DMA-API: device driver failed to check map error[device address=0x00000000c1b96802] [size=342 bytes] [mapped as single]
Modules linked in: openpromfs
CPU: 0 PID: 1564 Comm: dhclient Not tainted 3.12.0 #133
Call Trace:
 [0000000000454b6c] warn_slowpath_common+0x4c/0x80
 [0000000000454c4c] warn_slowpath_fmt+0x2c/0x40
 [000000000061c964] check_unmap+0x784/0x840
 [000000000061cac4] debug_dma_unmap_page+0x44/0x60
 [00000000006a53c8] happy_meal_tx+0x128/0x260
 [00000000006a59b8] happy_meal_interrupt+0x78/0xc0
 [000000000048a524] handle_irq_event_percpu+0x44/0x1a0
 [000000000048a6b8] handle_irq_event+0x38/0x80
 [000000000048d068] handle_fasteoi_irq+0x108/0x1c0
 [0000000000489da0] generic_handle_irq+0x40/0x60
 [000000000042b814] handler_irq+0x94/0xc0
 [0000000000426acc] valid_addr_bitmap_patch+0x14/0x1c8
 [0000000000459190] local_bh_enable+0xd0/0xe0
 [00000000006dddec] dev_queue_xmit+0x72c/0x7c0
 [000000000075fb88] packet_sendmsg_spkt+0x388/0x4c0
 [00000000006c1558] sock_sendmsg+0x58/0x80
---[ end trace 4759822ebc3658d4 ]---
Mapped at:
 [<00000000006a5dd8>] happy_meal_start_xmit+0x1b8/0x4a0
 [<00000000006dd574>] dev_hard_start_xmit+0x354/0x4a0
 [<00000000006f6de4>] sch_direct_xmit+0x44/0x2a0
 [<00000000006dda58>] dev_queue_xmit+0x398/0x7c0
 [<000000000075fb88>] packet_sendmsg_spkt+0x388/0x4c0
g on LPF/eth0/08:00:20:f8:c7:72
Sending on   LPF/eth0/08:00:20:f8:c7:72
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
eth0: Link is up using internal transceiver at 100Mb/s, Full Duplex.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.78.1
DHCPACK from 192.168.78.1
bound to 192.168.78.18 -- renewal in 34631 seconds.
[ ok done.
[....] Cleaning up temporary files...[ ok .
[....] Setting up ALSA...[ ok done (none loaded).
[info] Setting console screen modes and fonts.
setterm: cannot (un)set powersave mode: Inappropriate ioctl for device
Running 0dns-down to make sure resolv.conf is ok...done.
[....] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix[ ok .
IE_?H?info] Using makefile-style concurrent boot in runlevel 2.
[....] Mounted debugfs on /sys/kernel/debug[ ok .
[....] touch: invalid date format '@0'
Starting enhanced syslogd: rsyslogd[ ok .
[....] Setting sysfs variables...[ ok .
[....] Starting deferred execution scheduler: atd[ ok .
[....] Starting periodic command scheduler: cron[ ok .
[info] Not starting internet superserver: no services enabled.
[....] Starting system message bus: dbus[ ok .
Starting openntpd: ntpd.
[....] [....] Starting RARP lookup daemon: rarpd[ ok .
Starting Postfix Mail Transport Agent: postfixpostmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postfix: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
[ ok .
[....] Starting OpenBSD Secure Shell server: sshd[ ok .
INIT: S{CC??
[info] Using makefile-style concurrent boot in runlevel 6.
[....] Shutting down ALSA...[ ok done (none loaded).
[....] Stopping deferred execution scheduler: atd[ ok .
[....] Stopping periodic command scheduler: cron[ ok .
[....] Unmounted debugfs from /sys/kernel/debug[ ok .
[....] Stopping internet superserver: inetd[ ok .
Stopping openntpd: ntpd.
[....] Stopping Postfix Mail Transport Agent: postfixpostmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
[....] Stopping RARP lookup daemon: rarpd[ ok .
postmulti: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
postfix: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
[....] Stopping resolvconf...[ ok done.
[ ok .
[....] Stopping S.M.A.R.T. daemon: smartd[ ok .
[....] Asking all remaining processes to terminate...[ ok done.
[....] All processes ended within 1 seconds...[ ok done.
[....] Stopping enhanced syslogd: rsyslogd[ ok .
[info] Saving the system clock.
[info] Hardware Clock updated to Sat Nov 30 23:23:59 EET 2013.
[....] Deconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/08:00:20:f8:c7:72
Sending on   LPF/eth0/08:00:20:f8:c7:72
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.78.1 port 67
[ ok done.
[....] Deactivating swap...[ ok done.
EXT4-fs (sda1): re-mounted. Opts: (null)
[info] Will now restart.
sd 0:0:0:0: [sda] Synchronizing SCSI cache
reboot: Restarting system
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2826 at kernel/lockdep.c:3535 check_flags+0x7c/0x240()
DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
Modules linked in: openpromfs
CPU: 0 PID: 2826 Comm: reboot Tainted: G        W    3.12.0 #133
Call Trace:
 [0000000000454b6c] warn_slowpath_common+0x4c/0x80
 [0000000000454c4c] warn_slowpath_fmt+0x2c/0x40
 [0000000000499e3c] check_flags+0x7c/0x240
 [000000000049d000] lock_acquire+0x20/0x80
 [000000000077afe8] _raw_spin_lock+0x28/0x40
 [00000000005f8ef4] p1275_cmd_direct+0x14/0x60
 [00000000005f8980] prom_reboot+0x20/0x40
 [0000000000434c88] machine_restart+0x48/0x60
 [000000000047d9cc] kernel_restart+0x4c/0x60
 [000000000047db34] SyS_reboot+0x134/0x200
 [00000000004060b4] linux_sparc_syscall32+0x34/0x40
---[ end trace 4759822ebc3658d5 ]---
possible reason: unannotated irqs-off.
irq event stamp: 3799
hardirqs last  enabled at (3799): [<0000000000404b1c>] rtrap_xcall+0x18/0x20
hardirqs last disabled at (3797): [<0000000000459380>] __do_softirq+0x100/0x180
softirqs last  enabled at (3798): [<00000000004593dc>] __do_softirq+0x15c/0x180
softirqs last disabled at (3791): [<000000000042b89c>] do_softirq+0x5c/0xa0

RED State Exception

TL=0000.0000.0000.0005 TT=0000.0000.0000.0064
   TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
TL=0000.0000.0000.0004 TT=0000.0000.0000.0064
   TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
TL=0000.0000.0000.0003 TT=0000.0000.0000.0064
   TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
TL=0000.0000.0000.0002 TT=0000.0000.0000.0064
   TPC=0000.0000.f000.0c80 TnPC=0000.0000.f000.0c84 TSTATE=0000.0099.1104.1403
TL=0000.0000.0000.0001 TT=0000.0000.0000.0064
   TPC=0000.0000.f004.55c0 TnPC=0000.0000.f004.55c4 TSTATE=0000.0099.1100.1603


SIR Reset

SIR Reset
...

Config from Ultra 5 with this dmesg:

#
# Automatically generated file; DO NOT EDIT.
# Linux/sparc64 3.12.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_SPARC=y
# CONFIG_SPARC32 is not set
CONFIG_SPARC64=y
CONFIG_ARCH_DEFCONFIG="arch/sparc/configs/sparc64_defconfig"
CONFIG_IOMMU_HELPER=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_AUDIT_ARCH=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_MMU=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_IRQ_WORK=y

#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_FHANDLE is not set
# CONFIG_AUDIT is not set

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_IRQ_PREFLOW_FASTEOI=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y

#
# RCU Subsystem
#
CONFIG_TINY_RCU=y
# CONFIG_PREEMPT_RCU is not set
# CONFIG_RCU_STALL_COMMON is not set
# CONFIG_TREE_RCU_TRACE is not set
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=17
# CONFIG_CGROUPS is not set
# CONFIG_CHECKPOINT_RESTORE is not set
CONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not set
# CONFIG_IPC_NS is not set
# CONFIG_USER_NS is not set
# CONFIG_PID_NS is not set
# CONFIG_NET_NS is not set
# CONFIG_UIDGID_STRICT_TYPE_CHECKS is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
# CONFIG_EXPERT is not set
CONFIG_UID16=y
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_PCI_QUIRKS=y
# CONFIG_EMBEDDED is not set
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_USE_VMALLOC=y

#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
CONFIG_VM_EVENT_COUNTERS=y
# CONFIG_COMPAT_BRK is not set
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
# CONFIG_KPROBES is not set
CONFIG_JUMP_LABEL=y
CONFIG_HAVE_64BIT_ALIGNED_ACCESS=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_NMI_WATCHDOG=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_ATTRS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_ODD_RT_SIGACTION=y
CONFIG_OLD_SIGSUSPEND=y
CONFIG_COMPAT_OLD_SIGACTION=y

#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set
CONFIG_BLOCK=y
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
# CONFIG_BLK_CMDLINE_PARSER is not set

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_MINIX_SUBPARTITION=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_UNIXWARE_DISKLABEL=y
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
CONFIG_SUN_PARTITION=y
# CONFIG_KARMA_PARTITION is not set
# CONFIG_EFI_PARTITION is not set
# CONFIG_SYSV68_PARTITION is not set
# CONFIG_CMDLINE_PARTITION is not set
CONFIG_BLOCK_COMPAT=y

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_DEADLINE is not set
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"
CONFIG_UNINLINE_SPIN_UNLOCK=y
# CONFIG_FREEZER is not set

#
# Processor type and features
#
# CONFIG_SMP is not set
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_EARLYFB=y
# CONFIG_SECCOMP is not set

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
# CONFIG_US3_MC is not set
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_DEFAULT=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_SPARSEMEM_MANUAL=y
CONFIG_SPARSEMEM=y
CONFIG_HAVE_MEMORY_PRESENT=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_HAVE_MEMBLOCK=y
CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
CONFIG_NO_BOOTMEM=y
# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=999999
CONFIG_COMPACTION=y
CONFIG_MIGRATION=y
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_ZONE_DMA_FLAG=0
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
# CONFIG_TRANSPARENT_HUGEPAGE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_NEED_PER_CPU_KM=y
# CONFIG_CLEANCACHE is not set
# CONFIG_FRONTSWAP is not set
# CONFIG_CMA is not set
# CONFIG_ZBUD is not set
# CONFIG_HIBERNATION is not set
# CONFIG_PM_RUNTIME is not set
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_PREEMPT_COUNT=y
# CONFIG_CMDLINE_BOOL is not set

#
# Bus options (PCI etc.)
#
CONFIG_SBUS=y
CONFIG_SBUSCHAR=y
# CONFIG_SUN_LDOMS is not set
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCI_SYSCALL=y
# CONFIG_PCI_MSI is not set
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_IOV is not set
# CONFIG_PCI_PRI is not set
# CONFIG_PCI_PASID is not set

#
# PCI host controller drivers
#
# CONFIG_PCCARD is not set
CONFIG_SUN_OPENPROMFS=m
CONFIG_SPARC64_PCI=y

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
CONFIG_BINFMT_MISC=y
CONFIG_COREDUMP=y
CONFIG_COMPAT=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_NET=y

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
CONFIG_UNIX=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
# CONFIG_NET_IP_TUNNEL is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not set
# CONFIG_INET_LRO is not set
# CONFIG_INET_DIAG is not set
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
# CONFIG_IPV6 is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
# CONFIG_NETFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
CONFIG_HAVE_NET_DSA=y
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_IEEE802154 is not set
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not set
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
# CONFIG_VSOCKETS is not set
# CONFIG_NETLINK_MMAP is not set
# CONFIG_NETLINK_DIAG is not set
# CONFIG_NET_MPLS_GSO is not set
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
# CONFIG_BPF_JIT is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_WIRELESS is not set
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
CONFIG_HAVE_BPF_JIT=y

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
# CONFIG_DMA_SHARED_BUFFER is not set

#
# Bus devices
#
# CONFIG_CONNECTOR is not set
# CONFIG_MTD is not set
CONFIG_OF=y

#
# Device Tree and Open Firmware support
#
# CONFIG_OF_SELFTEST is not set
CONFIG_OF_PROMTREE=y
CONFIG_OF_NET=y
CONFIG_OF_PCI=y
CONFIG_PARPORT=y
# CONFIG_PARPORT_PC is not set
# CONFIG_PARPORT_GSC is not set
CONFIG_PARPORT_SUNBPP=y
# CONFIG_PARPORT_AX88796 is not set
CONFIG_PARPORT_1284=y
CONFIG_PARPORT_NOT_PC=y
CONFIG_BLK_DEV=y
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_NVME is not set
# CONFIG_BLK_DEV_SX8 is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_BLK_DEV_HD is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_BLK_DEV_RSXX is not set

#
# Misc devices
#
# CONFIG_SENSORS_LIS3LV02D is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_PHANTOM is not set
# CONFIG_SGI_IOC4 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ATMEL_SSC is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_PCH_PHUB is not set
# CONFIG_SRAM is not set
# CONFIG_C2PORT is not set

#
# EEPROM support
#
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_CB710_CORE is not set

#
# Texas Instruments shared transport line discipline
#

#
# Altera FPGA firmware download module
#
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set

#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_TGT is not set
# CONFIG_SCSI_NETLINK is not set
# CONFIG_SCSI_PROC_FS is not set

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
CONFIG_SCSI_SCAN_ASYNC=y

#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
# CONFIG_SCSI_LOWLEVEL is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_VERBOSE_ERROR=y
# CONFIG_SATA_PMP is not set

#
# Controllers with non-SFF native interface
#
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
# CONFIG_ATA_PIIX is not set
# CONFIG_SATA_HIGHBANK is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_RCAR is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
CONFIG_PATA_CMD64X=y
# CONFIG_PATA_CS5520 is not set
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CS5536 is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SC1200 is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set

#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_RZ1000 is not set

#
# Generic fallback / legacy drivers
#
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not set
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_I2O is not set
CONFIG_NETDEVICES=y
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_TUN is not set
# CONFIG_VETH is not set
# CONFIG_NLMON is not set
# CONFIG_ARCNET is not set

#
# CAIF transport drivers
#

#
# Distributed Switch Architecture drivers
#
# CONFIG_NET_DSA_MV88E6XXX is not set
# CONFIG_NET_DSA_MV88E6060 is not set
# CONFIG_NET_DSA_MV88E6XXX_NEED_PPU is not set
# CONFIG_NET_DSA_MV88E6131 is not set
# CONFIG_NET_DSA_MV88E6123_61_65 is not set
CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_GRETH is not set
# CONFIG_NET_VENDOR_ALTEON is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_ARC is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_NET_CADENCE is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_CALXEDA_XGMAC is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
# CONFIG_NET_VENDOR_CISCO is not set
# CONFIG_DNET is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
# CONFIG_NET_VENDOR_EXAR is not set
# CONFIG_NET_VENDOR_HP is not set
# CONFIG_NET_VENDOR_INTEL is not set
# CONFIG_IP1000 is not set
# CONFIG_JME is not set
# CONFIG_NET_VENDOR_MARVELL is not set
# CONFIG_NET_VENDOR_MELLANOX is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_FEALNX is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_PACKET_ENGINE is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_SH_ETH is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_SFC is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_STMICRO is not set
CONFIG_NET_VENDOR_SUN=y
CONFIG_HAPPYMEAL=y
# CONFIG_SUNBMAC is not set
# CONFIG_SUNQE is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
# CONFIG_NET_VENDOR_VIA is not set
# CONFIG_NET_VENDOR_WIZNET is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PHYLIB is not set
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_WLAN is not set

#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
# CONFIG_WAN is not set
# CONFIG_VMXNET3 is not set
# CONFIG_ISDN is not set

#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set
# CONFIG_INPUT_SPARSEKMAP is not set
# CONFIG_INPUT_MATRIXKMAP is not set

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ATKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
CONFIG_KEYBOARD_SUNKBD=y
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_AD714X is not set
CONFIG_INPUT_SPARCSPKR=y
# CONFIG_INPUT_UINPUT is not set
# CONFIG_INPUT_ADXL34X is not set
# CONFIG_INPUT_CMA3000 is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not set
# CONFIG_SERIO_RAW is not set
# CONFIG_SERIO_ALTERA_PS2 is not set
# CONFIG_SERIO_PS2MULT is not set
# CONFIG_SERIO_ARC_PS2 is not set
# CONFIG_SERIO_APBPS2 is not set
# CONFIG_SERIO_OLPC_APSP is not set
# CONFIG_GAMEPORT is not set

#
# Character devices
#
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
# CONFIG_LEGACY_PTYS is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_NOZOMI is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
CONFIG_DEVKMEM=y

#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MFD_HSU is not set
CONFIG_SERIAL_SUNCORE=y
# CONFIG_SERIAL_SUNZILOG is not set
# CONFIG_SERIAL_SUNSU is not set
CONFIG_SERIAL_SUNSAB=y
CONFIG_SERIAL_SUNSAB_CONSOLE=y
# CONFIG_SERIAL_SUNHV is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_TIMBERDALE is not set
# CONFIG_SERIAL_GRLIB_GAISLER_APBUART is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_PCH_UART is not set
# CONFIG_SERIAL_XILINX_PS_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_ST_ASC is not set
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
CONFIG_DEVPORT=y
# CONFIG_I2C is not set
# CONFIG_SPI is not set
# CONFIG_HSI is not set

#
# PPS support
#
# CONFIG_PPS is not set

#
# PPS generators support
#

#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not set

#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
CONFIG_GPIO_DEVRES=y
# CONFIG_GPIOLIB is not set
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_POWER_AVS is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
# CONFIG_WATCHDOG is not set
CONFIG_SSB_POSSIBLE=y

#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y

#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set

#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_CROS_EC is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_LPC_ICH is not set
# CONFIG_LPC_SCH is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RTSX_PCI is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_REGULATOR is not set
# CONFIG_MEDIA_SUPPORT is not set

#
# Graphics support
#
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_DRM is not set
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
# CONFIG_FB is not set
# CONFIG_EXYNOS_VIDEO is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set

#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
# CONFIG_SOUND is not set

#
# HID support
#
# CONFIG_HID is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
# CONFIG_USB_SUPPORT is not set
# CONFIG_UWB is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_INTF_DEV_UIE_EMUL=y
# CONFIG_RTC_DRV_TEST is not set

#
# SPI RTC drivers
#

#
# Platform RTC drivers
#
CONFIG_RTC_DRV_CMOS=y
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
CONFIG_RTC_DRV_M48T59=y
# CONFIG_RTC_DRV_MSM6242 is not set
CONFIG_RTC_DRV_BQ4802=y
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
# CONFIG_RTC_DRV_DS2404 is not set

#
# on-CPU RTC drivers
#
CONFIG_RTC_DRV_SUN4V=y
CONFIG_RTC_DRV_STARFIRE=y
# CONFIG_RTC_DRV_SNVS is not set
# CONFIG_RTC_DRV_MOXART is not set

#
# HID Sensor RTC drivers
#
# CONFIG_DMADEVICES is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VIRT_DRIVERS is not set

#
# Virtio drivers
#
# CONFIG_VIRTIO_PCI is not set
# CONFIG_VIRTIO_MMIO is not set

#
# Microsoft Hyper-V guest support
#
# CONFIG_STAGING is not set

#
# Hardware Spinlock drivers
#
# CONFIG_MAILBOX is not set
# CONFIG_IOMMU_SUPPORT is not set

#
# Remoteproc drivers
#
# CONFIG_STE_MODEM_RPROC is not set

#
# Rpmsg drivers
#
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
# CONFIG_VME_BUS is not set
# CONFIG_PWM is not set
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_FMC is not set

#
# Misc Linux/SPARC drivers
#
CONFIG_SUN_OPENPROMIO=y
# CONFIG_OBP_FLASH is not set
# CONFIG_TADPOLE_TS102_UCTRL is not set
# CONFIG_BBC_I2C is not set
# CONFIG_ENVCTRL is not set
# CONFIG_DISPLAY7SEG is not set

#
# File systems
#
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT23=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
CONFIG_FS_POSIX_ACL=y
CONFIG_FILE_LOCKING=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
# CONFIG_QUOTA is not set
# CONFIG_QUOTACTL is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
CONFIG_GENERIC_ACL=y

#
# Caches
#
# CONFIG_FSCACHE is not set

#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set

#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NETWORK_FILESYSTEMS is not set
# CONFIG_NLS is not set

#
# Kernel hacking
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y

#
# printk and dmesg options
#
# CONFIG_PRINTK_TIME is not set
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_DYNAMIC_DEBUG is not set

#
# Compile-time checks and compiler options
#
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_REDUCED is not set
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=2048
# CONFIG_STRIP_ASM_SYMS is not set
CONFIG_READABLE_ASM=y
# CONFIG_UNUSED_SYMBOLS is not set
CONFIG_DEBUG_FS=y
CONFIG_HEADERS_CHECK=y
CONFIG_DEBUG_SECTION_MISMATCH=y
CONFIG_FRAME_POINTER=y
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_KERNEL=y

#
# Memory Debugging
#
CONFIG_DEBUG_PAGEALLOC=y
CONFIG_WANT_PAGE_DEBUG_FLAGS=y
CONFIG_PAGE_GUARD=y
CONFIG_DEBUG_OBJECTS=y
CONFIG_DEBUG_OBJECTS_SELFTEST=y
CONFIG_DEBUG_OBJECTS_FREE=y
CONFIG_DEBUG_OBJECTS_TIMERS=y
CONFIG_DEBUG_OBJECTS_WORK=y
CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
# CONFIG_DEBUG_SLAB is not set
CONFIG_HAVE_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400
# CONFIG_DEBUG_KMEMLEAK_TEST is not set
# CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF is not set
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_DEBUG_VM=y
CONFIG_DEBUG_VM_RB=y
CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Lockups and Hangs
#
CONFIG_LOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
# CONFIG_PANIC_ON_OOPS is not set
CONFIG_PANIC_ON_OOPS_VALUE=0
# CONFIG_SCHED_DEBUG is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
CONFIG_DEBUG_RT_MUTEXES=y
CONFIG_DEBUG_PI_LIST=y
CONFIG_RT_MUTEX_TESTER=y
CONFIG_DEBUG_SPINLOCK=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_PROVE_LOCKING=y
CONFIG_LOCKDEP=y
# CONFIG_LOCK_STAT is not set
CONFIG_DEBUG_LOCKDEP=y
CONFIG_DEBUG_ATOMIC_SLEEP=y
CONFIG_DEBUG_LOCKING_API_SELFTESTS=y
CONFIG_TRACE_IRQFLAGS=y
CONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_KOBJECT_RELEASE is not set
CONFIG_HAVE_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_WRITECOUNT=y
CONFIG_DEBUG_LIST=y
CONFIG_DEBUG_SG=y
CONFIG_DEBUG_NOTIFIERS=y
CONFIG_DEBUG_CREDENTIALS=y

#
# RCU Debugging
#
CONFIG_PROVE_RCU=y
# CONFIG_PROVE_RCU_REPEATEDLY is not set
CONFIG_SPARSE_RCU_POINTER=y
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_TRACE is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not set
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST=y
CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_TRACING_SUPPORT=y
# CONFIG_FTRACE is not set

#
# Runtime Testing
#
# CONFIG_LKDTM is not set
CONFIG_TEST_LIST_SORT=y
CONFIG_BACKTRACE_SELF_TEST=y
# CONFIG_RBTREE_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
CONFIG_ATOMIC64_SELFTEST=y
CONFIG_TEST_STRING_HELPERS=y
CONFIG_TEST_KSTRTOX=y
# CONFIG_BUILD_DOCSRC is not set
CONFIG_DMA_API_DEBUG=y
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
CONFIG_DEBUG_DCFLUSH=y

#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y

#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
# CONFIG_CRYPTO_MANAGER is not set
# CONFIG_CRYPTO_MANAGER2 is not set
# CONFIG_CRYPTO_USER is not set
# CONFIG_CRYPTO_GF128MUL is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_CRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set
# CONFIG_CRYPTO_TEST is not set

#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_SEQIV is not set

#
# Block modes
#
# CONFIG_CRYPTO_CBC is not set
# CONFIG_CRYPTO_CTR is not set
# CONFIG_CRYPTO_CTS is not set
# CONFIG_CRYPTO_ECB is not set
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_PCBC is not set
# CONFIG_CRYPTO_XTS is not set

#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not set
# CONFIG_CRYPTO_HMAC is not set
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set

#
# Digest
#
CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32C_SPARC64 is not set
# CONFIG_CRYPTO_CRC32 is not set
# CONFIG_CRYPTO_CRCT10DIF is not set
# CONFIG_CRYPTO_GHASH is not set
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
# CONFIG_CRYPTO_MD5_SPARC64 is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA1_SPARC64 is not set
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA256_SPARC64 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_SHA512_SPARC64 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set

#
# Ciphers
#
CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_AES_SPARC64 is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAMELLIA_SPARC64 is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_DES_SPARC64 is not set
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set

#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_ZLIB is not set
# CONFIG_CRYPTO_LZO is not set
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set

#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_HW is not set
# CONFIG_BINARY_PRINTF is not set

#
# Library routines
#
CONFIG_BITREVERSE=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GENERIC_IO=y
# CONFIG_CRC_CCITT is not set
CONFIG_CRC16=y
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not set
CONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
# CONFIG_CRC8 is not set
# CONFIG_XZ_DEC is not set
# CONFIG_XZ_DEC_BCJ is not set
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_DQL=y
CONFIG_NLATTR=y
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
# CONFIG_AVERAGE is not set
# CONFIG_CORDIC is not set
# CONFIG_DDR is not set
Peter Hurley Nov. 30, 2013, 11:04 p.m. UTC | #6
On 11/28/2013 11:47 AM, Meelis Roos wrote:
>>> Another strange symptom is that the problem did not happen when
>>> openpromfs is compiled in statically, not loaded as module. When loaded
>>> as module, its memory is vmalloc()ed... but that's probably too weak
>>> connection to conclude anything.
>>
>> What happens with the not-even-compile-tested debug patch below?
>
> Now I have the results of that test. It does not trigger at all during
> normal shutdown since module is not unloaded. When I unmount openpromfs
> and rmmod openpromfs, both lines are promted to dmesg. After that, the
> RED state still happens on reboot.

Ok, thanks for testing that.

The slab debugging seems a promising line of inquiry.

Regards,
Peter Hurley

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Peter Hurley Nov. 30, 2013, 11:07 p.m. UTC | #7
On 11/29/2013 02:31 AM, Meelis Roos wrote:
>>>>> First I compared the configurations of working and nonworking machines
>>>>> (there were 2 different machines from the same era with problem), then
>>>>> did some conf bisecting and found that CONFIG_SUN_OPENPROMFS causes the
>>>>> RED problem in 3.12-rc5 when compiled modular and module loaded. It did
>>>>> not happen when it was compiled statically, or modular but module was
>>>>> not loaded. Reduced minimalistic configuration that causes this on Ultra
>>>>> 5 is attached to this mail.
>>
>> Is the problem unique to these 2 machines given this configuration, or is
>> the problem reproduceable on other machines using this configuration?
>
> Tried it on Sun E3500 with the same minimal config modified to boot
> there (scsi + console differences), did not trigger. I did get some
> other warning with all the lockdep config enabled, will investigate them
> separately.

Is the warning you received this one from your other email?

------------[ cut here ]------------
WARNING: CPU: 0 PID: 2826 at kernel/lockdep.c:3535 check_flags+0x7c/0x240()
DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
Modules linked in: openpromfs
CPU: 0 PID: 2826 Comm: reboot Tainted: G        W    3.12.0 #133
Call Trace:
  [0000000000454b6c] warn_slowpath_common+0x4c/0x80
  [0000000000454c4c] warn_slowpath_fmt+0x2c/0x40
  [0000000000499e3c] check_flags+0x7c/0x240
  [000000000049d000] lock_acquire+0x20/0x80
  [000000000077afe8] _raw_spin_lock+0x28/0x40
  [00000000005f8ef4] p1275_cmd_direct+0x14/0x60
  [00000000005f8980] prom_reboot+0x20/0x40
  [0000000000434c88] machine_restart+0x48/0x60
  [000000000047d9cc] kernel_restart+0x4c/0x60
  [000000000047db34] SyS_reboot+0x134/0x200
  [00000000004060b4] linux_sparc_syscall32+0x34/0x40
---[ end trace 4759822ebc3658d5 ]---
possible reason: unannotated irqs-off.
irq event stamp: 3799
hardirqs last  enabled at (3799): [<0000000000404b1c>] rtrap_xcall+0x18/0x20
hardirqs last disabled at (3797): [<0000000000459380>] __do_softirq+0x100/0x180
softirqs last  enabled at (3798): [<00000000004593dc>] __do_softirq+0x15c/0x180
softirqs last disabled at (3791): [<000000000042b89c>] do_softirq+0x5c/0xa0


Regards,
Peter Hurley
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Peter Hurley Dec. 1, 2013, 1:18 a.m. UTC | #8
On 11/30/2013 04:42 PM, Meelis Roos wrote:
>>>> Another strange symptom is that the problem did not happen when
>>>> openpromfs is compiled in statically, not loaded as module. When loaded
>>>> as module, its memory is vmalloc()ed... but that's probably too weak
>>>> connection to conclude anything.
>>>
>>> What happens with the not-even-compile-tested debug patch below?
>>
>> Now I have the results of that test. It does not trigger at all during
>> normal shutdown since module is not unloaded. When I unmount openpromfs
>> and rmmod openpromfs, both lines are promted to dmesg. After that, the
>> RED state still happens on reboot.
>
> Played around some more (to reproduce the slab BUG with newer kernel
> for reporting) and found 2 things:
>
> 1. When I apply the kzmalloc vs vmalloc revert patch to 3.12.0, it
> breaks the serial layer with fireworks - did not investigate further.

kmalloc() should work fine on top of 3.12.0+.

Don't revert. Just change vmalloc->kmalloc and vfree->kfree. I can
supply you with a patch if you'd prefer; just let me know.

And please provide copies of the fireworks.

> 2. When trying plain 3.12 with no debug patches but most debug options
> except SLAB ones, the RED state exception is still present but I do get
> a meaningful lockdep warning just before the exception. This is very
> similar to the warning I posted today for sparc64 startup on another
> machine (copied below). Maybe this is just some unannotated irq stuff
> (or 2 independent ones) but it happens in exactly the right spot...

I think the hardirqs warnings below and on the E3500 are because
NMI is still enabled in p1275_cmd_direct() and
arch/sparc:arch_irqs_disabled_flags() doesn't differentiate irqs on from
nmi on, which triggers the WARNING.

Does the RED state exception trigger if you manually break to the prom
command line and issue a boot command?

I'll continue to follow the SLAB bug thread in case some additional
promising lead develops there.

Regards,
Peter Hurley


> The warning from Ultra 5 with RED State Exception (full dmesg and
> config are below):
>
> [info] Will now restart.
> sd 0:0:0:0: [sda] Synchronizing SCSI cache
> reboot: Restarting system
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 2826 at kernel/lockdep.c:3535 check_flags+0x7c/0x240()
> DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
> Modules linked in: openpromfs
> CPU: 0 PID: 2826 Comm: reboot Tainted: G        W    3.12.0 #133
> Call Trace:
>   [0000000000454b6c] warn_slowpath_common+0x4c/0x80
>   [0000000000454c4c] warn_slowpath_fmt+0x2c/0x40
>   [0000000000499e3c] check_flags+0x7c/0x240
>   [000000000049d000] lock_acquire+0x20/0x80
>   [000000000077afe8] _raw_spin_lock+0x28/0x40
>   [00000000005f8ef4] p1275_cmd_direct+0x14/0x60
>   [00000000005f8980] prom_reboot+0x20/0x40
>   [0000000000434c88] machine_restart+0x48/0x60
>   [000000000047d9cc] kernel_restart+0x4c/0x60
>   [000000000047db34] SyS_reboot+0x134/0x200
>   [00000000004060b4] linux_sparc_syscall32+0x34/0x40
> ---[ end trace 4759822ebc3658d5 ]---
> possible reason: unannotated irqs-off.
> irq event stamp: 3799
> hardirqs last  enabled at (3799): [<0000000000404b1c>] rtrap_xcall+0x18/0x20
> hardirqs last disabled at (3797): [<0000000000459380>] __do_softirq+0x100/0x180
> softirqs last  enabled at (3798): [<00000000004593dc>] __do_softirq+0x15c/0x180
> softirqs last disabled at (3791): [<000000000042b89c>] do_softirq+0x5c/0xa0
>
> RED State Exception
>
> TL=0000.0000.0000.0005 TT=0000.0000.0000.0064
>     TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
> TL=0000.0000.0000.0004 TT=0000.0000.0000.0064
>     TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
> TL=0000.0000.0000.0003 TT=0000.0000.0000.0064
>     TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84 TSTATE=0000.0099.1104.1403
> TL=0000.0000.0000.0002 TT=0000.0000.0000.0064
>     TPC=0000.0000.f000.0c80 TnPC=0000.0000.f000.0c84 TSTATE=0000.0099.1104.1403
> TL=0000.0000.0000.0001 TT=0000.0000.0000.0064
>     TPC=0000.0000.f004.55c0 TnPC=0000.0000.f004.55c4 TSTATE=0000.0099.1100.1603
>
>
> The warning from Sun E3500 startup:
>
> WARNING: CPU: 6 PID: 1 at kernel/locking/lockdep.c:3535 check_flags+0x7c/0x240()
> DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
> Modules linked in:
> CPU: 6 PID: 1 Comm: swapper/6 Not tainted 3.13.0-rc1-dirty #17
> Call Trace:
>   [00000000004585cc] warn_slowpath_common+0x4c/0x80
>   [00000000004586ac] warn_slowpath_fmt+0x2c/0x40
>   [0000000000498d9c] check_flags+0x7c/0x240
>   [000000000049bf40] lock_acquire+0x20/0x80
>   [000000000081e188] _raw_spin_lock+0x28/0x40
>   [000000000061bd74] p1275_cmd_direct+0x14/0x60
>   [000000000061bc0c] prom_startcpu+0x2c/0x40
>   [000000000043e3bc] __cpu_up+0x5c/0x180
>   [0000000000458830] _cpu_up.constprop.1+0xd0/0x160
>   [0000000000458958] cpu_up+0x58/0x80
>   [00000000009fe2b4] smp_init+0x74/0xbc
>   [00000000009f49e4] kernel_init_freeable+0x7c/0x110
>   [000000000080af24] kernel_init+0x4/0x120
>   [00000000004060c4] ret_from_fork+0x1c/0x2c
>   [0000000000000000]           (null)
> ---[ end trace e61cc8445001155f ]---
> possible reason: unannotated irqs-off.
> irq event stamp: 2051
> hardirqs last  enabled at (2051): [<000000000081e9d8>] _raw_spin_unlock_irqrestore+0x38/0x60
> hardirqs last disabled at (2050): [<000000000081e234>] _raw_spin_lock_irqsave+0x14/0x60
> softirqs last  enabled at (398): [<000000000045d098>] __do_softirq+0x178/0x200
> softirqs last disabled at (393): [<000000000042bb8c>] do_softirq_own_stack+0x2c/0x40

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Meelis Roos Dec. 1, 2013, 1:31 a.m. UTC | #9
> > Played around some more (to reproduce the slab BUG with newer kernel
> > for reporting) and found 2 things:
> > 
> > 1. When I apply the kzmalloc vs vmalloc revert patch to 3.12.0, it
> > breaks the serial layer with fireworks - did not investigate further.
> 
> kmalloc() should work fine on top of 3.12.0+.
> 
> Don't revert. Just change vmalloc->kmalloc and vfree->kfree. I can
> supply you with a patch if you'd prefer; just let me know.
> 
> And please provide copies of the fireworks.

I actually just changed the malloc and free - at least I think so. Will 
do a clean retest to make sure I did not botch it, and report if I can 
reproduce it.

> > 2. When trying plain 3.12 with no debug patches but most debug options
> > except SLAB ones, the RED state exception is still present but I do get
> > a meaningful lockdep warning just before the exception. This is very
> > similar to the warning I posted today for sparc64 startup on another
> > machine (copied below). Maybe this is just some unannotated irq stuff
> > (or 2 independent ones) but it happens in exactly the right spot...
> 
> I think the hardirqs warnings below and on the E3500 are because
> NMI is still enabled in p1275_cmd_direct() and
> arch/sparc:arch_irqs_disabled_flags() doesn't differentiate irqs on from
> nmi on, which triggers the WARNING.
> 
> Does the RED state exception trigger if you manually break to the prom
> command line and issue a boot command?

It seems I can not break from running kernel to PROM by sending break 
from minicom. PROM itself reacts to my break (during memory test for 
example) so it's Linux not accepting the break. I seem to remember it 
having worked some time ago, although not when the kergel hung.

> I'll continue to follow the SLAB bug thread in case some additional
> promising lead develops there.
> 
> Regards,
> Peter Hurley
> 
> 
> > The warning from Ultra 5 with RED State Exception (full dmesg and
> > config are below):
> > 
> > [info] Will now restart.
> > sd 0:0:0:0: [sda] Synchronizing SCSI cache
> > reboot: Restarting system
> > ------------[ cut here ]------------
> > WARNING: CPU: 0 PID: 2826 at kernel/lockdep.c:3535 check_flags+0x7c/0x240()
> > DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
> > Modules linked in: openpromfs
> > CPU: 0 PID: 2826 Comm: reboot Tainted: G        W    3.12.0 #133
> > Call Trace:
> >   [0000000000454b6c] warn_slowpath_common+0x4c/0x80
> >   [0000000000454c4c] warn_slowpath_fmt+0x2c/0x40
> >   [0000000000499e3c] check_flags+0x7c/0x240
> >   [000000000049d000] lock_acquire+0x20/0x80
> >   [000000000077afe8] _raw_spin_lock+0x28/0x40
> >   [00000000005f8ef4] p1275_cmd_direct+0x14/0x60
> >   [00000000005f8980] prom_reboot+0x20/0x40
> >   [0000000000434c88] machine_restart+0x48/0x60
> >   [000000000047d9cc] kernel_restart+0x4c/0x60
> >   [000000000047db34] SyS_reboot+0x134/0x200
> >   [00000000004060b4] linux_sparc_syscall32+0x34/0x40
> > ---[ end trace 4759822ebc3658d5 ]---
> > possible reason: unannotated irqs-off.
> > irq event stamp: 3799
> > hardirqs last  enabled at (3799): [<0000000000404b1c>] rtrap_xcall+0x18/0x20
> > hardirqs last disabled at (3797): [<0000000000459380>]
> > __do_softirq+0x100/0x180
> > softirqs last  enabled at (3798): [<00000000004593dc>]
> > __do_softirq+0x15c/0x180
> > softirqs last disabled at (3791): [<000000000042b89c>] do_softirq+0x5c/0xa0
> > 
> > RED State Exception
> > 
> > TL=0000.0000.0000.0005 TT=0000.0000.0000.0064
> >     TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84
> > TSTATE=0000.0099.1104.1403
> > TL=0000.0000.0000.0004 TT=0000.0000.0000.0064
> >     TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84
> > TSTATE=0000.0099.1104.1403
> > TL=0000.0000.0000.0003 TT=0000.0000.0000.0064
> >     TPC=0000.0000.f000.4c80 TnPC=0000.0000.f000.4c84
> > TSTATE=0000.0099.1104.1403
> > TL=0000.0000.0000.0002 TT=0000.0000.0000.0064
> >     TPC=0000.0000.f000.0c80 TnPC=0000.0000.f000.0c84
> > TSTATE=0000.0099.1104.1403
> > TL=0000.0000.0000.0001 TT=0000.0000.0000.0064
> >     TPC=0000.0000.f004.55c0 TnPC=0000.0000.f004.55c4
> > TSTATE=0000.0099.1100.1603
> > 
> > 
> > The warning from Sun E3500 startup:
> > 
> > WARNING: CPU: 6 PID: 1 at kernel/locking/lockdep.c:3535
> > check_flags+0x7c/0x240()
> > DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
> > Modules linked in:
> > CPU: 6 PID: 1 Comm: swapper/6 Not tainted 3.13.0-rc1-dirty #17
> > Call Trace:
> >   [00000000004585cc] warn_slowpath_common+0x4c/0x80
> >   [00000000004586ac] warn_slowpath_fmt+0x2c/0x40
> >   [0000000000498d9c] check_flags+0x7c/0x240
> >   [000000000049bf40] lock_acquire+0x20/0x80
> >   [000000000081e188] _raw_spin_lock+0x28/0x40
> >   [000000000061bd74] p1275_cmd_direct+0x14/0x60
> >   [000000000061bc0c] prom_startcpu+0x2c/0x40
> >   [000000000043e3bc] __cpu_up+0x5c/0x180
> >   [0000000000458830] _cpu_up.constprop.1+0xd0/0x160
> >   [0000000000458958] cpu_up+0x58/0x80
> >   [00000000009fe2b4] smp_init+0x74/0xbc
> >   [00000000009f49e4] kernel_init_freeable+0x7c/0x110
> >   [000000000080af24] kernel_init+0x4/0x120
> >   [00000000004060c4] ret_from_fork+0x1c/0x2c
> >   [0000000000000000]           (null)
> > ---[ end trace e61cc8445001155f ]---
> > possible reason: unannotated irqs-off.
> > irq event stamp: 2051
> > hardirqs last  enabled at (2051): [<000000000081e9d8>]
> > _raw_spin_unlock_irqrestore+0x38/0x60
> > hardirqs last disabled at (2050): [<000000000081e234>]
> > _raw_spin_lock_irqsave+0x14/0x60
> > softirqs last  enabled at (398): [<000000000045d098>]
> > __do_softirq+0x178/0x200
> > softirqs last disabled at (393): [<000000000042bb8c>]
> > do_softirq_own_stack+0x2c/0x40
>
Meelis Roos Dec. 1, 2013, 1:32 a.m. UTC | #10
> > > Is the problem unique to these 2 machines given this configuration, or is
> > > the problem reproduceable on other machines using this configuration?
> > 
> > Tried it on Sun E3500 with the same minimal config modified to boot
> > there (scsi + console differences), did not trigger. I did get some
> > other warning with all the lockdep config enabled, will investigate them
> > separately.
> 
> Is the warning you received this one from your other email?

That one is from U5 but E3500 got the other similar p1275_cmd_direct one 
during second CPU bringup, yes.

> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 2826 at kernel/lockdep.c:3535 check_flags+0x7c/0x240()
> DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)
> Modules linked in: openpromfs
> CPU: 0 PID: 2826 Comm: reboot Tainted: G        W    3.12.0 #133
> Call Trace:
>  [0000000000454b6c] warn_slowpath_common+0x4c/0x80
>  [0000000000454c4c] warn_slowpath_fmt+0x2c/0x40
>  [0000000000499e3c] check_flags+0x7c/0x240
>  [000000000049d000] lock_acquire+0x20/0x80
>  [000000000077afe8] _raw_spin_lock+0x28/0x40
>  [00000000005f8ef4] p1275_cmd_direct+0x14/0x60
>  [00000000005f8980] prom_reboot+0x20/0x40
>  [0000000000434c88] machine_restart+0x48/0x60
>  [000000000047d9cc] kernel_restart+0x4c/0x60
>  [000000000047db34] SyS_reboot+0x134/0x200
>  [00000000004060b4] linux_sparc_syscall32+0x34/0x40
> ---[ end trace 4759822ebc3658d5 ]---
> possible reason: unannotated irqs-off.
> irq event stamp: 3799
> hardirqs last  enabled at (3799): [<0000000000404b1c>] rtrap_xcall+0x18/0x20
> hardirqs last disabled at (3797): [<0000000000459380>]
> __do_softirq+0x100/0x180
> softirqs last  enabled at (3798): [<00000000004593dc>]
> __do_softirq+0x15c/0x180
> softirqs last disabled at (3791): [<000000000042b89c>] do_softirq+0x5c/0xa0
> 
> 
> Regards,
> Peter Hurley
>
Peter Hurley Dec. 1, 2013, 2:07 a.m. UTC | #11
On 11/30/2013 08:31 PM, Meelis Roos wrote:
>> Does the RED state exception trigger if you manually break to the prom
>> command line and issue a boot command?
>
> It seems I can not break from running kernel to PROM by sending break
> from minicom. PROM itself reacts to my break (during memory test for
> example) so it's Linux not accepting the break. I seem to remember it
> having worked some time ago, although not when the kergel hung.

Argghh.

There were some changes to sunsab.c a couple of versions ago; maybe we
broke it.

Can you confirm BRKs are being received with
'sudo cat /proc/tty/driver/serial'
?
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Peter Hurley Dec. 1, 2013, 2:40 a.m. UTC | #12
On 11/30/2013 09:07 PM, Peter Hurley wrote:
> On 11/30/2013 08:31 PM, Meelis Roos wrote:
>>> Does the RED state exception trigger if you manually break to the prom
>>> command line and issue a boot command?
>>
>> It seems I can not break from running kernel to PROM by sending break
>> from minicom. PROM itself reacts to my break (during memory test for
>> example) so it's Linux not accepting the break. I seem to remember it
>> having worked some time ago, although not when the kergel hung.
>
> Argghh.
>
> There were some changes to sunsab.c a couple of versions ago; maybe we
> broke it.
>
> Can you confirm BRKs are being received with
> 'sudo cat /proc/tty/driver/serial'
> ?

Relooking over sunsab.c, the BRK stats will only be accumulated if
sent with data, which may not be the case here.

Maybe check that '/proc/sys/kernel/stop-a' is set to 1.
For that matter, what is '/proc/sys/kernel/reboot-cmd'?

Regards.
Peter Hurley
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Meelis Roos Dec. 1, 2013, 8:16 a.m. UTC | #13
> On 11/30/2013 08:31 PM, Meelis Roos wrote:
> > > Does the RED state exception trigger if you manually break to the prom
> > > command line and issue a boot command?
> > 
> > It seems I can not break from running kernel to PROM by sending break
> > from minicom. PROM itself reacts to my break (during memory test for
> > example) so it's Linux not accepting the break. I seem to remember it
> > having worked some time ago, although not when the kergel hung.
> 
> Argghh.
> 
> There were some changes to sunsab.c a couple of versions ago; maybe we
> broke it.
> 
> Can you confirm BRKs are being received with
> 'sudo cat /proc/tty/driver/serial'

In 3.12:

# cat /proc/tty/driver/sunsab 
serinfo:1.0 driver revision:
0: uart:SAB82532 V3.2 mmio:0x1FFF1400000 irq:5 tx:5163 rx:0 CTS|DSR|CD
1: uart:SAB82532 V3.2 mmio:0x1FFF1400040 irq:5 tx:0 rx:

cat /proc/sys/kernel/stop-a
1

# cat /proc/sys/kernel/reboot-cmd

(it was empty, so default "boot" should be used AFAIK)
diff mbox

Patch

diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c
index 8c0ceb8..9fc4c86 100644
--- a/fs/openpromfs/inode.c
+++ b/fs/openpromfs/inode.c
@@ -12,12 +12,15 @@ 
  #include <linux/slab.h>
  #include <linux/seq_file.h>
  #include <linux/magic.h>
+#include <linux/printk.h>

  #include <asm/openprom.h>
  #include <asm/oplib.h>
  #include <asm/prom.h>
  #include <asm/uaccess.h>

+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
  static DEFINE_MUTEX(op_mutex);

  #define OPENPROM_ROOT_INO	0
@@ -456,6 +459,8 @@  static int __init init_openprom_fs(void)

  static void __exit exit_openprom_fs(void)
  {
+	pr_info("exiting\n");
+
  	unregister_filesystem(&openprom_fs_type);
  	/*
  	 * Make sure all delayed rcu free inodes are flushed before we
@@ -463,6 +468,8 @@  static void __exit exit_openprom_fs(void)
  	 */
  	rcu_barrier();
  	kmem_cache_destroy(op_inode_cachep);
+
+	pr_info("exited\n");
  }

  module_init(init_openprom_fs)