Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 1997 08:36:02 +0200 (MEST)
From:      Søren Schmidt <sos@sos.freebsd.dk>
To:        sthaug@nethelp.no
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Problems detecting ATAPI CDROM in 2.2-970801-RELENG
Message-ID:  <199708180636.IAA01650@sos.freebsd.dk>
In-Reply-To: <498.871850470@verdi.nethelp.no> from "sthaug@nethelp.no" at "Aug 17, 97 10:41:10 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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
..



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