NetBSD Problem Report #61030

From www@netbsd.org  Thu Nov 19 19:57:54 2026
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)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id EF0A61A923B
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 19 Nov 2026 19:57:53 +0000 (UTC)
Message-Id: <20261119195752.39E091A923D@mollari.NetBSD.org>
Date: Thu, 19 Nov 2026 19:57:52 +0000 (UTC)
From: brandon@burn.net
Reply-To: brandon@burn.net
To: gnats-bugs@NetBSD.org
Subject: hppa: ATAPI CD-ROM on nside(4) not detected unless PDC accessed it first
X-Send-Pr-Version: www-1.0
X-From4GNATS: "brandon@burn.net via gnats" <gnats-admin@NetBSD.org>

>Number:         61030
>Category:       port-hppa
>Synopsis:       hppa: ATAPI CD-ROM on nside(4) not detected unless PDC accessed it first
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-hppa-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 19 20:00:00 +0000 2026
>Originator:     Brandon Applegate
>Release:        NetBSD 11.99.11 (daily 20261116083232Z)
>Organization:
>Environment:
NetBSD c3700.retronet.burn.net 11.99.11 NetBSD 11.99.11 (GENERIC-AC97_TEST) #1: Thu Nov 19 13:07:56 EST 2026  root@c3700.retronet.burn.net:/usr/src/sys/arch/hppa/compile/GENERIC-AC97_TEST hppa

HP 9000/785 C3700, PA-8700
Onboard NS PC87415 IDE (nside0), on pci0
Drive: HITACHI DVD-ROM GD-3000, firmware 020S, master on the
first channel
>Description:
The IDE CD-ROM drive only attaches if PDC has accessed it
earlier in the same power-on session:

  - booting from the CD (as during the install): cd0 attaches
  - running "search" at the PDC prompt before booting: cd0
    attaches
  - otherwise, on both cold and warm boots: no cd0, and
    hw.disknames lists only sd0

When it works:

  cd0 at atapibus0 drive 0: <HITACHI DVD-ROM GD-3000, , 020S> cdrom removable
  cd0: drive supports PIO mode 4, DMA mode 2
  cd0(nside0:0:0): using PIO mode 4, DMA mode 2 (using DMA)

When it fails, nside0, atabus0 and atabus1 all attach, but no
device is found on either channel. Running "drvctl -r atabus0"
and "drvctl -r atabus1" after boot does not find the drive
either.

The installer's RAMDISK kernel is GENERIC plus memory-disk
options, so the same drivers are present in both cases. It
looks like the drive does not answer NetBSD's probe or reset
until PDC has initialized it ?
>How-To-Repeat:
Power-cycle a C3700 with an ATAPI CD-ROM on the onboard IDE
and boot NetBSD without stopping at PDC:

  sysctl hw.disknames

Repeat with "search" at the PDC prompt before booting and
compare.
>Fix:
Workaround: run "search" at the PDC prompt before booting.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.