Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 1998 22:35:04 GMT
From:      Studded@san.rr.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/5789: wcd0 requires ATAPI_STATIC
Message-ID:  <199802182235.WAA00593@dt050ndd.san.rr.com>

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

>Number:         5789
>Category:       kern
>Synopsis:       wcd0 requires ATAPI_STATIC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 19 03:50:01 PST 1998
>Last-Modified:
>Originator:     Doug
>Organization:
Triborough Bridge and Tunnel Authority
>Release:        FreeBSD 2.2.5-STABLE-0218 i386
>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
>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?199802182235.WAA00593>