From owner-freebsd-hackers Sun Aug 17 23:36:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA00300 for hackers-outgoing; Sun, 17 Aug 1997 23:36:01 -0700 (PDT) Received: from sos.freebsd.dk (sos.freebsd.dk [195.8.129.33]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA00280 for ; Sun, 17 Aug 1997 23:35:56 -0700 (PDT) Received: (from sos@localhost) by sos.freebsd.dk (8.8.7/8.7.3) id IAA01650; Mon, 18 Aug 1997 08:36:02 +0200 (MEST) From: Søren Schmidt Message-Id: <199708180636.IAA01650@sos.freebsd.dk> Subject: Re: Problems detecting ATAPI CDROM in 2.2-970801-RELENG In-Reply-To: <498.871850470@verdi.nethelp.no> from "sthaug@nethelp.no" at "Aug 17, 97 10:41:10 pm" To: sthaug@nethelp.no Date: Mon, 18 Aug 1997 08:36:02 +0200 (MEST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In reply to sthaug@nethelp.no who wrote: > I recently upgraded a machine here from 2.2-BETA (as of 961226) to > 2.2-970801-RELENG. This broke the detection of an ATAPI CDROM on wdc1. > Further checking (by adding kernel printf's to sys/i386/isa/wd.c) showed > that the problem is in wdprobe(). If I add a printf just before line 340 > of wd.c (version 1.119.2.6): > > printf("XXX %s%d get errstatus\n", dvp->id_driver->name, unit); > du->dk_error = inb(du->dk_port + wd_error); > > the CDROM is detected just fine. If I revert to the original wd.c, the > CDROM is not detected. > > Obviously there's a timing issue here, and the printf adds enough of a > delay that the detection works. However, as far as I can see both wdprobe > and wdcommand (which is called just before my printf) are exactly the same > in 2.2-BETA and 2.2-970801-RELENG. > > Any good ideas? What kind of cdrom do you have ?? controller/Motherboard ?? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end ..