NetBSD Problem Report #58269

From www@netbsd.org  Mon May 20 06:26:33 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8317D1A9264
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 20 May 2024 06:26:33 +0000 (UTC)
Message-Id: <20240520062632.3703C1A9265@mollari.NetBSD.org>
Date: Mon, 20 May 2024 06:26:32 +0000 (UTC)
From: tmcintos@eskimo.com
Reply-To: tmcintos@eskimo.com
To: gnats-bugs@NetBSD.org
Subject: NetBSD/sgimips 10.0 RELEASE on SGI Challenge S: INSTALL32_IP2x works, GENERIC32_IP2x kernel panics on boot after install!
X-Send-Pr-Version: www-1.0

>Number:         58269
>Category:       port-sgimips
>Synopsis:       NetBSD/sgimips 10.0 RELEASE on SGI Challenge S: INSTALL32_IP2x works, GENERIC32_IP2x kernel panics on boot after install!
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sgimips-maintainer
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 20 06:30:00 +0000 2024
>Closed-Date:    
>Last-Modified:  Wed Jul 24 00:41:54 +0000 2024
>Originator:     Timothy McIntosh
>Release:        NetBSD 10.0 (GENERIC32_IP2x) #0: Thu Mar 28 08:33:33 UTC 2024
>Organization:
>Environment:
>> hinv                                                                                                                     
                   System: IP22                                                                                             
                Processor: 200 Mhz R4400, with FPU                                                                          
     Primary I-cache size: 16 Kbytes                                                                                        
     Primary D-cache size: 16 Kbytes                                                                                        
     Secondary cache size: 1024 Kbytes                                                                                      
              Memory size: 256 Mbytes                                                                                       
                SCSI Disk: scsi(0)disk(3)                                                                                   

>Description:
Loading scsi(0)disk(3)rdisk(0)partition(8)/boot:                                                                                                                      
NetBSD/sgimips 10.0 Bootstrap, Revision 1.5 (Thu Mar 28 08:33:33 UTC 2024)                                                                                            

