Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
Subject:
sys/sparc64: accept ide nodes in IDE bootpaths
To:
OpenBSD tech <tech@openbsd.org>
Date:
Fri, 12 Jun 2026 14:07:01 +0200

Download raw body.

Thread
  • Kirill A. Korinsky:

    sys/sparc64: accept ide nodes in IDE bootpaths

tech@,

OpenBIOS reports QEMU IDE disks with an intermediate ide node, while the
sparc64 bootpath code only treats ata as a channel node.

The disk is attached as wd0, but the final disk component is not nailed
as the boot device, so the kernel asks for the root device.

No QEMU level option seems possible to enforce ata disk.

Ok?

Index: sys/arch/sparc64/sparc64/autoconf.c
===================================================================
RCS file: /cvs/src/sys/arch/sparc64/sparc64/autoconf.c,v
diff -u -p -r1.154 autoconf.c
--- sys/arch/sparc64/sparc64/autoconf.c	5 Oct 2025 14:29:16 -0000	1.154
+++ sys/arch/sparc64/sparc64/autoconf.c	12 Jun 2026 12:04:26 -0000
@@ -1470,7 +1470,8 @@ device_register(struct device *dev, void
 		struct ata_atapi_attach *aa = aux;
 		u_int channel, drive;
 
-		if (strcmp(bp->name, "ata") == 0 &&
+		if ((strcmp(bp->name, "ata") == 0 ||
+		    strcmp(bp->name, "ide") == 0) &&
 		    bp->val[0] == aa->aa_channel) {
 			channel = bp->val[0]; bp++;
 			drive = bp->val[0];

-- 
wbr, Kirill