Subject: Re: E250 support and failed boot
To: Eduardo Horvath <eeh@turbolinux.com>
From: Mark Blackman <mark.blackman@dircon.net>
List: port-sparc64
Date: 08/25/2000 20:57:21
> On Fri, 25 Aug 2000, Mark Blackman wrote:
> 
> > partial success. Got most of the way through the kernel
> > device attach. Got dumped into the debugger by a panic.
> > not familiar with netbsd kernel debugger. suggestions appreciated?
> > 
> > [much verboseness elided]
> > clock0 at ebus0 addr 0-1fff
> > clock0: device_register: bpname network()
> > : mk48t59: hostid ffffffff80cfd209       
> > flashprom at ebus0 addr 0-fffff addr 0-fffff not configured
> > SUNW,envctrltwo at ebus0 addr 600000-600003 ipl 40 ipl 37 not configured
> > hme1 at pci0 dev 1 function 1                                           
> > hme1: device_register: bpname network((null))
> > instance_match: pci device, want dev 0x1 fn 0x1 have dev 0x1 fn 0x1
> >         -- found ethernet controller hme1                          
> > : address 08:00:20:cf:d2:09              
> > nsphy0 at hme1 phy 1: DP83840 10/100 media interface, rev. 1
> > nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> > hme1: using vector 0 for interrupt                          
> > data memory error type 32 sfsr=0x0 sfva=0xfe037010 afsr=0x88000000 afva=0x1fe01000a00
>  tf=0xf1809100
> > panic: trap: memory error                                                            
>               
> > kdb breakpoint at 0xf126d168
> > Stopped in swapper at   cpu_Debugger+0x4:       nop
> > db>                                                
> 
> Hm.  Looks like an async fault trying to access pa=0x1fe01000a00.
> 
> Try:
> 
> 	trace
> 
> 	machine tf
> 
> grab the tpc from the trapframe and do:
> 
> 	x/i <tpc value>

not obvious to me which of those values is the tpc so i tried
two or three candidates. screen replay follows...

db> trace
data_access_error(32, fe037010, 0, 1fe01000a00, f1410000, f1809100) at data_acce
ss_error+0x338                                                                  
data_error(4008002, 1d, f1802000, 1fe010009ec, 4, 1fe01000a00) at data_error+0x4
                                                                                
confaddr_ok(f270ff00, a00, f1809470, f270bd30, f142c000, 4) at confaddr_ok+0xa8
pci_conf_read(f1425d80, a00, 0, 200, 50a0000, 0) at pci_conf_read+0x98         
pci_probe_bus(f26f3a00, 8, ffff, 2, f26f3d00, f26f3c80) at pci_probe_bus+0x10c
pciattach(f12c26f0, f26f3a00, f18097d0, f1225420, f270bf90, f142c000) at pciatta
ch+0x224                                                                        
config_attach(f26f3a00, f140b300, f18097d0, f270bf90, 0, 0) at config_attach+0x3
5c                                                                              
config_found_sm(f270ff00, f18097d0, f1231230, 0, f26f3d00, f26f3e00) at config_f
ound_sm+0x24                                                                    
psycho_attach(f26f3f00, f270ff00, f1809a90, f1231120, f270bfc0, 10) at psycho_at
tach+0x100                                                                      
config_attach(f270ff00, f140b300, f1809a90, f270bfc0, f1809990, 0) at config_att
ach+0x35c                                                                       
config_found_sm(f26f3f00, f1809a90, f125b4a4, 0, f1809ab0, f12d5400) at config_f
ound_sm+0x24                                                                    
mainbus_attach(f12d57d8, f142c218, f12d5778, f12d57d0, f12d57c0, f12d5788) at ma
inbus_attach+0x39c                                                              
config_attach(f26f3f00, f140b300, 0, f270bff0, f14cc748, f1411c00) at config_att
ach+0x35c                                                                       
config_rootfound(f12d5658, 0, f1412498, 20, f26e6600, f1411c00) at config_rootfo
und+0x44                                                                        
cpu_configure(f14a7760, f14a7780, f140b430, f14a8ee8, f14133f8, f1411c00) at cpu
_configure+0x3c                                                                 
configure(f14ca800, f14ca400, f14ca400, f14c8800, 1, f140b000) at configure+0x50
                                                                                
main(f14a2800, f14a3000, f14cb400, f14a6400, f142c000, f14d0a50) at main+0x420
cpu_initialize(fffffffffffffff8, 0, ffffffffffffffff, f007601c, f007601c, f100a9
60) at cpu_initialize+0x388                                                     
dostart(800000, f18, f1000000, fff89a80, 18, 18) at dostart+0x110
db>                                                              
db> machine tf                                                   
Trapframe 0xf149f4d8:   tstate: 0x58000600      pc: 0xf126d16c  npc: 0xf126d170
y: 0    pil: 13 oldpil: 13      fault: 0x58000600       kstack: 0x0     tt: 101 G
lobals:                                                                          
00000000f12ce800 00000000f1400000 00000000f142c000 0000000000000021
0000000000000000 000000000000000d 0000000000000021 0000000000000000
outs:                                                              
00000000f1411c00 0000000000000001 00000000f14a77d8 00000000f14a77d0
00000000f1809008 0000000000000000 00000000f1808691 00000000f10bb5fc
locals:                                                            
00000000f1808fd8 00000000f149e738 0000000000000000 0000000000000000
0000000000000073 ffffffffffffffff 0000000000000008 0000000000000023
ins:                                                               
00000000f12d99e0 0000000000000001 0000000000000100 00000000fe037010
0000000088000000 000001fe01000a00 00000000f1808751 00000000f126a144
db>                                                                
db> x/i 0xf149f4d8                                                 
ddb_regs:       illtrap         ddb_regs
db> x/i 0xf126d16c                      
cpu_Debugger+0x4:       nop
db> x/i 0xf126d170         
cpu_Debugger+0x8:       jmpl            [%o7 + 0x8], %g0
db>