NetBSD Problem Report #8992

Received: (qmail 6301 invoked from network); 14 Dec 1999 13:25:50 -0000
Message-Id: <199912141322.FAA25116@nooksack.ldc.cs.wwu.edu>
Date: Tue, 14 Dec 1999 05:22:43 -0800 (PST)
From: yyamano@kt.rim.or.jp
Reply-To: yyamano@kt.rim.or.jp
To: gnats-bugs@gnats.netbsd.org
Subject: Sony Vaio CD-ROM drive PCGA-CD5 doesn't work
X-Send-Pr-Version: www-1.0

>Number:         8992
>Category:       port-i386
>Synopsis:       Sony Vaio CD-ROM drive PCGA-CD5 doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bouyer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 14 05:27:00 +0000 1999
>Closed-Date:    Fri Mar 23 10:03:02 +0000 2018
>Last-Modified:  Fri Mar 23 10:03:02 +0000 2018
>Originator:     Yuji Yamano
>Release:        1.4.1
>Organization:
>Environment:
NetBSD casper 1.4.1 NetBSD 1.4.1 (CASPER.v6) #30: Mon Dec 13 23:55:31 JST 1999 yyamano@casper:/usr/home/yyamano/src/KAME/kame-19991011-netbsd141-snap/netbsd/sys/arch/i386/compile/CASPER.v6 i386

>Description:
Sony Vaio CD-ROM drive PCGA-CD5 doesn't work with NetBSD 1.4.1.
>How-To-Repeat:


>Fix:
It works by the following patches, but I don't know my changes is
correct or not.

--- /usr/src/sys/dev/ic/wdc.c	Tue Sep 14 00:45:05 1999
+++ ./wdc.c	Sat Dec  4 16:25:56 1999
@@ -183,8 +183,6 @@
 	 * Sanity check to see if the wdc channel responds at all.
 	 */

-	if (chp->wdc == NULL ||
-	    (chp->wdc->cap & WDC_CAPABILITY_NO_EXTRA_RESETS) == 0) {
 		bus_space_write_1(chp->cmd_iot, chp->cmd_ioh, wd_sdh,
 		    WDSD_IBM);
 		delay(10);
@@ -204,9 +202,10 @@
 			ret_value &= ~0x02;
 		if (ret_value == 0)
 			return 0;
-	}

 	/* assert SRST, wait for reset to complete */
+	if (chp->wdc == NULL ||
+	    (chp->wdc->cap & WDC_CAPABILITY_NO_EXTRA_RESETS) == 0) {
 	bus_space_write_1(chp->cmd_iot, chp->cmd_ioh, wd_sdh,
 	    WDSD_IBM);
 	delay(10);
@@ -219,6 +218,7 @@
 	(void) bus_space_read_1(chp->cmd_iot, chp->cmd_ioh, wd_error);
 	bus_space_write_1(chp->ctl_iot, chp->ctl_ioh, wd_aux_ctlr, WDCTL_4BIT);
 	delay(10);
+	}

 	ret_value = __wdcwait_reset(chp, ret_value);
 	WDCDEBUG_PRINT(("%s:%d: after reset, ret_value=0x%d\n",
--- /usr/src/sys/dev/scsipi/atapi_wdc.c	Thu May  6 07:39:04 1999
+++ ./atapi_wdc.c	Mon Dec 13 23:54:41 1999
@@ -281,7 +281,7 @@
 	if ((sc_xfer->sc_link->scsipi_atapi.cap  & ATAPI_CFG_DRQ_MASK) !=
 	    ATAPI_CFG_IRQ_DRQ || (sc_xfer->flags & SCSI_POLL)) {
 		/* Wait for at last 400ns for status bit to be valid */
-		DELAY(1);
+		DELAY(100);
 		wdc_atapi_intr(chp, xfer, 0);
 	} else {
 		chp->ch_flags |= WDCF_IRQ_WAIT;


>Release-Note:
>Audit-Trail:

From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
To: yyamano@kt.rim.or.jp
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/8992
Date: Mon, 22 Jan 2001 02:11:01 +0900

 	PCGA-CD5 is known to be very very very broken.  it loses all
 	pcmcia configuration if it sees IDE reset.  i suggest you to
 	send it to garbage can and buy a new one.

 itojun
Responsible-Changed-From-To: port-i386-maintainer->bouyer 
Responsible-Changed-By: bouyer 
Responsible-Changed-When: Mon Apr 7 09:06:07 PDT 2003 
Responsible-Changed-Why:  
I'll see if I can add a quirk for it. Do you still have the hardware ? 
State-Changed-From-To: open->feedback 
State-Changed-By: bouyer 
State-Changed-When: Fri Apr 9 20:24:40 UTC 2004 
State-Changed-Why:  
Hi, 
can you try 2.0_BETA if you still have the hardware ? The extra reset isn't 
there any more, so your drive may work now ... 
State-Changed-From-To: feedback->closed 
State-Changed-By: mycroft 
State-Changed-When: Sat Jul 3 20:35:06 UTC 2004 
State-Changed-Why:  
This is thought to be fixed, and there has been no feedback from the user. 


Responsible-Changed-From-To: bouyer->mycroft 
Responsible-Changed-By: mycroft 
Responsible-Changed-When: Sat Jul 3 20:35:06 UTC 2004 
Responsible-Changed-Why:  
. 
State-Changed-From-To: closed->feedback 
State-Changed-By: bouyer 
State-Changed-When: Sat Jul 3 20:43:56 UTC 2004 
State-Changed-Why:  
The user provided feedback, but in private mail so it didn't get in gnats. 


Responsible-Changed-From-To: mycroft->bouyer 
Responsible-Changed-By: bouyer 
Responsible-Changed-When: Sat Jul 3 20:43:56 UTC 2004 
Responsible-Changed-Why:  
I'm in touch with the user. 
State-Changed-From-To: feedback->suspended 
State-Changed-By: bouyer 
State-Changed-When: Sun Jul 4 20:18:22 UTC 2004 
State-Changed-Why:  
This is still not fixed. I suspect it's the same issue as with my IBM 
pcmcia CD drive, or at last that it could be fixed in a similar way. 
If I ever get this IBM drive working, I'll ask the user to test it 
again. 
State-Changed-From-To: suspended->closed
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Fri, 23 Mar 2018 10:03:02 +0000
State-Changed-Why:
Close this PR, the hardware was broken, and it's irrelevant today.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.