NetBSD Problem Report #54920

From tsutsui@ceres.dti.ne.jp  Sun Feb  2 13:09:11 2020
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 53D151A9213
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  2 Feb 2020 13:09:11 +0000 (UTC)
Message-Id: <202002020823.0128NgJL020267@ceres.dti.ne.jp>
Date: Sun, 2 Feb 2020 17:23:42 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: 9.0_RC1 macppc GENERIC kernel locks up
X-Send-Pr-Version: 3.95

>Number:         54920
>Category:       kern
>Synopsis:       9.0_RC1 macppc GENERIC kernel locks up
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    msaitoh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 02 16:36:55 +0000 2020
>Closed-Date:    Tue Feb 11 15:36:00 +0000 2020
>Last-Modified:  Tue Feb 11 15:36:00 +0000 2020
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.0_RC1
>Organization:
>Environment:
System: NetBSD 9.0_RC1 (GENERIC) #0: Wed Nov 27 16:14:52 UTC 2019 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/macppc/compile/GENERIC
Architecture: powerpc
Machine: macppc
>Description:
NetBSD/macppc 9.0_RC1 GENERIC kernel locks up on fetching
base sets from network via ex(4) NIC to an obio wd(4) disk.

---
Open Firmware, 2.0
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
 ok
0 > boot -s 
OF_open bootpath=ata/ATA-Disk@0
read stage 2 blocks: 0123. done!
starting stage 2...

>> NetBSD/macppc OpenFirmware Boot, Revision 1.13 (Sat Feb  1 17:21:55 UTC 2020)
Cannot use bootpath
Using boot-device instead
11020028+166192 [474704+462099]=0xb900b0
 start=0x100000
