From mitya@mitya.mitya.static.dol.ru  Sat Jun 15 00:04:44 2002
Return-Path: <mitya@mitya.mitya.static.dol.ru>
Received: from mail.demos.su (relay1.demos.su [194.87.0.16])
	by hub.freebsd.org (Postfix) with ESMTP id 99A7A37B411
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Jun 2002 00:04:42 -0700 (PDT)
Received: from [194.87.5.172] (HELO mitya.mitya.static.dol.ru)
  by mail.demos.su (CommuniGate Pro SMTP 3.5.9/D3)
  with ESMTP-TLS id 25061345 for FreeBSD-gnats-submit@freebsd.org; Sat, 15 Jun 2002 11:04:36 +0400
Received: from mitya.mitya.static.dol.ru (localhost [127.0.0.1])
	by mitya.mitya.static.dol.ru (8.12.3/8.11.6) with ESMTP id g5F77Zt8000266
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Jun 2002 11:07:36 +0400 (MSD)
	(envelope-from mitya@mitya.mitya.static.dol.ru)
Received: (from mitya@localhost)
	by mitya.mitya.static.dol.ru (8.12.3/8.12.3/Submit) id g5F77Tq1000265;
	Sat, 15 Jun 2002 11:07:29 +0400 (MSD)
Message-Id: <200206150707.g5F77Tq1000265@mitya.mitya.static.dol.ru>
Date: Sat, 15 Jun 2002 11:07:29 +0400 (MSD)
From: Dmitry Sivachenko <demon@freebsd.org>
Reply-To: Dmitry Sivachenko <demon@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Strange detection of IDE CDROM
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         39322
>Category:       kern
>Synopsis:       Strange detection of IDE CDROM
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 15 00:10:02 PDT 2002
>Closed-Date:    Mon Apr 28 11:46:51 PDT 2003
>Last-Modified:  Mon Apr 28 11:46:51 PDT 2003
>Originator:     Dmitry Sivachenko
>Release:        FreeBSD 4.6-RC i386
>Organization:
>Environment:
System: FreeBSD mitya.mitya.static.dol.ru 4.6-RC FreeBSD 4.6-RC #0: Fri Jun 14 20:49:48 MSD 2002 mitya@mitya.mitya.static.dol.ru:/usr/obj/usr/src/sys/CAVIA i386


	
>Description:

During system boot, detection of my CDROM looks like this (from dmesg):

ad0: 13042MB <WDC WD136BA> [26500/16/63] at ata0-master UDMA33
ata1-master: timeout waiting for cmd=ef s=10 e=00
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: CDROM <MATSHITA CR-574> at ata1-master BIOSPIO
Waiting 15 seconds for SCSI devices to settle

This process lasts several minutes.  With 4.5-RELEASE, booting on the same
hardware produced only 4 such timeouts and was much faster:

ata0-master: DMA limited to UDMA33, non-ATA66 compliant cable
ad0: 13042MB <WDC WD136BA> [26500/16/63] at ata0-master UDMA33
ad1: 4110MB <QUANTUM FIREBALL ST4.3A> [14848/9/63] at ata0-slave UDMA33
ata1-master: timeout waiting for command=ef s=00 e=15
(null): MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
(null): MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
(null): MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
(null): MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: CDROM <MATSHITA CR-574> at ata1-master using BIOSPIO
Waiting 15 seconds for SCSI devices to settle

Please revert this at least to former behaviour, waiting for 10+ minutes
to boot is too long...
>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: demon 
Responsible-Changed-When: Sun Jun 16 00:43:04 PDT 2002 
Responsible-Changed-Why:  
This is probably due to MFC's of ata code after 4.5-RELEASE. 

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

From: Soeren Schmidt <sos@freebsd.dk>
To: Dmitry Sivachenko <demon@FreeBSD.ORG>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/39322: Strange detection of IDE CDROM
Date: Sun, 16 Jun 2002 10:30:53 +0200 (CEST)

 It seems Dmitry Sivachenko wrote:
 > During system boot, detection of my CDROM looks like this (from dmesg):
 > 
 > ad0: 13042MB <WDC WD136BA> [26500/16/63] at ata0-master UDMA33
 > ata1-master: timeout waiting for cmd=ef s=10 e=00
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: MODE_SENSE_BIG command timeout - resetting
 > ata1: resetting devices .. done
 > acd0: CDROM <MATSHITA CR-574> at ata1-master BIOSPIO
 > Waiting 15 seconds for SCSI devices to settle
 
 Uhm, I'm afraid that drive is broken, I have an identical unit here
 and it works...
 
 -Sren

