NetBSD Problem Report #24791

Received: (qmail 5583 invoked by uid 605); 15 Mar 2004 19:25:39 -0000
Message-Id: <20040315192222.DB7E6B644@linkdead.gangsta.local>
Date: Mon, 15 Mar 2004 14:22:22 -0500 (EST)
From: vax@linkdead.gangsta.local
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: vax@carolina.rr.com
To: gnats-bugs@gnats.netbsd.org
Subject: some CD-ROM access causes pciide errors
X-Send-Pr-Version: 3.95

>Number:         24791
>Category:       kern
>Synopsis:       untar from CD-ROM causes Check Condition on CDB, cp doesn't
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 15 19:26:00 +0000 2004
>Closed-Date:    
>Last-Modified:  Wed Mar 24 21:41:52 +0000 2004
>Originator:     VaX#n8
>Release:        NetBSD 1.6.1
>Organization:

>Environment:


Machine: i386
>Description:

I ran md5 against some tar files and it worked fine.
I then tried to untar the tar files from CD-ROM to a non-IDE disk and I got:

Mar 15 09:39:44 hostname /netbsd: cd0(pciide0:0:0):  Check Condition on CDB: 0x2
8 00 00 00 b5 d3 00 00 20 00
Mar 15 09:39:44 hostname /netbsd:     SENSE KEY:  Media Error
Mar 15 09:39:44 hostname /netbsd:      ASC/ASCQ:  Unrecovered Read Error
Mar 15 09:39:44 hostname /netbsd: 
Mar 15 09:39:51 hostname /netbsd: cd0(pciide0:0:0):  Check Condition on CDB: 0x2
8 00 00 00 b5 f3 00 00 20 00
Mar 15 09:39:51 hostname /netbsd:     SENSE KEY:  Media Error
Mar 15 09:39:51 hostname /netbsd:      ASC/ASCQ:  Unrecovered Read Error
Mar 15 09:39:51 hostname /netbsd: 
Mar 15 09:39:58 hostname /netbsd: cd0(pciide0:0:0):  Check Condition on CDB: 0x2
8 00 00 00 b5 d3 00 00 04 00
Mar 15 09:39:58 hostname /netbsd:     SENSE KEY:  Media Error
Mar 15 09:39:58 hostname /netbsd:      ASC/ASCQ:  Unrecovered Read Error
Mar 15 09:39:58 hostname /netbsd: 
Mar 15 09:40:16 hostname /netbsd: cd0(pciide0:0:0):  Check Condition on CDB: 0x2
8 00 00 00 12 94 00 00 04 00
Mar 15 09:40:16 hostname /netbsd:     SENSE KEY:  Media Error
Mar 15 09:40:16 hostname /netbsd:      ASC/ASCQ:  Unrecovered Read Error
Mar 15 09:40:16 hostname /netbsd: 
Mar 15 09:40:25 hostname /netbsd: cd0(pciide0:0:0):  Check Condition on CDB: 0x2
8 00 00 00 9b c8 00 00 20 00
...and so on...

Relevant lines from dmesg:

Mar 13 05:41:34 hostname /netbsd: pci0 at mainbus0 bus 0: configuration mode 1
Mar 13 05:41:34 hostname /netbsd: pci0: i/o space, memory space enabled, rd/line
, rd/mult, wr/inv ok
Mar 13 05:41:35 hostname /netbsd: pchb0 at pci0 dev 0 function 0
Mar 13 05:41:35 hostname /netbsd: pchb0: Intel 82439HX System Controller (TXC) (
rev. 0x01)
Mar 13 05:41:35 hostname /netbsd: pcib0 at pci0 dev 7 function 0
Mar 13 05:41:35 hostname /netbsd: pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3)
 (rev. 0x00)
