From owner-freebsd-stable Sun Jun 30 10:55:49 1996 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA01816 for stable-outgoing; Sun, 30 Jun 1996 10:55:49 -0700 (PDT) Received: from central.picker.com (central.picker.com [144.54.31.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA01811 for ; Sun, 30 Jun 1996 10:55:47 -0700 (PDT) Received: from ct.picker.com by central.picker.com with smtp (Smail3.1.28.1 #3) id m0uaQf1-0004rrC; Sun, 30 Jun 96 13:51 EDT Received: from elmer.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA29388; Sun, 30 Jun 96 13:51:15 EDT Received: by elmer.picker.com (SMI-8.6/SMI-SVR4) id NAA19349; Sun, 30 Jun 1996 13:52:47 -0400 From: rhh@ct.picker.com (Randall Hopper) Message-Id: <199606301752.NAA19349@elmer.picker.com> Subject: 960627-SNAP - Problem with ATAPI detection To: stable@freebsd.org Date: Sun, 30 Jun 1996 13:52:47 -0400 (EDT) Reply-To: rhh@ct.picker.com Organization: Picker International, CT Division X-Mailer: ELM [version 2.4 PL24 PGP3 *ALPHA*] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk My configuration: P55TP4XE motherboard with dual-IDE, 2 hard drives on wdc0, and a Sony CDU-55E ATAPI IDE CDROM on wdc1. As with the 2.1.0-RELEASE, my ATAPI CD-ROM isn't detected when I enable ATAPI on 2.1-960627-SNAP. Although if I suppress probing for IDE hard disks on wcd1 using this isa/wd.c patch: --- 419,435 ---- * Use the individual device flags or the controller * flags. */ du->cfg_flags = wdup->id_flags | ((dvp->id_flags) >> (16 * unit)); + #ifdef RHHOLD if (wdgetctlr(du) == 0) { + #else + /* RHH - Don't even try to find hard disks on wdc1 */ + if ((dvp->id_unit == 0) && (wdgetctlr(du) == 0)) { + #endif then my CD-ROM is detected and works fine (cdplay/mount/etc): wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (atapi): , removable, accel, dma, iordy Without this patch, the wd driver gets a "controller busy" which is detected at the top of atapi.c:atapi_probe (atapi_wait). It appears that the hard disk probe might be leaving the controller in an invalid state for ATAPI probing. I'd sure like not to have to hack the kernel to get 2.1.5 to detect my CD-ROM. Anything I can try to help debug this? Thanks, Randall Hopper rhh@ct.picker.com