From owner-freebsd-stable Thu Nov 9 12:38:10 2000 Delivered-To: freebsd-stable@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 5637B37B4C5; Thu, 9 Nov 2000 12:38:05 -0800 (PST) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id VAA30964; Thu, 9 Nov 2000 21:38:34 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <200011092038.VAA30964@freebsd.dk> Subject: Re: My cdrom disappeared with the new ata-all.c :-( In-Reply-To: <14859.1104.90246.424231@moriarity.grauel.com> from Richard J Kuhns at "Nov 9, 2000 03:08:48 pm" To: rjk@grauel.com (Richard J Kuhns) Date: Thu, 9 Nov 2000 21:38:34 +0100 (CET) Cc: stable@freebsd.org, sos@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Richard J Kuhns wrote: > I just built and installed a new kernel on my laptop, and it couldn't find > my cdrom. There were no error messages; dmesg just doesn't show ata1. > > This was with ata-dev.c v1.50.2.11. I reverted to v1.50.2.10 and rebuilt, > and everything was fine. > > Let me know if there's any way I can help... *SIGH* This is a no win game, its incrediable how crappy hardware can be made these days :( However, could you try this patch and if it doesn't work up the DELAY further to say 50000 ? The problem here is that lots of other ATAPI devices hangs if the delay gets much bigger than that... Index: ata-all.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-all.c,v retrieving revision 1.50.2.11 diff -u -r1.50.2.11 ata-all.c --- ata-all.c 2000/11/09 10:47:29 1.50.2.11 +++ ata-all.c 2000/11/09 20:35:46 @@ -1253,7 +1253,7 @@ DELAY(1); inb(scp->ioaddr + ATA_STATUS); outb(scp->altioaddr, ATA_A_IDS | ATA_A_RESET); - DELAY(10000); + DELAY(30000); outb(scp->altioaddr, ATA_A_IDS); DELAY(100000); inb(scp->ioaddr + ATA_ERROR); -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message