From: Dmitry Sivachenko <demon@FreeBSD.ORG>
To: Soeren Schmidt <sos@freebsd.dk>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/39322: Strange detection of IDE CDROM
Date: Sun, 16 Jun 2002 12:44:24 +0400

 On Sun, Jun 16, 2002 at 10:30:53AM +0200, Soeren Schmidt wrote:
 > It seems Dmitry Sivachenko wrote:
 > > During system boot, detection of my CDROM looks like this (from dmesg):
 > > 
 > > ad0: 13042MB <WDC WD136BA> [26500/16/63] at ata0-master UDMA33
 > > ata1-master: timeout waiting for cmd=ef s=10 e=00
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: MODE_SENSE_BIG command timeout - resetting
 > > ata1: resetting devices .. done
 > > acd0: CDROM <MATSHITA CR-574> at ata1-master BIOSPIO
 > > Waiting 15 seconds for SCSI devices to settle
 > 
 > Uhm, I'm afraid that drive is broken, I have an identical unit here
 > and it works...
 > 
 > -Sren
 > 
 
 May be, but it reads data without any problems, and such long delays appeared when
 I updated FreeBSD to 4.6-RC after 4.5-RELEASE...

From: "Stefano Deponti" <stefano.deponti@qiqajon.it>
To: freebsd-gnats-submit@FreeBSD.org, demon@freebsd.org
Cc:  
Subject: Re: kern/39322: Strange detection of IDE CDROM
Date: Tue, 2 Jul 2002 17:31:49 +0100

 Hello,
 I experienced a similar problem, not only with FreeBSD 4.6, but also with 
 FreeBSD 4.5.
 Actually, the only problem is the time taken at startup: after the boot th=
 e 
 CDRom drive works fine.
 Besides that, I have also to remark that if at startup time, after "ad0: 
 2062MB <FUJITSU MPB3021ATU> [4470/15/63] at ata0-master UDMA33" 
 message, I open the CDRom door by pressing the eject button, no error 
 message from acd0 appears. It looks like the CDRom driver has to give life=
  
 signals to the system...
 
 Perhaps should I try with matcd driver? I think no because my drive is 
 connected to the standard, built-in, IDE interface of the motherboard.
 
 Thank you for your help.
 
 In the following lines I put the most interesting part of dmesg output:
 
 Copyright (c) 1992-2002 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 	The Regents of the University of California. All rights reserved.
 FreeBSD 4.6-STABLE #0: Sun Jun 30 11:19:47 CEST 2002
     stefano@zserver.combose.it:/usr/obj/usr/src/sys/ZSERVER
 Timecounter "i8254"  frequency 1193182 Hz
 CPU: Pentium II/Pentium II Xeon/Celeron (300.68-MHz 686-class CPU)
   Origin =3D "GenuineIntel"  Id =3D 0x660  Stepping =3D 0
   
 Features=3D0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SE
 P,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
 real memory  =3D 134217728 (131072K bytes)
 avail memory =3D 127205376 (124224K bytes)
 Preloaded elf kernel "kernel" at 0xc0360000.
 Pentium Pro MTRR support enabled
 Using $PIR table, 6 entries at 0xc00f7870
 
 ...
 
 ad0: 2062MB <FUJITSU MPB3021ATU> [4470/15/63] at ata0-master 
 UDMA33
 acd0: MODE_SENSE_BIG command timeout - resetting
 ata1: resetting devices .. done
 acd0: MODE_SENSE_BIG DONEDRQ
 acd0: MODE_SENSE_BIG - ABORTED COMMAND asc=3D0x4e ascq=3D0x00 
 error=3D0x00
 acd0: MODE_SENSE_BIG command timeout - resetting
 ata1: resetting devices .. done
 acd0: MODE_SENSE_BIG DONEDRQ
 acd0: MODE_SENSE_BIG - ABORTED COMMAND asc=3D0x4e ascq=3D0x00 
 error=3D0x00
 acd0: MODE_SENSE_BIG command timeout - resetting
 ata1: resetting devices .. done
 acd0: MODE_SENSE_BIG DONEDRQ
 acd0: read data overrun 65530/5
 acd0: MODE_SENSE_BIG - ABORTED COMMAND asc=3D0x4e ascq=3D0x00 
 error=3D0x00
 acd0: MODE_SENSE_BIG command timeout - resetting
 ata1: resetting devices .. done
 acd0: MODE_SENSE_BIG DONEDRQ
 acd0: MODE_SENSE_BIG - ABORTED COMMAND asc=3D0x4e ascq=3D0x00 
 error=3D0x00
 acd0: MODE_SENSE_BIG command timeout - resetting
 ata1: resetting devices .. done
 acd0: MODE_SENSE_BIG DONEDRQ
 acd0: MODE_SENSE_BIG - ABORTED COMMAND asc=3D0x4e ascq=3D0x00 
 error=3D0x00
 acd0: CDROM <MATSHITA CR-581> at ata1-slave PIO3
 Mounting root from ufs:/dev/ad0s1a
 
 -----------------------------------
 Stefano Deponti
 Edizioni Qiqajon - Comunit=E0 di Bose
 tel. 015.679.264 - fax 015.679.290
 e-mail: stefano.deponti@qiqajon.it
 
 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon Apr 28 11:46:08 PDT 2003 
State-Changed-Why:  
This is belived to be fixed. 

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