NetBSD Problem Report #57600

From www@netbsd.org  Sun Sep  3 12:03:25 2023
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 6191F1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  3 Sep 2023 12:03:25 +0000 (UTC)
Message-Id: <20230903120323.411591A923A@mollari.NetBSD.org>
Date: Sun,  3 Sep 2023 12:03:23 +0000 (UTC)
From: rherdware@yahoo.com
Reply-To: rherdware@yahoo.com
To: gnats-bugs@NetBSD.org
Subject: sparc64 (Ultra 60) hangs when enabling cardbus drivers
X-Send-Pr-Version: www-1.0

>Number:         57600
>Category:       port-sparc64
>Synopsis:       sparc64 (Ultra 60) hangs when enabling cardbus drivers
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 03 12:05:00 +0000 2023
>Originator:     Björn Johannesson
>Release:        10_BETA
>Organization:
>Environment:
>Description:
When enabling cardbus drivers in the kernel it hard hangs before mounting root. The machine is a Sun Ultra 60 (2x450MHz). dmesg follows
Rebooting with command: boot disk saab
Boot device: /pci@1f,4000/scsi@3/disk@0,0  File and args: saab
NetBSD IEEE 1275 Multi-FS Bootblock
Version $NetBSD: bootblk.fth,v 1.15 2015/08/20 05:40:08 dholland Exp $
>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.20 (Wed May 12 13:15:55 UTC 2021)
=0x7406c0
Loading saab: 7603840+413792+290416 [554352+357641]=0xa8b180
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020, 2021, 2022
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 10.0_BETA (SAAB) #9: Sat Sep  2 01:07:19 CEST 2023
        herdware@regin.home.lan:/usr/obj/sys/arch/sparc64/compile/SAAB
total memory = 2048 MB
avail memory = 1994 MB
mainbus0 (root): SUNW,Ultra-60 (): hostid 80a3dbf4
cpu0 at mainbus0: SUNW,UltraSPARC-II @ 450.032 MHz, CPU id 0
cpu0: manuf 17, impl 11, mask a0
cpu0: 16K instruction (32 b/l), 16K data (32 b/l), 4096K external (64 b/l)
cpu1 at mainbus0: SUNW,UltraSPARC-II @ 450.032 MHz, CPU id 2
cpu1: manuf 17, impl 11, mask a0
cpu1: 16K instruction (32 b/l), 16K data (32 b/l), 4096K external (64 b/l)
psycho0 at mainbus0 addr 0xfffb4000
psycho0: SUNW,psycho: impl 0, version 4: ign 7c0 bus range 0 to 0; PCI bus 0
pci0 at psycho0                                                                                                      [42/1892]
ebus0 at pci0 dev 1 function 0: Sun Microsystems PCIO Ebus2, revision 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003
power at ebus0 addr 724000-724003 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
sc at ebus0 addr 500000-500007 not configured
sab0 at ebus0 addr 400000-40007f ipl 2b: rev 3.2
sabtty0 at sab0 port 0: console i/o
sabtty1 at sab0 port 1
com0 at ebus0 addr 3083f8-3083ff ipl 29: ns16550a, 16-byte FIFO
kbd0 at com0
com1 at ebus0 addr 3062f8-3062ff ipl 2a: ns16550a, 16-byte FIFO
ms0 at com1
wsmouse0 at ms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 300398-300399, 700000-70000f ipl 22
fdthree at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003 ipl 27 not configured
clock0 at ebus0 addr 0-1fff: mk48t59
flashprom at ebus0 addr 0-fffff not configured
audiocs0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f, 722000-722003 ipl 23 ipl 24: CS4231A
audio0 at audiocs0: playback, capture, full duplex
audio0: slinear_be:16 -> slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
audio0: slinear_be:16 <- slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
hme0 at pci0 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
hme0: interrupting at ivec 3021
hme0: Ethernet address 08:00:20:a3:db:f4
ukphy0 at hme0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
esiop0 at pci0 dev 3 function 0: Symbios Logic 53c875 (ultra-wide scsi)
esiop0: using on-board RAM
esiop0: interrupting at ivec 2820
scsibus0 at esiop0: 16 targets, 8 luns per target
esiop1 at pci0 dev 3 function 1: Symbios Logic 53c875 (ultra-wide scsi)
esiop1: using on-board RAM
esiop1: interrupting at ivec 2826
scsibus1 at esiop1: 16 targets, 8 luns per target
re0 at pci0 dev 2 function 0: RealTek 8169/8110 Gigabit Ethernet (rev. 0x10)
re0: interrupting at ivec 10
re0: RTL8169/8110SB (0x1000)
re0: Ethernet address ec:08:6b:06:39:45
rgephy0 at re0 phy 7: RTL8211C 1000BASE-T media interface
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
cbb0 at pci0 dev 4 function 0: Ricoh 5C475 PCI-CardBus Bridge (rev. 0x80)
ohci0 at pci0 dev 5 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci0: interrupting at ivec 1d
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ohci1 at pci0 dev 5 function 1: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci1: interrupting at ivec 1e
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
ohci2 at pci0 dev 5 function 2: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci2: interrupting at ivec 1f
ohci2: OHCI version 1.0, legacy support
usb2 at ohci2: USB revision 1.0
ehci0 at pci0 dev 5 function 3: Acer Labs M5239 USB 2.0 Host Controller (rev. 0x01)
ehci0: interrupting at ivec 1c
ehci0: 3 companion controllers, 2 ports each: ohci0 ohci1 ohci2
usb3 at ehci0: USB revision 2.0
cbb0: interrupting at ivec 18
cardslot0 at cbb0
cardbus0 at cardslot0: bus 1
pcmciabus at cardslot0 not configured
psycho1 at mainbus0 addr 0xfffc6000
psycho1: SUNW,psycho: impl 0, version 4: ign 7c0 bus range 128 to 128; PCI bus 128
pci1 at psycho1
counter-timer at mainbus0 addr 0xfff9fc00 not configured
ffb0 at mainbus0 addr 0xfebc0000: Elite3D, model SUNW,540-3623, dac 10
ffb0: attached to /dev/fb0
wsdisplay1 at ffb0 kbdmux 1
pcons at mainbus0 not configured
WARNING: system needs entropy for security; see entropy(7)
No counter-timer -- using %tick at 450.032MHz as system clock.
wskbd0 at kbd0 mux 1
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
uhub0 at usb0: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb3: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
uhub2 at usb1: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
uhub3 at usb2: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
kbd0: reset failed
probe(esiop0:0:0:0): command timeout, CDB: 0x12 00 00 00 24 00
esiop0: scsi bus reset
probe(esiop0:0:0:0): command with tag id -1 reset
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST373207LC, 7804> disk fixed
sd0: 70007 MB, 90774 cyl, 2 head, 789 sec, 512 bytes/sect x 143374744 sectors
^hangs here. Sometimes after uhub3 line
>How-To-Repeat:
Enable cardbus drivers in kernel config, recompile and boot it.
>Fix:

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-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.