NetBSD Problem Report #59656
From gson@gson.org Mon Sep 15 14:25:00 2025
Return-Path: <gson@gson.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)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 6FD3D1A923C
for <gnats-bugs@gnats.NetBSD.org>; Mon, 15 Sep 2025 14:25:00 +0000 (UTC)
Message-Id: <20250915142456.BDCF7253F03@guava.gson.org>
Date: Mon, 15 Sep 2025 17:24:56 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: "eject cd" hangs Power Mac G5
X-Send-Pr-Version: 3.95
>Number: 59656
>Category: port-macppc
>Synopsis: "eject cd" hangs Power Mac G5
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-macppc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 15 14:30:00 +0000 2025
>Last-Modified: Mon Oct 06 08:15:01 +0000 2025
>Originator: Andreas Gustafsson
>Release: NetBSD-current from around June 2025
>Organization:
>Environment:
System: NetBSD
Architecture: powerpc
Machine: macppc
>Description:
I have successfully booted a Power Mac G5 using a CD-RW containing
ofwboot.xcf and a -current kernel configured to mount the root file
system from a SATA SSD.
But when I try to eject the CD-RW by running "eject cd" as root, the
machine hangs. The console shows the messages
wdc0:0:0: lost interrupt
type: atapi tc_bcount: 32 tc_skip: 0
and no further output.
>How-To-Repeat:
>Fix:
>Audit-Trail:
From: Michael <macallan1888@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-macppc/59656: "eject cd" hangs Power Mac G5
Date: Sun, 21 Sep 2025 01:44:53 -0400
Hello,
On Mon, 15 Sep 2025 14:30:01 +0000 (UTC)
gson@gson.org (Andreas Gustafsson) wrote:
> I have successfully booted a Power Mac G5 using a CD-RW containing
> ofwboot.xcf and a -current kernel configured to mount the root file
> system from a SATA SSD.
>
> But when I try to eject the CD-RW by running "eject cd" as root, the
> machine hangs. The console shows the messages
>
> wdc0:0:0: lost interrupt
> type: atapi tc_bcount: 32 tc_skip: 0
>
> and no further output.
Hmm, I can't reproduce this on my 7,2 - I'll try the 11,2 later.
have fun
Michael
From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-macppc/59656: "eject cd" hangs Power Mac G5
Date: Sat, 4 Oct 2025 13:52:40 +0300
Some more information:
The problem is still there in -current source date 2025.10.03.16.49.43.
Trying to mount the CD using "mount -r -t cd9660 /dev/cd0a /mnt",
or merely opening the device using "</dev/cd0a" also causes the
system to hang with the same console messages as in the original PR.
The dmesg output is at:
https://www.gson.org/netbsd/bugs/59656/dmesg-2025.10.03.16.49.43.txt
--
Andreas Gustafsson, gson@gson.org
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-macppc/59656: "eject cd" hangs Power Mac G5
Date: Sun, 5 Oct 2025 08:57:35 +0200
Doesn't mean much, but just for an additional data
point: I can't reproduce it on a PowerMac7,3:
wdc0 at pci5 dev 13 function 0: interrupting at irq 39
atabus4 at wdc0 channel 0
cd0 at atapibus0 drive 0: <SONY DVD RW DW-U21A, , AADB> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) (using DMA)
Martin
From: Andreas Gustafsson <gson@gson.org>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@netbsd.org
Subject: Re: port-macppc/59656: "eject cd" hangs Power Mac G5
Date: Sun, 5 Oct 2025 11:25:38 +0300
Martin Husemann wrote:
> Doesn't mean much, but just for an additional data
> point: I can't reproduce it on a PowerMac7,3:
>
> wdc0 at pci5 dev 13 function 0: interrupting at irq 39
> atabus4 at wdc0 channel 0
> cd0 at atapibus0 drive 0: <SONY DVD RW DW-U21A, , AADB> cdrom removable
> cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
> cd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) (using DMA)
It's not clear from your dmesg fragment what atapibus0 is attached to, but
in my case it's atabus0, and my wdc0 is at pci3, not pci5. From my dmesg:
[ 1.000000] mainbus0 (root): PowerMac7,3
(...)
[ 1.000000] wdc0 at pci3 dev 13 function 0: interrupting at irq 39
(...)
[ 1.000000] atabus0 at wdc0 channel 0
[ 1.169996] atapibus0 at atabus0: 2 targets
[ 1.180005] cd0 at atapibus0 drive 0: <HL-DT-ST DVD-RW GWA-4082B, K29496G1507, C03D> cdrom removable
Another differences is that my machine loads ofwboot.xcf and the
kernel from CD, and I think yours does not, so maybe it's a question
of the boot process leaving the controller or drive in a state that
NetBSD can't handle.
--
Andreas Gustafsson, gson@gson.org
From: Martin Husemann <martin@duskware.de>
To: Andreas Gustafsson <gson@gson.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: port-macppc/59656: "eject cd" hangs Power Mac G5
Date: Mon, 6 Oct 2025 10:09:52 +0200
On Sun, Oct 05, 2025 at 11:25:38AM +0300, Andreas Gustafsson wrote:
> Another differences is that my machine loads ofwboot.xcf and the
> kernel from CD, and I think yours does not, so maybe it's a question
> of the boot process leaving the controller or drive in a state that
> NetBSD can't handle.
That might be the issue - my machine boots from sata.
The missing line from dmesg is:
atapibus0 at atabus4: 2 targets
Martin
(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-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.