[   1.0000000] mem region 0 start=0 size=4000000
[   1.0000000] avail region 0 start=0x4800 size=0x800
[   1.0000000] avail region 1 start=0x15000 size=0x3eeb000
[   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 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.0_RC1 (GENERIC) #0: Wed Nov 27 16:14:52 UTC 2019
[   1.0000000] 	mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/macppc/compile/GENERIC
[   1.0000000] total memory = 65536 KB
[   1.0000000] avail memory = 50716 KB
[   1.0000000] found ohare PIC at f3000000
[   1.0000000] bootpath: ata/ATA-Disk@0/netbsd
[   1.0000000] mainbus0 (root)
[   1.0000000] cpu0 at mainbus0: 603ev (Revision 2.1), ID 0 (primary)
[   1.0000000] cpu0: HID0 0x90c001<DOZE,DPM,ICE,DCE,NOPTI>, powersave: 1
[   1.0000000] cpu0: ohare L2 cache enabled
[   1.0000000] valkyriefb0 at mainbus0 address 0xf1000000
[   1.0000000] memory0 at mainbus0
[   1.0000000] bandit0 at mainbus0
[   1.0000000] pci0 at bandit0 bus 0
[   1.0000000] pchb0 at pci0 dev 11 function 0
[   1.0000000] pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x02)
[   1.0000000] ex0 at pci0 dev 13 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
[   1.0000000] ex0: interrupting at irq 23
[   1.0000000] ex0: MAC address 00:50:04:65:51:1a
[   1.0000000] exphy0 at ex0 phy 24: 3Com internal media interface
[   1.0000000] exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[   1.0000000] VIA Technologies VT83C572 USB Controller (USB serial bus, UHCI, revision 0x04) at pci0 dev 14 function 0 not configured
[   1.0000000] obio0 at pci0 dev 16 function 0: addr 0xf3000000
[   1.0000000] mesh0 at obio0 offset 0x10000 irq 12: 50MHz, SCSI ID 7
[   1.0000000] scsibus0 at mesh0: 8 targets, 8 luns per target
[   1.0000000] zsc0 at obio0 irq 15,16
[   1.0000000] zstty0 at zsc0 channel 0 (console i/o)
[   1.0000000] zstty1 at zsc0 channel 1
[   1.0000000] awacs0 at obio0 offset 0x14000: irq 17,8,9
[   1.0000000] awacs0: speaker
[   1.0000000] audio0 at awacs0: playback, capture, full duplex
[   1.0000000] audio0: slinear_be:16 2ch 44100Hz, blk 23ms for playback
[   1.0000000] audio0: slinear_be:16 2ch 44100Hz, blk 23ms for recording
[   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
[   1.0000000] wsbell at spkr0 not configured
[   1.0000000] swim3 at obio0 offset 0x15000 not configured
[   1.0000000] nvram0 at obio0 offset 0x60000
[   1.0000000] cuda0 at obio0 offset 0x16000 irq 18
[   1.0000000] nadb0 at cuda0: Apple Desktop Bus
[   1.0000000] iic0 at cuda0: I2C bus
[   1.0000000] videopll0 at iic0 addr 0x50: Apple onboard video PLL
[   1.0000000] wdc0 at obio0 offset 0x20000 irq property not found; using 13: DMA transfer
[   1.0000000] atabus0 at wdc0 channel 0
[   1.0000000] vmmask 7cc00000 schedmask 7fc00000 highmask 7fc00000
[   1.0000796] scsibus0: waiting 2 seconds for devices to settle...
[   1.3899590] adbkbd0 at nadb0 addr 2: extended keyboard
[   1.4299604] wskbd0 at adbkbd0 mux 1
[   1.4299604] wsmouse0 at adbkbd0 mux 0
[   1.4299604] adbms0 at nadb0 addr 3: 1-button, 100 dpi mouse
[   1.4899641] wsmouse1 at adbms0 mux 0
[   3.8600335] cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8024, 2.0e> cdrom removable
[   4.3900510] wd0 at atabus0 drive 0
[   4.4100857] wd0: <ST320011A>
[   4.4100857] wd0: 19092 MB, 38792 cyl, 16 head, 63 sec, 512 bytes/sect x 39102336 sectors
[   4.7600788] swwdog0: software watchdog initialized
[   4.7900722] valkyriefb0: switched to 800 x 600 in 8 bit colour
[   4.8300640] wsdisplay1 at valkyriefb0 kbdmux 1
[   4.8500895] valkyriefb0: switched to 800 x 600 in 8 bit colour
[   4.9000654] wsdisplay2 at valkyriefb0 kbdmux 1
[   4.9000654] boot device: wd0
[   4.9000654] root on wd0a dumps on wd0b
[   4.9600774] /: replaying log to memory
[   4.9800942] root file system type: ffs
[   4.9800942] kern.module.path=/stand/macppc/9.0/modules
Enter pathname of shell or RETURN for /bin/sh: 
Terminal type? [unknown] vt100
Terminal type is vt100.
We recommend creating a non-root account and using su(1) for root access.
# ifconfig ex0 192.168.20.4
# route add default 192.168.20.1
add net default: gateway 192.168.20.1
# mount /
[  32.6805074] /: replaying log to disk
# ftp http://cdn.netbsd.org/pub/NetBSD/NetBSD-9.0_RC1/macppc/binary/sets/base.tgz
Trying [2a04:4e42:1a::262]:80 ...
ftp: Can't connect to `2a04:4e42:1a::262:80': No route to host
Trying 151.101.229.6:80 ...
Requesting http://cdn.netbsd.org/pub/NetBSD/NetBSD-9.0_RC1/macppc/binary/sets/base.tgz
  0% |                                   |     0        0.00 KiB/s    --:-- ETA

[hang here, sending BREAK doesn't call ddb(4) prompt)]
---

8.1 GENERIC works fine on the same hardware.

>How-To-Repeat:
See above logs.

>Fix:
No clue for now.

Something wrong interrupt handler (multiple interrupts in the handler)?
Or gcc optimization issue?

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: gnats@NetBSD.org
State-Changed-When: Sun, 02 Feb 2020 16:40:32 +0000
State-Changed-Why:
duplicate of 54919


From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: port-macppc/54920 (9.0_RC1 macppc GENERIC kernel locks up)
Date: Sun, 2 Feb 2020 23:41:30 +0300

 On Sun, Feb 02, 2020 at 16:40:32 +0000, gnats@NetBSD.org wrote:

 > State-Changed-From-To: open->closed
 > State-Changed-Why:
 > duplicate of 54919

 54919 doesn't seem to exist.

 $ query-pr 54919
 query-pr: no PRs matched

 Also http://gnats.netbsd.org/54919

 -uwe

State-Changed-From-To: closed->open
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 08 Feb 2020 14:53:03 +0000
State-Changed-Why:
54919 has not been resurrected for a week.


Responsible-Changed-From-To: port-macppc-maintainer->msaitoh
Responsible-Changed-By: msaitoh@NetBSD.org
Responsible-Changed-When: Mon, 10 Feb 2020 07:16:37 +0000
Responsible-Changed-Why:
mine.


From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54920 CVS commit: src/sys/dev/ic
Date: Mon, 10 Feb 2020 07:48:02 +0000

 Module Name:	src
 Committed By:	msaitoh
 Date:		Mon Feb 10 07:48:02 UTC 2020

 Modified Files:
 	src/sys/dev/ic: elinkxl.c

 Log Message:
  Restore an register read for RX_FRAMES_OK which was removed in rev. 1.133.
 All statistics registers should be read to ACK the interrupt. Fixes PR#54920.

 XXX pullup-[89]


 To generate a diff of this commit:
 cvs rdiff -u -r1.136 -r1.137 src/sys/dev/ic/elinkxl.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->needs-pullups
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Mon, 10 Feb 2020 15:10:03 +0000
State-Changed-Why:


From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: port-macppc/54920 (9.0_RC1 macppc GENERIC kernel locks up)
Date: Tue, 11 Feb 2020 00:07:45 +0900

 Just for a record:

 Manual bisect by "cvs update -rnetbsd-9 -DYYYYMMDD" shows:

 cvs update -rnetbsd-9 -D20190901 : good
 cvs update -rnetbsd-9 -D20191008 : good
 cvs update -rnetbsd-9 -D20191026 : good
 cvs update -rnetbsd-9 -D20191105 : good
 cvs update -rnetbsd-9 -D20191108 : bad
 cvs update -rnetbsd-9 -D20191111 : bad
 cvs update -rnetbsd-9 -D20191115 : bad
 cvs update -rnetbsd-9 -D20120201 : bad

 and the propblem is caused by this commit:
  https://mail-index.netbsd.org/source-changes/2019/11/06/msg110625.html

 ---
 Izumi Tsutsui

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54920 CVS commit: [netbsd-9] src/sys/dev/ic
Date: Tue, 11 Feb 2020 08:41:28 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Tue Feb 11 08:41:28 UTC 2020

 Modified Files:
 	src/sys/dev/ic [netbsd-9]: elinkxl.c

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

 	sys/dev/ic/elinkxl.c: revision 1.137

   Restore an register read for RX_FRAMES_OK which was removed in rev. 1.133.

 All statistics registers should be read to ACK the interrupt. Fixes PR#54920.
 XXX pullup-[89]


 To generate a diff of this commit:
 cvs rdiff -u -r1.131.2.1 -r1.131.2.2 src/sys/dev/ic/elinkxl.c

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

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54920 CVS commit: [netbsd-8] src/sys/dev/ic
Date: Tue, 11 Feb 2020 08:44:11 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Tue Feb 11 08:44:11 UTC 2020

 Modified Files:
 	src/sys/dev/ic [netbsd-8]: elinkxl.c

 Log Message:
 Pull up following revision(s) (requested by msaitoh in ticket #1501):

 	sys/dev/ic/elinkxl.c: revision 1.137

   Restore an register read for RX_FRAMES_OK which was removed in rev. 1.133.

 All statistics registers should be read to ACK the interrupt. Fixes PR#54920.
 XXX pullup-[89]


 To generate a diff of this commit:
 cvs rdiff -u -r1.121.6.2 -r1.121.6.3 src/sys/dev/ic/elinkxl.c

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

State-Changed-From-To: needs-pullups->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Tue, 11 Feb 2020 15:36:00 +0000
State-Changed-Why:
Pullup complete. Note this ex(4) issue also affected at least i386.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.