Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 1998 23:07:07 -0300 (ADT)
From:      The Hermit Hacker <scrappy@hub.org>
To:        scsi@FreeBSD.ORG
Subject:   Odd problem since upgrading to CAM drivers...
Message-ID:  <Pine.BSF.3.96.980729230057.269E-100000@thelab.hub.org>

next in thread | raw e-mail | index | archive | help

Morning...

	As previously mentioned, I just upgraded my home machine to the
new CAM drivers, and am using cdrecord to write to my CDR.  With the
non-CAM system, I never had any problems with writing, but tonight, after
doing two CDs, the third CD failed as follows:

cdrecord -v /usr/local/cd/PostgreSQL.img
Cdrecord release 1.6 Copyright (C) 1995-1998 Jrg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,6,0'
scsibus: 0 target: 6 lun: 0
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   :
Vendor_info    : 'YAMAHA  '
Identifikation : 'CRW2260         '
Revision       : '1.0f'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO
Track 01: data  306 MB
Total size:     351 MB (34:50.37) = 156778 sectors
Lout start:     351 MB (34:52/28) = 156778 sectors
ATIP info from disk:
  Indicated writing power: 4
  Is not unrestricted
  Is not erasable
  ATIP start of lead in:  -11580 (97:27/45)
  ATIP start of lead out: 333226 (74:05/01)
Disk type: Phthalocyanine or similar
Manufacturer: Kodak Japan Limited
Blocks total: 333226 Blocks remaining: 333226
Starting to write CD at speed 2 in write mode for single session.
Last chance to quit, starting real write in 1 seconds.
Starting new track at sector: 0
Track 01: 306 of 306 MB written.
Track 01: Total bytes read/written: 321077248/321077248 (156776 sectors).
cdrecord: Input/output error. flush cache: scsi sendcmd: cmd timeout after
122.501 (120) s
CDB:  35 00 00 00 00 00 00 00 00 00
cmd finished after 122.501s timeout 120s
Trouble flushing the cache
Writing  time: 1176.073s
Fixating...
cdrecord: Input/output error. close track/session: scsi sendcmd: retryable
error
CDB:  5B 00 02 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 06 00 00 00 00 0A 00 00 00 00 29 00 00 00 00 00 00 00
00 08 00 00 00 00 00 00 08 00 01 06
Sense Key: 0x6 Unit Attention, Segment 0
Sense Code: 0x29 Qual 0x00 (power on, reset, or bus device reset occurred)
Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.014s timeout 480s
Fixating time:    0.021s

<insert a new CD here, figure the CD was just bad>

%!cd
cdrecord -v /usr/local/cd/PostgreSQL.img
Cdrecord release 1.6 Copyright (C) 1995-1998 Jrg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,6,0'
scsibus: 0 target: 6 lun: 0
lookup for 0,6,0 failed
attempt to reference invalid unit -1
lookup for 0,6,0 failed
attempt to reference invalid unit -1
cdrecord: Cannot do inquiry for CD-Recorder.
lookup for 0,6,0 failed
attempt to reference invalid unit -1
cdrecord: Undefined error: 0. test unit ready: scsi sendcmd: fatal error
CDB:  00 00 00 00 00 00
cmd finished after 0.000s timeout 40s
%


Looking at dmesg, there is:

(da2:ncr0:0:2:0): COMMAND FAILED (9 ff) @f0a07200.
(da2:ncr0:0:2:0): MSG_MESSAGE_REJECT received (2:8).
ncr0:2: ERROR (0:4) (8-0-0) (0/3) @ (script 1c4:900b0000).
ncr0: script cmd = 910a0000
ncr0: regdump: da 00 80 03 47 00 02 1f 01 08 06 00 80 00 07 02.
ncr0: have to clear fifos.
ncr0:2: ERROR (0:1) (8-0-0) (0/3) @ (script 3f0:900b0000).
ncr0: script cmd = 72100000
ncr0: regdump: da 00 80 03 47 00 02 1f 01 08 06 00 80 00 07 02.
ncr0: have to clear fifos.
ncr0: restart (fatal error).
(da2:ncr0:0:2:0): COMMAND FAILED (9 ff) @f0a07200.
(da2:ncr0:0:2:0): MSG_MESSAGE_REJECT received (2:8).
ncr0:2: ERROR (0:4) (8-0-0) (0/3) @ (script 1c4:900b0000).
ncr0: script cmd = 910a0000
ncr0: regdump: da 00 80 03 47 00 02 1f 01 08 06 00 80 00 07 02.
ncr0: have to clear fifos.
ncr0:2: ERROR (0:1) (8-0-0) (0/3) @ (script 3f0:900b0000).
ncr0: script cmd = 72100000
ncr0: regdump: da 00 80 03 47 00 02 1f 01 08 06 00 80 00 07 02.
ncr0: have to clear fifos.
ncr0: restart (fatal error).
(da2:ncr0:0:2:0): COMMAND FAILED (9 ff) @f0a07200.

	etc, etc...

	Something appears to be messed up where non-CAM worked
fine...anything I can do to debug this?


Marc G. Fournier                                
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980729230057.269E-100000>