sys/sparc64: accept ide nodes in IDE bootpaths

Kirill A. Korinsky <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.