Port-m68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD/sun3 9.0_STABLE GENERIC hang

I wrote on port-sun3@:

> - (Not Xserver related) recent netbsd-9 GENERIC kernel doesn't work?
>   NetBSD-daily/netbsd-9/202007161930Z one hangs just after
>   "enabling interrupts" message

By dumb manual bisect, it turns out this problem is caused by
recent src/sys/dev/scsipi/scsiconf.c pullup:

 > Continue scanning a SCSI bus when a LUN is reported not present

--- src/sys/dev/scsipi/scsiconf.c 2020/05/04 13:50:07
+++ src/sys/dev/scsipi/scsiconf.c 2020/07/13 14:09:10
@@ -887,6 +887,8 @@
+		docontinue = 1;
 	case SID_QUAL_reserved:
 		goto bad;

Adding printf before the "/* FALLTHROUGH */" line also solves the issue,
so it looks caused by gcc bug, and actually depends on COPTS:
-Os NG   (note sun3 uses -Os by default even for GENERIC)
-O0 OK
-O1 OK
-O2 OK
-O2 -fno-reorder-blocks OK
-Os -freorder-blocks NG
-Os -freorder-blocks -freorder-blocks-algorithm=stc OK
-Os -freorder-blocks-algorithm=stc OK
-Os -fno-reorder-blocks OK

Does anyone see the similar problem on other m68k ports?
(especially on INSTALL kernels built with -Os)

Izumi Tsutsui

Home | Main Index | Thread Index | Old Index