NetBSD Problem Report #40051

From kilbi@kilbi.de  Fri Nov 28 09:24:12 2008
Return-Path: <kilbi@kilbi.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 4F3F563B8BD
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 28 Nov 2008 09:24:12 +0000 (UTC)
Message-Id: <20081128092232.7B9CD1046A@mail.kilbi.de>
Date: Fri, 28 Nov 2008 10:22:31 +0100 (MET)
From: mk@kilbi.de
Reply-To: mk@kilbi.de
To: gnats-bugs@gnats.NetBSD.org
Subject: powerbook g4/500 titanium problem with netbsd-5: fwohci
X-Send-Pr-Version: 3.95

>Number:         40051
>Category:       port-macppc
>Synopsis:       powerbook g4/500 titanium with netbsd-5 kernel hangs up with fwohci 'support'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 28 09:25:00 +0000 2008
>Closed-Date:    Wed Jun 13 01:27:53 +0000 2018
>Last-Modified:  Wed Jun 13 01:27:53 +0000 2018
>Originator:     Markus W Kilbinger
>Release:        NetBSD 5.0_BETA
>Organization:
>Environment:


System: NetBSD 5.0_BETA (GENERIC) #0: Wed Nov 26 10:23:09 PST 2008  builds@wb27:/home/builds/ab/netbsd-5/macppc/200811260002Z-obj/home/builds/ab/netbsd-5/src/sys/arch/macppc/compile/GENERIC macppc
Architecture: powerpc
Machine: macppc
>Description:
	On my powerbook g4/500 titanium installed with a netbsd-4
	userland (and kernel for normal use) I tried to boot/use an
	actual netbsd-5 kernel (see above) and ran into an hangup
	during booting:

	  [...]
	  pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
	  fwohci0 at pci2 dev 14 function 0: Apple Computer product 0x0018 (rev. 0x01)
	  fwohci0: interrupting at irq 40
	  fwohci0: OHCI version 1.0 (ROM=0)
	  fwohci0: No. of Isochronous channels is 4.
	  fwohci0: EUI64 00:30:65:xx:xx:xx:xx:xx
	  fwohci0: Phy 1394a available S400, 1 ports.
	  fwohci0: Link S400, max_rec 2048 bytes.
	  ieee1394if0 at fwohci0: IEEE1394 bus
	  [manually re-typed:]
	  fwip0 at ieee1394if0: IP over IEEE1394
	  fwohci0: Initiate bus reset
	  gem0: ...
	  gem0: ...
	  bmtphy0: ...
	  bmtphy0: ...
	  gem0: Ethernet address ...
	  biomask 8000ffe netmask 8000ffe ttymask 8000ffe
	  fwohci0: BUS reset
	  fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
	  resCount=4080 plen=20 len=-4
	  fwohci0: AR DMA status=8409,  skip buffer done
	  ieee1394if0: 1 nodes, maxhop <= 0, Not found IRM capable node
	  fwohci0: BUS reset
	  uhub0 at usb0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
	  uhub1 at usb1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
	  [Hangup here!]

	'disable fwohci' with/in userconf(4) avoids this hangup and
	the system boots up normally.

	BTW: At kernel's userconf I tried

	     uc> disable ieee1394if
	     Unknown argument

	     -> Another bug?

	     uc> 'disable fwip'
	     [205] fwip* disabled

	     ... seems to work, but did not prevent the hangup.

	With the netbsd-4 kernel the fwohci output looks like:

	  fwohci0 at pci2 dev 14 function 0: Apple Computer product 0x0018 (rev. 0x01)
	  fwohci0: interrupting at irq 40
	  fwohci0: OHCI version 1.0 (ROM=0)
	  fwohci0: No. of Isochronous channels is 4.
	  fwohci0: EUI64 00:30:65:xx:xx:xx:xx:xx
	  fwohci0: Phy 1394a available S400, 1 ports.
	  fwohci0: Link S400, max_rec 2048 bytes.
	  ieee1394if0 at fwohci0: IEEE1394 bus
	  fwip0 at ieee1394if0: IP over IEEE1394
	  fwohci0: Initiate bus reset
	  gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x01)
	  gem0: interrupting at irq 41
	  bmtphy0 at gem0 phy 0: BCM5221 10/100 media interface, rev. 3
	  bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
	  gem0: Ethernet address 00:30:65:xx:xx:xx, 10KB RX fifo, 4KB TX fifo
	  timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
	  timecounter: Timecounter "mftb" frequency 24966218 Hz quality 100
	  resCount=4080 plen=20 len=-4
	  fwohci0: AR DMA status=8409,  skip buffer done
	  fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
	  ieee1394if0: 1 nodes, maxhop <= 0, Not found IRM capable node

	... during a normal/successful boot.

	I do not use the fwohci functionality of my powerbook (yet), I
	just ran into the hangup while trying to boot the netbsd-5
	kernel.

>How-To-Repeat:
	Boot a netbsd-5/5.0_BETA kernel on a powerbook g4/500 titanium
	and see how it hangs up.
>Fix:
	Unknown.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Wed, 13 Jun 2018 01:27:53 +0000
State-Changed-Why:
fwohci no longer attaches on the G4 TiBook or G3 Pismo for this specific reason
http://dmesgd.nycbug.org/index.cgi?do=view&id=3550
http://dmesgd.nycbug.org/index.cgi?do=view&id=3494


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.