devopen: scsi(0)disk(3)rdisk(0)partition(0) type scsi file nnetbsd.ecoff                                                                                              
5002768+126448=0x4c5610                                                                                                                                               
[   1.0000000] [ Kernel symbol table invalid! ]                                                                                                                       
[   1.0000000] phys segment: 0xe000 @ 0x8002000                                                                                                                       
[   1.0000000] adding 0xe000 @ 0x8002000 to freelist 0                                                                                                                
[   1.0000000] phys segment: 0x730000 @ 0x8010000                                                                                                                     
[   1.0000000] adding 0x58000 @ 0x8010000 to freelist 0                                                                                                               
[   1.0000000] adding 0x21a000 @ 0x8526000 to freelist 0                                                                                                              
[   1.0000000] phys segment: 0xf800000 @ 0x8800000                                                                                                                    
[   1.0000000] adding 0xf800000 @ 0x8800000 to freelist 0                                                                                                             
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,                                                                                          
[   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,                                                                                        
[   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,                                                                                        
[   1.0000000]     2024                                                                                                                                               
[   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.                                                                                                  
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993                                                                                                             
[   1.0000000]     The Regents of the University of California.  All rights reserved.                                                                                 

[   1.0000000] NetBSD 10.0 (GENERIC32_IP2x) #0: Thu Mar 28 08:33:33 UTC 2024                                                                                          
[   1.0000000]  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/sgimips/compile/GENERIC32_IP2x                                                                           
[   1.0000000] total memory = 256 MB                                                                                                                                  
[   1.0000000] (768 KB reserved for ARCS)                                                                                                                             
[   1.0000000] avail memory = 244 MB                                                                                                                                  
[   1.0000000] mainbus0 (root): SGI-IP22 [SGI, 690b59f5], 1 processor                                                                                                 
[   1.0000000] cpu0 at mainbus0: MIPS R4400 CPU (0x460) Rev. 6.0 with MIPS R4010 FPC Rev. 0.0                                                                         
[   1.0000000] cpu0: 48 TLB entries, 16MB max page size                                                                                                               
[   1.0000000] cpu0: 16KB/16B direct-mapped L1 instruction cache                                                                                                      
[   1.0000000] cpu0: 16KB/16B direct-mapped write-back L1 data cache                                                                                                  
[   1.0000000] cpu0: 1024KB/128B direct-mapped write-back L2 unified cache                                                                                            
[   1.0000000] int0 at mainbus0 addr 0x1fbd9880                                                                                                                       
[   1.0000000] int0: bus 100MHz, CPU 200MHz                                                                                                                           
[   1.0000000] imc0 at mainbus0 addr 0x1fa00000: revision 3                                                                                                           
[   1.0000000] gio0 at imc0                                                                                                                                           
[   1.0000000] giopci0 at gio0 slot 1 addr 0x1f400000: Phobos G130 10/100 Ethernet                                                                                    
[   1.0000000] pci0 at giopci0 bus 0                                                                                                                                  
[   1.0000000] tlp0 at pci0 dev 0 function 0: DECchip 21143 Ethernet, pass 4.1                                                                                        
[   1.0000000] tlp0: interrupting at slot EXP0                                                                                                                        
[   1.0000000] tlp0: Ethernet address 00:60:f5:08:5d:9f                                                                                                               
[   1.0000000] lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3                                                                                           
[   1.0000000] lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto                                                                                          
[   1.0000000] hpc0 at gio0 addr 0x1fb80000: SGI HPC3 (onboard)                                                                                                       
[   1.0000000] zsc0 at hpc0 offset 0x59830                                                                                                                            
[   1.0000000] zstty0 at zsc0 channel 1 (console i/o)                                                                                                                 
[   1.0000000] zstty1 at zsc0 channel 0                                                                                                                               
[   1.0000000] pckbc0 at hpc0 offset 0x59840                                                                                                                          
[   1.0000000] sq0 at hpc0 offset 0x54000: SGI Seeq 80c03                                                                                                             
[   1.0000000] sq0: Ethernet address 08:00:69:0b:59:f5                                                                                                                
[   1.0000000] wdsc0 at hpc0 offset 0x44000: WD33C93B (20.0 MHz clock, BURST DMA, SCSI ID 0)                                                                          
[   1.0000000] wdsc0: microcode revision 0x0d, Fast SCSI                                                                                                              
[   1.0000000] scsibus0 at wdsc0: 8 targets, 8 luns per target                                                                                                        
[   1.0000000] haltwo at hpc0 offset 0x58000 not configured                                                                                                           
[   1.0000000] pi1ppc0 at hpc0 offset 0x59800                                                                                                                         
[   1.0000000] pi1ppc0: capabilities=0x8<PS2>                                                                                                                         
[   1.0000000] ppbus0 at pi1ppc0                                                                                                                                      
[   1.0000000] ppbus0: No IEEE1284 device found.                                                                                                                      
[   1.0000000] lpt0 at ppbus0: port mode = 0x1<COMPATIBLE>                                                                                                            
[   1.0000000] button0 at hpc0 offset 0x59850                                                                                                                         
[   1.0000000] hpc1 at gio0 addr 0x1fb00000: SGI HPC3 (IOPLUS mezzanine)                                                                                              
[   1.0000000] hpc1: using EXP1's DMA channel                                                                                                                         
[   1.0000000] sq1 at hpc1 offset 0x54000: SGI Seeq 80c03                                                                                                             
[   1.0000000] sq1: Ethernet address 08:00:69:02:95:3a                                                                                                                
[   1.0000000] dsclock0 at mainbus0 addr 0x1fbe0000                                                                                                                   
[   1.0000000] ioc0 at mainbus0 addr 0x1fbd9800: rev 0, machine Indy (Guinness), board rev 0                                                                          
[   1.0000030] pid 0(system): trap: cpu0, TLB miss (load or instr. fetch) in kernel mode                                                                              
[   1.0000030] status=0xf003, cause=0x8, epc=0x882b1c3c, vaddr=0                                                                                                      
[   1.0000030] tf=0x8804bbe8 ksp=0x8804bc88 ra=0x882b1f64 ppl=0                                                                                                       
[   1.0000030] kernel: TLB miss (load or instr. fetch) trap                                                                                                           
Stopped in pid 0.9 (system) at  882b1c3c:       lw      v0,0(s3)                                                                                                      
db> c
panic: utlbmod: 0: no pte
[   1.0000030] cpu0: Begin traceback...
[   1.0000030] pid -2012956296 not found
[   1.0000030] cpu0: End traceback...
[   1.0000030] kernel: breakpoint trap
Stopped in pid 0.9 (system) at  88076424:       jr      ra
                bdslot: nop
db> c
rebooting...

>How-To-Repeat:
Upgrade installed this machine from NetBSD 5.

After install, I realized I had set the file flags on the `netbsd*` files to not allow overwrite, so I had to manually install the GENERIC32_IP2x kernel as `nnetbsd*` since I was unable to run `chflags` in the `sysinst` shell (which seems like another problem).
>Fix:
Fix unknown, need help as my server is now bricked.

Probably unrelated, but I had previously reported a problem booting the 5.1.2 installer with this machine back in 2012: https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46417

>Release-Note:

>Audit-Trail:
From: <iwama@t3.rim.or.jp>
To: <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: port-sgimips/58269
Date: Wed, 22 May 2024 04:41:28 +0900

   I had a similar problem on Indy with NetBSD-9.3.

 >> hinv
                    System: IP22
                 Processor: 200 Mhz R4400, with FPU
      Primary I-cache size: 16 Kbytes
      Primary D-cache size: 16 Kbytes
      Secondary cache size: 1024 Kbytes
               Memory size: 256 Mbytes
                  Graphics: Indy 24-bit
                 SCSI Disk: scsi(0)disk(1)
                 SCSI Disk: scsi(0)disk(2)
                 SCSI Disk: scsi(0)disk(3)
                SCSI CDROM: scsi(0)cdrom(6)
                     Audio: Iris Audio Processor: version A2 revision 4.1.0
 >> boot

 NetBSD/sgimips 9.3 Bootstrap, Revision 1.5 (Thu Aug  4 15:30:37 UTC 2022)

 devopen: scsi(0)disk(3)rdisk(0)partition(0) type scsi file netbsd.ecoff
 4929840+127440=0x4b3930
 [   1.0000000] [ Kernel symbol table invalid! ]
 [   1.0000000] phys segment: 0xe000 @ 0x8002000
 [   1.0000000] adding 0xe000 @ 0x8002000 to freelist 0
 [   1.0000000] phys segment: 0x730000 @ 0x8010000
 [   1.0000000] adding 0x58000 @ 0x8010000 to freelist 0
 [   1.0000000] adding 0x22c000 @ 0x8514000 to freelist 0
 [   1.0000000] phys segment: 0xf800000 @ 0x8800000
 [   1.0000000] adding 0xf800000 @ 0x8800000 to freelist 0
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
 2004, 2005,
 [   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
 2015, 2016, 2017,
 [   1.0000000]     2018, 2019, 2020, 2021, 2022
 [   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights
 reserved.

 [   1.0000000] NetBSD 9.3 (GENERIC32_IP2x) #0: Thu Aug  4 15:30:37 UTC 2022
 [   1.0000000]
 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/sgimips/compile/GENERIC32_IP2x
 [   1.0000000] total memory = 256 MB
 [   1.0000000] (768 KB reserved for ARCS)
 [   1.0000000] avail memory = 245 MB
 [   1.0000000] WARNING: module error: built-in module sequencer can't find
 builtin dependency `midi'
 [   1.0000000] WARNING: module error: built-in module sequencer prerequisite
 midi failed, error 2
 [   1.0000000] mainbus0 (root): SGI-IP22 [SGI, 6909c4ea], 1 processor
 [   1.0000000] cpu0 at mainbus0: MIPS R4400 CPU (0x460) Rev. 6.0 with MIPS
 R4010 FPC Rev. 0.0
 [   1.0000000] cpu0: 48 TLB entries, 16MB max page size
 [   1.0000000] cpu0: 16KB/16B direct-mapped L1 instruction cache
 [   1.0000000] cpu0: 16KB/16B direct-mapped write-back L1 data cache
 [   1.0000000] cpu0: 1024KB/128B direct-mapped write-back L2 unified cache
 [   1.0000000] int0 at mainbus0 addr 0x1fbd9880
 [   1.0000000] int0: bus 100MHz, CPU 200MHz
 [   1.0000000] imc0 at mainbus0 addr 0x1fa00000: revision 3
 [   1.0000000] gio0 at imc0
 [   1.0000000] newport0 at gio0: SGI NG1 (board revision 1, cmap revision 5,
 xmap revision 5, vc2 revision 0), depth 24
 [   1.0000000] wsdisplay0 at newport0 kbdmux 1
 [   1.0000000] hpc0 at gio0: SGI HPC3 (onboard)
 [   1.0000000] zsc0 at hpc0 offset 0x59830
 [   1.0000000] zstty0 at zsc0 channel 1 (console i/o)
 [   1.0000000] zstty1 at zsc0 channel 0
 [   1.0000000] pckbc0 at hpc0 offset 0x59840
 [   1.0000000] pckbd0 at pckbc0 (kbd slot)
 [   1.0000000] wskbd0 at pckbd0 mux 1
 [   1.0000000] pms0 at pckbc0 (aux slot)
 [   1.0000000] wsmouse0 at pms0 mux 0
 [   1.0000000] sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
 [   1.0000000] sq0: Ethernet address 08:00:69:09:c4:ea
 [   1.0000000] wdsc0 at hpc0 offset 0x44000: WD33C93B (20.0 MHz clock, BURST
 DMA, SCSI ID 0)
 [   1.0000000] wdsc0: microcode revision 0x0d, Fast SCSI
 [   1.0000000] scsibus0 at wdsc0: 8 targets, 8 luns per target
 [   1.0000000] haltwo0 at hpc0 offset 0x58000: HAL2 revision 4.1.0
 [   1.0000000] audio0 at haltwo0: playback
 [   1.0000000] audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms)
 for playback
 [   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
 [   1.0000000] wsbell at spkr0 not configured
 [   1.0000000] pi1ppc0 at hpc0 offset 0x59800
 [   1.0000000] pi1ppc0: capabilities=0x8<PS2>
 [   1.0000000] ppbus0 at pi1ppc0
 [   1.0000000] ppbus0: No IEEE1284 device found.
 [   1.0000000] lpt0 at ppbus0: port mode = 0x1<COMPATIBLE>
 [   1.0000000] button0 at hpc0 offset 0x59850
 [   1.0000000] dsclock0 at mainbus0 addr 0x1fbe0000
 [   1.0000000] ioc0 at mainbus0 addr 0x1fbd9800: rev 0, machine Indy
 (Guinness), board rev 0
 [   1.0000030] scsibus0: waiting 2 seconds for devices to settle...
 [   1.0687213] sysctl: log 0x27bdffd8 root mismatch (0x8850c150)
 [   1.2677407] pid 0(system): trap: cpu0, TLB miss (load or instr. fetch) in
 kernel mode
 [   1.2677407] status=0x4ff03, cause=0x8, epc=0x88428100, vaddr=0
 [   1.2677407] tf=0x88003c40 ksp=0x88003ce0 ra=0x88335f28 ppl=0x8850c81c
 [   1.2677407] kernel: TLB miss (load or instr. fetch) trap
 Stopped in pid 0.1 (system) at  88428100:       lbu     t0,0(a0)
 db> 

 >> boot

 NetBSD/sgimips 9.3 Bootstrap, Revision 1.5 (Thu Aug  4 15:30:37 UTC 2022)

 devopen: scsi(0)disk(3)rdisk(0)partition(0) type scsi file netbsd
 4929840+127440 [285568+277831]=0x55ca10

 Exception: <vector=UTLB Miss>
 Status register: 0x2<IPL=8,MODE=KERNEL,EXL>
 Cause register: 0x30008008<CE=3,IP8,EXC=RMISS>
 Exception PC: 0x0, Exception RA: 0x882f12cc
 exception, bad address: 0x0
 Local I/O interrupt register 1: 0x80 <VR/GIO2>
 Local I/O interrupt register 2: 0x4 <>
   Saved user regs in hex (&gpda 0xa8740e48, &_regs 0xa8741048):
   arg: a8740000 5f 0 2
   tmp: a8740000 27c0 41ef 88578cc8 88578cc8 88575028 88578cc8 4
   sve: a8740000 0 0 0 0 0 0 0
   t8 a8740000 t9 0 at 0 v0 0 v1 0 k1 88510000
   gp a8740000 fp 0 sp 0 ra 0

 PANIC: Unexpected exception

 [Press reset or ENTER to restart.]

   I get around this problem by putting the kernel in IRIX's / partition and
 starting it using sash.

 >> boot -f scsi(0)disk(1)rdisk(0)partition(8)sash
 scsi(0)disk(1)rdisk(0)partition(0)NetBSD/netbsd
 136336+22752+3248+341792+49344d+4620+6880 entry: 0x97fa5ee0
 [   1.0000000] phys segment: 0x73e000 @ 0x8002000
 [   1.0000000] adding 0x66000 @ 0x8002000 to freelist 0
 [   1.0000000] adding 0x20d000 @ 0x8533000 to freelist 0
 [   1.0000000] phys segment: 0xf784000 @ 0x8800000
 [   1.0000000] adding 0xf784000 @ 0x8800000 to freelist 0
 [   1.0000000] phys segment: 0x7c000 @ 0x17f84000
 [   1.0000000] adding 0x7c000 @ 0x17f84000 to freelist 0
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
 2004, 2005,
 [   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
 2015, 2016, 2017,
 [   1.0000000]     2018, 2019, 2020, 2021, 2022
 [   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights
 reserved.

 [   1.0000000] NetBSD 9.3 (GENERIC32_IP2x) #0: Thu Aug  4 15:30:37 UTC 2022
 [   1.0000000]
 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/sgimips/compile/GENERIC32_IP2x
 [   1.0000000] total memory = 256 MB
 [   1.0000000] (768 KB reserved for ARCS)
 [   1.0000000] avail memory = 245 MB
 [   1.0000000] WARNING: module error: built-in module sequencer can't find
 builtin dependency `midi'
 [   1.0000000] WARNING: module error: built-in module sequencer prerequisite
 midi failed, error 2
 [   1.0000000] mainbus0 (root): SGI-IP22 [SGI, 6909c4ea], 1 processor
 [   1.0000000] cpu0 at mainbus0: MIPS R4400 CPU (0x460) Rev. 6.0 with MIPS
 R4010 FPC Rev. 0.0
 [   1.0000000] cpu0: 48 TLB entries, 16MB max page size
 [   1.0000000] cpu0: 16KB/16B direct-mapped L1 instruction cache
 [   1.0000000] cpu0: 16KB/16B direct-mapped write-back L1 data cache
 [   1.0000000] cpu0: 1024KB/128B direct-mapped write-back L2 unified cache
 [   1.0000000] int0 at mainbus0 addr 0x1fbd9880
 [   1.0000000] int0: bus 100MHz, CPU 200MHz
 [   1.0000000] imc0 at mainbus0 addr 0x1fa00000: revision 3
 [   1.0000000] gio0 at imc0
 [   1.0000000] newport0 at gio0: SGI NG1 (board revision 1, cmap revision 5,
 xmap revision 5, vc2 revision 0), depth 24
 [   1.0000000] wsdisplay0 at newport0 kbdmux 1
 [   1.0000000] hpc0 at gio0: SGI HPC3 (onboard)
 [   1.0000000] zsc0 at hpc0 offset 0x59830
 [   1.0000000] zstty0 at zsc0 channel 1 (console i/o)
 [   1.0000000] zstty1 at zsc0 channel 0
 [   1.0000000] pckbc0 at hpc0 offset 0x59840
 [   1.0000000] pckbd0 at pckbc0 (kbd slot)
 [   1.0000000] wskbd0 at pckbd0 mux 1
 [   1.0000000] pms0 at pckbc0 (aux slot)
 [   1.0000000] wsmouse0 at pms0 mux 0
 [   1.0000000] sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
 [   1.0000000] sq0: Ethernet address 08:00:69:09:c4:ea
 [   1.0000000] wdsc0 at hpc0 offset 0x44000: WD33C93B (20.0 MHz clock, BURST
 DMA, SCSI ID 0)
 [   1.0000000] wdsc0: microcode revision 0x0d, Fast SCSI
 [   1.0000000] scsibus0 at wdsc0: 8 targets, 8 luns per target
 [   1.0000000] haltwo0 at hpc0 offset 0x58000: HAL2 revision 4.1.0
 [   1.0000000] audio0 at haltwo0: playback
 [   1.0000000] audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms)
 for playback
 [   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
 [   1.0000000] wsbell at spkr0 not configured
 [   1.0000000] pi1ppc0 at hpc0 offset 0x59800
 [   1.0000000] pi1ppc0: capabilities=0x8<PS2>
 [   1.0000000] ppbus0 at pi1ppc0
 [   1.0000000] ppbus0: No IEEE1284 device found.
 [   1.0000000] lpt0 at ppbus0: port mode = 0x1<COMPATIBLE>
 [   1.0000000] button0 at hpc0 offset 0x59850
 [   1.0000000] dsclock0 at mainbus0 addr 0x1fbe0000
 [   1.0000000] ioc0 at mainbus0 addr 0x1fbd9800: rev 0, machine Indy
 (Guinness), board rev 0
 [   1.0000030] scsibus0: waiting 2 seconds for devices to settle...
 [   1.2088050] WARNING: module error: built-in module sequencer can't find
 builtin dependency `midi'
 [   1.3101469] WARNING: module error: built-in module sequencer prerequisite
 midi failed, error 2
 [   3.2436803] sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST32151N, 0560>
 disk fixed
 [   3.3263428] sd0: 2047 MB, 4177 cyl, 8 head, 125 sec, 512 bytes/sect x
 4193415 sectors
 [   3.4321276] sd0: sync (100.00ns offset 12), 8-bit (10.000MB/s) transfers,
 tagged queueing
 [   3.7877606] sd1 at scsibus0 target 3 lun 0: <IBM, DCAS-34330, S65A> disk
 fixed
 [   3.9309688] sd1: 4134 MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x
 8467200 sectors
 [   4.0206096] sd1: sync (100.00ns offset 12), 8-bit (10.000MB/s) transfers,
 tagged queueing
 [   5.1310107] boot device: sd0
 [   5.2064352] root on sd0a dumps on sd0b
 [   5.3824257] Supported file systems: mfs lfs ffs ext2fs nfs umap procfs
 overlay null kernfs fdesc union tmpfs smbfs puffs ptyfs ntfs msdos efs
 cd9660 coda
 [   5.5436282] no file system for sd0 (dev 0xa00)
 [   5.5969633] cannot mount root, error = 79
 [   5.6471580] root device (default sd0a): sd1a
 [   8.3478937] dump device (default sd1b): 
 [   9.2727785] file system (default generic): 
 [  10.0228762] root on sd1a dumps on sd1b
 [  10.1570741] root file system type: ffs
 [  10.2054057] kern.module.path=/stand/sgimips/9.3/modules
 [  10.3081482] init path (default /sbin/init): 
 [  10.8837101] init: trying /sbin/init
 Enter pathname of shell or RETURN for /bin/sh: 
 We recommend that you create a non-root account and use su(1) for root
 access.
 #
 -- 
 Yoshihiko Iwama


From: <iwama@t3.rim.or.jp>
To: <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: port-sgimips/58269
Date: Wed, 22 May 2024 06:08:06 +0900

   A similar problem occurred on Indigo2 with NetBSD-9.3.
   The patch reported in PR #57595 has been applied to this kernel.

 >> hinv
                    System: IP22
                 Processor: 250 Mhz R4400, with FPU
      Primary I-cache size: 16 Kbytes
      Primary D-cache size: 16 Kbytes
      Secondary cache size: 2048 Kbytes
               Memory size: 128 Mbytes
                  Graphics: High-AA Impact
                SCSI CDROM: scsi(0)cdrom(3)
                 SCSI Disk: scsi(1)disk(1)
                 SCSI Disk: scsi(1)disk(2)
                     Audio: Iris Audio Processor: version A2 revision 1.1.0
 >> version
 PROM Monitor SGI Version 5.3 Rev E IP22 Sep 21, 1995 (BE)

 >> boot -f scsi(1)disk(2)rdisk(0)partition(8)aoutboot
 scsi(1)disk(2)rdisk(0)partition(0)netbsd.ecoff
 54464+0+1792 entry: 0x88002000

 NetBSD/sgimips 9.3 Bootstrap, Revision 1.5 (Mon Aug 28 04:30:32 UTC 2023)

 devopen: scsi(1)disk(2)rdisk(0)partition(0) type scsi file netbsd.ecoff
 4930320+127472=0x4b3b10
 [   1.0000000] [ Kernel symbol table invalid! ]
 [   1.0000000] phys segment: 0xe000 @ 0x8002000
 [   1.0000000] adding 0xe000 @ 0x8002000 to freelist 0
 [   1.0000000] phys segment: 0x730000 @ 0x8010000
 [   1.0000000] adding 0x58000 @ 0x8010000 to freelist 0
 [   1.0000000] adding 0x22c000 @ 0x8514000 to freelist 0
 [   1.0000000] phys segment: 0x7800000 @ 0x8800000
 [   1.0000000] adding 0x7800000 @ 0x8800000 to freelist 0
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
 2004, 2005,
 [   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
 2015, 2016, 2017,
 [   1.0000000]     2018, 2019, 2020, 2021, 2022
 [   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights
 reserved.

 [   1.0000000] NetBSD 9.3 (GENERIC32_IP2x) #4: Mon Aug 28 19:29:26 JST 2023
 [   1.0000000]
 iwama@netbsd-v.led.t3.rim.or.jp:/home/iwama/NetBSD-9.3-sgimips-indigo2/usr/o
 bj/sys/arch/sgimips/compile/GENERIC32_IP2x
 [   1.0000000] total memory = 128 MB
 [   1.0000000] (768 KB reserved for ARCS)
 [   1.0000000] avail memory = 120 MB
 [   1.0000000] WARNING: module error: built-in module sequencer can't find
 builtin dependency `midi'
 [   1.0000000] WARNING: module error: built-in module sequencer prerequisite
 midi failed, error 2
 [   1.0000000] mainbus0 (root): SGI-IP22 [SGI, 6909b2c8], 1 processor
 [   1.0000000] cpu0 at mainbus0: MIPS R4400 CPU (0x460) Rev. 6.0 with MIPS
 R4010 FPC Rev. 0.0
 [   1.0000000] cpu0: 48 TLB entries, 16MB max page size
 [   1.0000000] cpu0: 16KB/16B direct-mapped L1 instruction cache
 [   1.0000000] cpu0: 16KB/16B direct-mapped write-back L1 data cache
 [   1.0000000] cpu0: 2048KB/128B direct-mapped write-back L2 unified cache
 [   1.0000000] ioc0 at mainbus0 addr 0x1fbd9800: rev 0, machine Indigo2
 (Fullhouse), board rev 0
 [   1.0000000] int0 at mainbus0 addr 0x1fbd9000
 [   1.0000000] int0: bus 125MHz, CPU 250MHz
 [   1.0000000] imc0 at mainbus0 addr 0x1fa00000: revision 3, EISA bus
 present
 [   1.0000000] gio0 at imc0
 [   1.0000000] unknown GIO card (product 0x10 revision 0x01) at gio0 slot 0
 addr 0x1f000000 not configured
 [   1.0000000] Synchronous ISDN (product 0x04 revision 0x00) at gio0 slot 1
 addr 0x1f400000 not configured
 [   1.0000000] hpc0 at gio0 addr 0x1fb80000: SGI HPC3 (onboard)
 [   1.0000000] zsc0 at hpc0 offset 0x59830
 [   1.0000000] zstty0 at zsc0 channel 1 (console i/o)
 [   1.0000000] zstty1 at zsc0 channel 0
 [   1.0000000] pckbc0 at hpc0 offset 0x59840
 [   1.0000000] pckbd0 at pckbc0 (kbd slot)
 [   1.0000000] wskbd0 at pckbd0 mux 1
 [   1.0000000] pms0 at pckbc0 (aux slot)
 [   1.0000000] wsmouse0 at pms0 mux 0
 [   1.0000000] sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
 [   1.0000000] sq0: Ethernet address 08:00:69:09:b2:c8
 [   1.0000000] wdsc0 at hpc0 offset 0x44000: WD33C93B (20.0 MHz clock, BURST
 DMA, SCSI ID 0)
 [   1.0000000] wdsc0: microcode revision 0x0d, Fast SCSI
 [   1.0000000] scsibus0 at wdsc0: 8 targets, 8 luns per target
 [   1.0000000] wdsc1 at hpc0 offset 0x4c000: WD33C93B (20.0 MHz clock, BURST
 DMA, SCSI ID 0)
 [   1.0000000] wdsc1: microcode revision 0x0d, Fast SCSI
 [   1.0000000] scsibus1 at wdsc1: 8 targets, 8 luns per target
 [   1.0000000] haltwo0 at hpc0 offset 0x58000: HAL2 revision 1.1.0
 [   1.0000000] audio0 at haltwo0: playback
 [   1.0000000] audio0: slinear_be:16 2ch 48000Hz, blk 4096 bytes (21.3ms)
 for playback
 [   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
 [   1.0000000] wsbell at spkr0 not configured
 [   1.0000000] pi1ppc0 at hpc0 offset 0x59800
 [   1.0000000] pi1ppc0: capabilities=0x8<PS2>
 [   1.0000000] ppbus0 at pi1ppc0
 [   1.0000000] ppbus0: No IEEE1284 device found.
 [   1.0000000] lpt0 at ppbus0: port mode = 0x1<COMPATIBLE>
 [   1.0000000] dsclock0 at mainbus0 addr 0x1fbe0000
 [   1.0000030] scsibus0: waiting 2 seconds for devices to settle...
 [   1.0692438] scsibus1: waiting 2 seconds for devices to settle...
 [   1.2513932] pid 0(system): trap: cpu0, TLB miss (load or instr. fetch) in
 kernel mode
 [   1.2513932] status=0x4ff03, cause=0x8, epc=0x88428100, vaddr=0
 [   1.2513932] tf=0x88003c78 ksp=0x88003d18 ra=0x88335f28 ppl=0x8850c9d0
 [   1.2513932] kernel: TLB miss (load or instr. fetch) trap
 Stopped in pid 0.1 (system) at  88428100:       lbu     t0,0(a0)
 db>

 >> boot -f scsi(1)disk(2)rdisk(0)partition(8)boot
 scsi(1)disk(2)rdisk(0)partition(0)netbsd

 NetBSD/sgimips 9.3 Bootstrap, Revision 1.5 (Mon Aug 28 04:30:32 UTC 2023)

 devopen: scsi(1)disk(2)rdisk(0)partition(0) type scsi file netbsd
 4930320+127472 [285568+277869]=0x55cc38

 Exception: <vector=UTLB Miss>
 Status register: 0x2<IPL=8,MODE=KERNEL,EXL>
 Cause register: 0x30008008<CE=3,IP8,EXC=RMISS>
 Exception PC: 0x0, Exception RA: 0x882f12cc
 exception, bad address: 0x0
 Local I/O interrupt register 2: 0xc8 <EISA,SLOT0,SLOT1>
   Saved user regs in hex (&gpda 0xa8740e48, &_regs 0xa8741048):
   arg: a8740000 0 5f 2
   tmp: a8740000 27c0 41ef 88578ec8 88578ec8 88575228 88578ec8 4
   sve: a8740000 0 0 0 0 0 0 0
   t8 a8740000 t9 0 at 0 v0 0 v1 0 k1 88510000
   gp a8740000 fp 0 sp 0 ra 0

 PANIC: Unexpected exception

 [Press reset or ENTER to restart.]

   I get around this problem by putting the kernel in IRIX's / partition and
 starting it using sash.
 -- 
 Yoshihiko Iwama


From: <iwama@t3.rim.or.jp>
To: <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: port-sgimips/58269
Date: Wed, 22 May 2024 07:31:32 +0900

 A similar problem occurred on O2 with NetBSD-9.4.

 > hinv
                    System: IP32
                 Processor: 400 Mhz R12000, with FPU
      Primary I-cache size: 32 Kbytes
      Primary D-cache size: 32 Kbytes
      Secondary cache size: 2 Mbytes
               Memory size: 448 Mbytes
                  Graphics: CRM, Rev C
                     Audio: A3 version 1
                 SCSI Disk: scsi(0)disk(2)
                SCSI CDROM: scsi(0)cdrom(4)
                 SCSI Disk: scsi(1)disk(2)
                 SCSI Disk: scsi(1)disk(3)
 > version


 PROM Monitor (BE)
 Tue Oct 22 10:58:00 PDT 2002 
 VERSION 4.18
 O2 R5K/R7K/R10K/R12K
 IRIX 6.5.x IP32prom IP32PROM-v4

 > boot -f scsi(1)disk(2)rdisk(0)partition(8)boot
 scsi(1)disk(2)rdisk(0)partition(0)netbsd
 54464+1792 entry: 0x80002000

 NetBSD/sgimips 9.4 Bootstrap, Revision 1.5 (Sat Apr 20 13:32:22 UTC 2024)

 devopen: scsi(1)disk(2)rdisk(0)partition(0) type scsi file netbsd
 7738672+131920 [396528+388532]=0x8419b0

 Exception: <vector=Normal>
 Status register: 0x2<IPL=8,MODE=KERNEL>
 Cause register: 0x8008<CE=0,IP8,EXC=RMISS>
 Exception PC: 0x0, Exception RA: 0x8048a508
 Read TLB miss exception, bad address: 0x0
   Saved user regs in hex (&gpda 0x81061838, &_regs 0x81061a38):
   arg: 81070000 46 49 2
   tmp: 81070000 305e 5be6 80842bfc 80842bfc 8083dd5c 80842bfc 4
   sve: 81070000 0 0 0 0 0 0 0
   t8 81070000 t9 0 at 0 v0 0 v1 0 k1 807c0000
   gp 81070000 fp 0 sp 0 ra 0

 PANIC: Unexpected exception

 [Press reset or ENTER to restart.]

   I get around this problem by putting the kernel in IRIX's / partition and
 starting it using sash.
 -- 
 Yoshihiko Iwama


From: Tim McIntosh <tmcintos@eskimo.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sgimips/58269
Date: Wed, 22 May 2024 11:02:33 -0700

 This change fixes the problem for me:

 diff --git a/sys/arch/sgimips/sgimips/machdep.c =
 b/sys/arch/sgimips/sgimips/machdep.c
 index 0a4bbd329..9ba1914ae 100644
 --- a/sys/arch/sgimips/sgimips/machdep.c
 +++ b/sys/arch/sgimips/sgimips/machdep.c
 @@ -286,6 +286,13 @@ mach_init(int argc, int32_t argv32[], uintptr_t =
 magic, int32_t bip32)

        cpu_setmodel("%s", arcbios_system_identifier);

 +       /*
 +        * Copy exception-dispatch code down to exception vector.
 +        * Initialize locore-function vector.
 +        * Clear out the I and D caches.
 +        */
 +       mips_vector_init(NULL, false);
 +
        uvm_md_init();

        /* set up bootinfo structures */
 @@ -661,13 +668,6 @@ mach_init(int argc, int32_t argv32[], uintptr_t =
 magic, int32_t bip32)
         */
        arcbios_tree_walk(sgimips_count_cpus, NULL);

 -       /*
 -        * Copy exception-dispatch code down to exception vector.
 -        * Initialize locore-function vector.
 -        * Clear out the I and D caches.
 -        */
 -       mips_vector_init(NULL, false);
 -
        /*
         * Initialize error message buffer (at end of core).
         */

From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58269 CVS commit: src/sys/arch/sgimips/sgimips
Date: Thu, 23 May 2024 06:11:14 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Thu May 23 06:11:14 UTC 2024

 Modified Files:
 	src/sys/arch/sgimips/sgimips: machdep.c

 Log Message:
 sgimips: call mips_vector_init earlier to fix boot.

 PR port-sgimips/58269


 To generate a diff of this commit:
 cvs rdiff -u -r1.154 -r1.155 src/sys/arch/sgimips/sgimips/machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->pending-pullups
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Thu, 23 May 2024 07:22:48 +0000
State-Changed-Why:
[pullup-10 #695] Fwd: CVS commit: src/sys/arch/sgimips/sgimips


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58269 CVS commit: [netbsd-10] src/sys/arch/sgimips/sgimips
Date: Mon, 17 Jun 2024 18:05:30 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Jun 17 18:05:30 UTC 2024

 Modified Files:
 	src/sys/arch/sgimips/sgimips [netbsd-10]: machdep.c

 Log Message:
 Pull up following revision(s) (requested by skrll in ticket #695):

 	sys/arch/sgimips/sgimips/machdep.c: revision 1.155

 sgimips: call mips_vector_init earlier to fix boot.

 PR port-sgimips/58269


 To generate a diff of this commit:
 cvs rdiff -u -r1.152 -r1.152.4.1 src/sys/arch/sgimips/sgimips/machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Wed, 24 Jul 2024 00:41:54 +0000
State-Changed-Why:
Should this be pulled up to 9 too?


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.