Mar 13 05:41:35 hostname /netbsd: pciide0 at pci0 dev 7 function 1: Intel 82371S
B IDE Interface (PIIX3) (rev. 0x00)
Mar 13 05:41:35 hostname /netbsd: pciide0: bus-master DMA support present
Mar 13 05:41:35 hostname /netbsd: pciide0: primary channel wired to compatibilit
y mode
Mar 13 05:41:35 hostname /netbsd: atapibus0 at pciide0 channel 0: 2 targets
Mar 13 05:41:35 hostname /netbsd: cd0 at atapibus0 drive 0: <CD-ROM  Drive/F5E, 
MT1199 A Firmware, M0.25> type 5 cdrom removable
Mar 13 05:41:35 hostname /netbsd: cd0: 32-bit data port
Mar 13 05:41:35 hostname /netbsd: cd0: drive supports PIO mode 4, DMA mode 2, Ul
tra-DMA mode 2 (Ultra/33)
Mar 13 05:41:35 hostname /netbsd: pciide0: primary channel interrupting at irq 1
4
Mar 13 05:41:35 hostname /netbsd: cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
 (using DMA data transfers)
Mar 13 05:41:35 hostname /netbsd: pciide0: secondary channel wired to compatibil
ity mode
Mar 13 05:41:35 hostname /netbsd: pciide0: secondary channel ignored (disabled)

I rebooted the machine and used "cp" to copy to disk, which worked fine.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: "Charles M. Hannum" <mycroft@MIT.EDU>
To: vax@linkdead.gangsta.local
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/24791: some CD-ROM access causes pciide errors
Date: Mon, 15 Mar 2004 14:53:48 -0500

 On Mon, Mar 15, 2004 at 02:22:22PM -0500, vax@linkdead.gangsta.local wrote:
 > 
 > I ran md5 against some tar files and it worked fine.
 > I then tried to untar the tar files from CD-ROM to a non-IDE disk and I got:

 Is this actually a CD-ROM, or a CD-R?  If the latter, what speed did
 you write it?  What speed is the drive you're trying to read it with?
 What's the specific media and drive(s)?  CD-Rs are often unreliable
 when either written or read at high speed.

 > Mar 15 09:39:44 hostname /netbsd: cd0(pciide0:0:0):  Check Condition on CDB: 0x2
 > 8 00 00 00 b5 d3 00 00 20 00
 > Mar 15 09:39:44 hostname /netbsd:     SENSE KEY:  Media Error
 > Mar 15 09:39:44 hostname /netbsd:      ASC/ASCQ:  Unrecovered Read Error

 Regardless, this is a read error from the drive, and there is little
 that the software can do about it.

From: "Charles M. Hannum" <mycroft@MIT.EDU>
To: vax@carolina.rr.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/24791: some CD-ROM access causes pciide errors
Date: Mon, 15 Mar 2004 14:59:32 -0500

 On Mon, Mar 15, 2004 at 02:22:22PM -0500, vax@linkdead.gangsta.local wrote:
 > 
 > I ran md5 against some tar files and it worked fine.
 > I then tried to untar the tar files from CD-ROM to a non-IDE disk and I got:

 Is this actually a CD-ROM, or a CD-R?  If the latter, what speed did
 you write it?  What speed is the drive you're trying to read it with?
 What's the specific media and drive(s)?  CD-Rs are often unreliable
 when either written or read at high speed.

 > Mar 15 09:39:44 hostname /netbsd: cd0(pciide0:0:0):  Check Condition on CDB: 0x2
 > 8 00 00 00 b5 d3 00 00 20 00
 > Mar 15 09:39:44 hostname /netbsd:     SENSE KEY:  Media Error
 > Mar 15 09:39:44 hostname /netbsd:      ASC/ASCQ:  Unrecovered Read Error

 Regardless, this is a read error from the drive, and there is little
 that the software can do about it.

From: VaX#n8 <vax@linkdead.gangsta.local>
To: "Charles M. Hannum" <mycroft@MIT.EDU>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/24791: some CD-ROM access causes pciide errors 
Date: Mon, 15 Mar 2004 15:44:49 -0500

 >Is this actually a CD-ROM, or a CD-R?  If the latter, what speed did
 >you write it?  What speed is the drive you're trying to read it with?
 >What's the specific media and drive(s)?  CD-Rs are often unreliable
 >when either written or read at high speed.

 The drive is a BTC 52x CD-ROM.  It came with an inexpensive computer.
 It has a part number and serial number, but no apparent model number.
 The media is a CD-R written at 4x speed.
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.