Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2002 14:33:18 -0800 (PST)
From:      Kevin Oberman <oberman@es.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/33963: Messages at the serial IO port device probe are misleading
Message-ID:  <20020116223318.86D1D5D13@ptavv.es.net>

next in thread | raw e-mail | index | archive | help

>Number:         33963
>Category:       kern
>Synopsis:       Messages at the serial IO port device probe are misleading
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 16 14:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Oberman
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
ESnet-The Energy Sciences Network
>Environment:
System: FreeBSD ptavv.es.net 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Wed Jan 2 12:59:20 PST 2002 oberman@dyn1-205.es.net:/usr/obj/usr/src/sys/ESNET i386

>Description:
If the serial device driver probes at load time and gets no response,
it simply labels the device as an 8250 when it may be not present or
broken. If the port is not configured in BIOS, the driver sends out a
cryptic message that the irq in not in the bitmap of probed irqs,
again not making it clear to many where the problem is.
>How-To-Repeat:
De-configure a serial device in BIOS and reboot.
>Fix:
--- sio.c.orig	Sun Jan 13 11:13:51 2002
+++ sio.c	Sun Jan 13 11:23:36 2002
@@ -1012,6 +1012,9 @@
 		printf(
 		"sio%d: configured irq %ld not in bitmap of probed irqs %#x\n",
 		    device_get_unit(dev), xirq, irqs);
+		printf(
+		"sio%d: Port may not be enabled in BIOS\n",
+		    device_get_unit(dev));
 	if (bootverbose)
 		printf("sio%d: irq maps: %#x %#x %#x %#x\n",
 		    device_get_unit(dev),
@@ -1226,7 +1229,7 @@
 		scr2 = sio_getreg(com, com_scr);
 		sio_setreg(com, com_scr, scr);
 		if (scr1 != 0xa5 || scr2 != 0x5a) {
-			printf(" 8250");
+			printf(" 8250 or not responding");
 			goto determined_type;
 		}
 	}
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020116223318.86D1D5D13>