From owner-freebsd-bugs Thu Feb 19 03:50:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA00315 for freebsd-bugs-outgoing; Thu, 19 Feb 1998 03:50:05 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA00296; Thu, 19 Feb 1998 03:50:03 -0800 (PST) (envelope-from gnats) 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 ; 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 X-Send-Pr-Version: 3.2 Subject: kern/5789: wcd0 requires ATAPI_STATIC Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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