NetBSD Problem Report #23468

Received: (qmail 10572 invoked by uid 605); 17 Nov 2003 18:26:14 -0000
Message-Id: <20031117182608.F1A2E1FE@laptop.mobile.johnrshannon.com>
Date: Mon, 17 Nov 2003 11:26:08 -0700 (MST)
From: john@johnrshannon.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: john@johnrshannon.com
To: gnats-bugs@gnats.netbsd.org
Subject: ATAPI CD no longer found 
X-Send-Pr-Version: 3.95

>Number:         23468
>Category:       kern
>Synopsis:       As a result of changes made between 12 Nov and 14 Nov, my ATAPI CD drive is no longer detected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bouyer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 17 18:27:00 +0000 2003
>Closed-Date:    Mon Nov 17 20:54:02 +0000 2003
>Last-Modified:  Mon Nov 17 20:54:02 +0000 2003
>Originator:     John R. Shannon
>Release:        NetBSD 1.6ZF
>Organization:
	SAIC
>Environment:
System: NetBSD laptop.mobile.johnrshannon.com 1.6ZF NetBSD 1.6ZF (VAIO) #1: Mon Nov 17 06:52:15 MST 2003 root@laptop.mobile.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/VAIO i386
Architecture: i386
Machine: i386
>Description:
	Sony VAIO PCG-GRZ610

	As a result of changes made between 12 Nov and 14 Nov, my ATAPI CD drive is no longer detected. A
	diff on dmesg outputs for kernels built from the same configuration file on 12 Nov and 17 Nov shows:

	< atapibus1 at atabus1: 2 targets
	< cd0 at atapibus1 drive 0: <UJDA740 DVD/CDRW, , 1.00> cdrom removable
	< cd0: 32-bit data port
	< cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
	< cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)

	I have tried GENERIC and the default installation kernel, neither detect the CD. I can boot from a CD.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: bouyer 
State-Changed-When: Mon Nov 17 20:02:08 UTC 2003 
State-Changed-Why:  
I sent a patch (also commited as wdc.c 1.155). 


Responsible-Changed-From-To: kern-bug-people->bouyer 
Responsible-Changed-By: bouyer 
Responsible-Changed-When: Mon Nov 17 20:02:08 UTC 2003 
Responsible-Changed-Why:  
I'll handle it. 

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: john@johnrshannon.com
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/23468: ATAPI CD no longer found
Date: Mon, 17 Nov 2003 21:01:44 +0100

 --+HP7ph2BbKc20aGI
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Mon, Nov 17, 2003 at 11:26:08AM -0700, john@johnrshannon.com wrote:
 > >Description:
 > 	Sony VAIO PCG-GRZ610
 > 
 > 	As a result of changes made between 12 Nov and 14 Nov, my ATAPI CD drive is no longer detected. A

 Hi,
 can you try wdc rev 1.155, or the attached patch ?

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 24 ans d'experience feront toujours la difference
 --

 --+HP7ph2BbKc20aGI
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=diff

 Index: wdc.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/ic/wdc.c,v
 retrieving revision 1.154
 diff -u -r1.154 wdc.c
 --- wdc.c	2003/11/13 22:18:10	1.154
 +++ wdc.c	2003/11/17 19:58:58
 @@ -410,10 +410,8 @@
  			chp->ch_drive[0].drive_flags &= ~DRIVE_OLD;
  			chp->ch_drive[1].drive_flags &= ~DRIVE_OLD;
  		} else {
 -			chp->ch_drive[0].drive_flags &=
 +			chp->ch_drive[i].drive_flags &=
  			    ~(DRIVE_ATA | DRIVE_ATAPI);
 -			chp->ch_drive[1].drive_flags &=
 -			    ~(DRIVE_ATA | DRIVE_ATAPI);
  			WDCDEBUG_PRINT(("%s:%d:%d: IDENTIFY failed (%d)\n",
  			    chp->wdc->sc_dev.dv_xname,
  			    chp->channel, i, error), DEBUG_PROBE);
 @@ -442,6 +440,7 @@
  				    chp->wdc->sc_dev.dv_xname,
  				    chp->channel, i), DEBUG_PROBE);
  				    chp->ch_drive[i].drive_flags &= ~DRIVE_OLD;
 +				    continue;
  			}
  			if (wait_for_ready(chp, 10000, 0) == WDCWAIT_TOUT) {
  				WDCDEBUG_PRINT(("%s:%d:%d: not ready\n",
 @@ -458,6 +457,11 @@
  				    chp->wdc->sc_dev.dv_xname,
  				    chp->channel, i), DEBUG_PROBE);
  				chp->ch_drive[i].drive_flags &= ~DRIVE_OLD;
 +			} else {
 +				chp->ch_drive[0].drive_flags &=
 +				    ~(DRIVE_ATA | DRIVE_ATAPI);
 +				chp->ch_drive[1].drive_flags &=
 +				    ~(DRIVE_ATA | DRIVE_ATAPI);
  			}
  		}
  	}

 --+HP7ph2BbKc20aGI--

From: "John R. Shannon" <john@johnrshannon.com>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/23468: ATAPI CD no longer found
Date: Mon, 17 Nov 2003 13:38:45 -0700

 It's detected now:

 $ diff dmesg.new dmesg.nocd
 1c1
 < NetBSD 1.6ZF (VAIO) #2: Mon Nov 17 13:29:51 MST 2003
 =2D--
 > NetBSD 1.6ZF (VAIO) #1: Mon Nov 17 06:52:15 MST 2003
 14c14
 < cpu0: Intel Pentium 4 (686-class), 1988.64 MHz, id 0xf27
 =2D--
 > cpu0: Intel Pentium 4 (686-class), 1988.65 MHz, id 0xf27
 166,170d165
 < atapibus1 at atabus1: 2 targets
 < cd0 at atapibus1 drive 0: <UJDA740 DVD/CDRW, , 1.00> cdrom removable
 < cd0: 32-bit data port
 < cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 < cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using D=
 MA=20
 data transfers)


 On Monday 17 November 2003 01:01 pm, Manuel Bouyer wrote:
 > On Mon, Nov 17, 2003 at 11:26:08AM -0700, john@johnrshannon.com wrote:
 > > >Description:
 > >
 > > 	Sony VAIO PCG-GRZ610
 > >
 > > 	As a result of changes made between 12 Nov and 14 Nov, my ATAPI CD dri=
 ve
 > > is no longer detected. A
 >
 > Hi,
 > can you try wdc rev 1.155, or the attached patch ?

 =2D-=20

 John R. Shannon
 john@johnrshannon.com
State-Changed-From-To: feedback->closed 
State-Changed-By: bouyer 
State-Changed-When: Mon Nov 17 20:53:26 UTC 2003 
State-Changed-Why:  
Author said wdc.c rev 1.155 fixes the problem. 
Thanks ! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.