From dougdougdougdoug@dt050ndd.san.rr.com  Thu Feb 19 03:40:34 1998
Received: from dt050ndd.san.rr.com (root@dt050ndd.san.rr.com [204.210.31.221])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA28267
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Feb 1998 03:40:33 -0800 (PST)
          (envelope-from dougdougdougdoug@dt050ndd.san.rr.com)
Received: (from dougdougdougdoug@localhost)
	by dt050ndd.san.rr.com (8.8.8/8.8.8) id WAA00593;
	Wed, 18 Feb 1998 22:35:04 GMT
	(envelope-from dougdougdougdoug)
Message-Id: <199802182235.WAA00593@dt050ndd.san.rr.com>
Date: Wed, 18 Feb 1998 22:35:04 GMT
From: Studded@san.rr.com
Reply-To: Studded@san.rr.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: wcd0 requires ATAPI_STATIC
X-Send-Pr-Version: 3.2

>Number:         5789
>Category:       kern
>Synopsis:       wcd0 requires ATAPI_STATIC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 19 03:50:01 PST 1998
>Closed-Date:    Tue Jun 27 01:26:41 PDT 2000
>Last-Modified:  Tue Jun 27 01:27:41 PDT 2000
>Originator:     Doug
>Release:        FreeBSD 2.2.5-STABLE-0218 i386
>Organization:
Triborough Bridge and Tunnel Authority
>Environment:

	2.2 machine with one IDE drive as master on wdc0 and one ATAPI
CD-ROM as master drive on wdc1. 

>Description:

	I'm not sure if this is a bug or just a lack of documentation. We have the
following text in LINT:

# ATAPI enables the support for ATAPI-compatible IDE devices
#
options         ATAPI   #Enable ATAPI support for IDE bus
options         ATAPI_STATIC    #Don't do it as an LKM

# IDE CD-ROM driver - requires wdc controller and ATAPI option
device          wcd0

	In my mind this implies that I can enable the ATAPI option only, and load
the module if I actually want to use the CD. What happens in practice is that
without the ATAPI_STATIC option wcd0 never gets probed on my system, so even after I
load the kernel module no programs can access the CD. 

>How-To-Repeat:

The following configuration is the only one that works:

controller      wdc0    at isa? port "IO_WD1" bio irq 14 vector wdintr
disk            wd0     at wdc0 drive 0
#disk           wd1     at wdc0 drive 1

controller      wdc1    at isa? port "IO_WD2" bio irq 15 vector wdintr
#disk           wd2     at wdc1 drive 0
#disk           wd3     at wdc1 drive 1

options         ATAPI   #Enable ATAPI support for IDE bus
options         ATAPI_STATIC    #Don't do it as an LKM

device          wcd0

	You can recreate my problem by commenting out ATAPI_STATIC. 

>Fix:
	
	Like I said, I don't know if this is a bug, or if this is the expected
behaviour. I personally would prefer that wcd0 get probed even if ATAPI_STATIC is
not in the kernel since I rarely use my CD. However if it's needed regardless, LINT
should clearly reflect that. Something to the effect of:

# IDE CD-ROM driver - requires wdc controller, ATAPI and ATAPI_STATIC options

Thanks,

Doug
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: nbm 
State-Changed-When: Mon Jun 26 04:53:59 PDT 2000 
State-Changed-Why:  
Did the atapi module ever work?  4.x and beyond implies ATAPI_STATIC. 
Unfortunately 3.5 ws just rolled: should I close this then? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=5789 

From: Doug Barton <DougB@gorean.org>
To: nbm@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/5789: wcd0 requires ATAPI_STATIC
Date: Mon, 26 Jun 2000 09:30:38 -0700

 nbm@FreeBSD.org wrote:
 
 > Did the atapi module ever work? 
 
 	Not for me it didn't. 
 
 > 4.x and beyond implies ATAPI_STATIC.
 > Unfortunately 3.5 ws just rolled: should I close this then?
 
 	Yeah, might as well. You'll pardon me though if I can't help finding it
 a little sad that in 2.3 years no one can be bothered to update the
 comments in GENERIC and LINT. The problems is effectively dealt with in
 4.x+, so there's no point in keeping this open.
 
 Thanks for the followup,
 
 Doug
 
State-Changed-From-To: feedback->closed 
State-Changed-By: nbm 
State-Changed-When: Tue Jun 27 01:26:41 PDT 2000 
State-Changed-Why:  
The originator admits with sighing that many years after this bug 
report, the misleading comments are no longer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=5789 
>Unformatted:
