linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* cdrecord, cdrdao failing with scsi bus reset
  2002-09-03 12:03 /proc file system not working Sanjeev Manral
@ 2002-09-09 19:16 ` Tony Howard
  0 siblings, 0 replies; 7+ messages in thread
From: Tony Howard @ 2002-09-09 19:16 UTC (permalink / raw)
  To: linuxppc-dev


List,

I am having a problem with my cd recorder, and I was hoping someone could
help.  I have copied an audio CD to my HD using cdda2wav, but trying to
write with cdrecord causes a SCSI bus reset.  cdrdao fails with a different message,
but I get an identical scsi bus reset according to the kernel logs.  After
the reset, I can't access the CD drive until I reboot.  Relevant info:

Apple Performa 6400
Built in SCSI (Mesh)
Linux 2.4.20-pre5
cdrecord 1.10
cdrdao 1.1.6
Drive: Sanyo CRD-R880S, aka Smart & Friendly CD Rocket 8020

Here is what's on my scsi bus:
[root@ranger root]# cdrecord -scanbus
Cdrecord 1.10 (powerpc-unknown-linux-gnu) Copyright (C) 1995-2001 Jörg
Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) *
        0,1,0     1) *
        0,2,0     2) 'GENERIC ' 'CD-R CRD-R800S ' '1.23' Removable CD-ROM
        0,3,0     3) 'MATSHITA' 'CD-ROM CR-8008  ' '8.0h' Removable CD-ROM
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *


Here is the output from cdrecord:
[root@ranger cd]# cdrecord -v dev=0,2,0 -dummy -dao -useinfo *.wav
pregap1: -1
Cdrecord 1.10 (powerpc-unknown-linux-gnu) Copyright (C) 1995-2001 Jörg
Schilling
TOC Type: 0 = CD-DA
scsidev: '0,2,0'
scsibus: 0 target: 2 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
atapi: 0
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : SYNC LINKED
Vendor_info    : 'GENERIC '
Identifikation : 'CD-R CRD-R800S '
Revision       : '1.23'
Device seems to be: Generic mmc CD-R.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO
Drive buf size : 1843200 = 1800 KB
FIFO size      : 4194304 = 4096 KB
Track 01: audio  41 MB (04:06.22) no preemp
Track 02: audio  50 MB (05:02.50) no preemp
Track 03: audio  38 MB (03:51.80) no preemp
Track 04: audio  33 MB (03:19.13) no preemp
Track 05: audio  66 MB (06:33.40) no preemp
Track 06: audio  33 MB (03:21.56) no preemp
Track 07: audio  51 MB (05:09.04) no preemp
Track 08: audio  61 MB (06:04.82) no preemp
Track 09: audio  42 MB (04:14.44) no preemp
Track 10: audio  66 MB (06:34.09) no preemp
Track 11: audio  49 MB (04:53.84) no preemp
Track 12: audio  40 MB (04:00.16) no preemp
Track 13: audio  75 MB (07:29.33) no preemp
Track 14: audio  47 MB (04:39.70) no preemp
Track 15: audio  47 MB (04:44.96) no preemp
Total size:     747 MB (74:05.02) = 333377 sectors
Lout start:     748 MB (74:07/02) = 333377 sectors
cdrecord: No such device or address. Cannot send SCSI cmd via ioctl


I get the following lines in my kernel log:
mesh_abort(c8757e00)
mesh: state at c8772e78, regs at ca18a000, dma at ca18c000
    ct=   0 seq= 9 bs=   0 fc= 0 exc= 0 err= 0 im= 7 int= 0 sp=80
    dma stat=e0 cmdptr=875c010
    phase=0 msgphase=0 conn_tgt=2 data_ptr=0
    dma_st=0 dma_ct=0 n_msgout=0
    target 2: req=c8757e00 goes_out=0 saved_ptr=0
mesh_abort(c8757c00)
mesh: state at c8772e78, regs at ca18a000, dma at ca18c000
    ct=   0 seq= 9 bs=   0 fc= 0 exc= 0 err= 0 im= 7 int= 0 sp=80
    dma stat=e0 cmdptr=875c010
    phase=0 msgphase=0 conn_tgt=2 data_ptr=0
    dma_st=0 dma_ct=0 n_msgout=0
    target 2: req=c8757e00 goes_out=0 saved_ptr=0
mesh_host_reset
mesh: target 2 synchronous at 10.0 MB/s
scsi: device set offline - not ready or command retry failed after host
reset: host 0 channel 0 id 2 lun 0
mesh: target 3 synchronous at 10.0 MB/s

Does anybody have any suggestions?  I don't think its termination issues -
I just have the built in CD and the external burner, and it has a
termination switch which is set to on.

Tony


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cdrecord, cdrdao failing with scsi bus reset
  2002-09-20 20:21 ` cdrecord, cdrdao failing with scsi bus reset Robert E Brose II
@ 2002-09-20  4:12   ` Tony Howard
  2002-09-21  5:28     ` Robert E Brose II
  0 siblings, 1 reply; 7+ messages in thread
From: Tony Howard @ 2002-09-20  4:12 UTC (permalink / raw)
  To: Robert E Brose II; +Cc: linuxppc-dev


Do you know where I could find this patch (or who wrote it?)

Tony

On Fri, 20 Sep 2002, Robert E Brose II wrote:

>
> DAO doesn't work with the stock scsi drivers (at least not through
> 2.4.18). You need to apply a patch to the kernel drivers to get
> it working otherwise use tao.
>
> Bob
> --
> /~\ The ASCII       | Robert E. Brose II    N0QBJ
> \ / Ribbon Campaign | http://www.qbjnet.com/
>  X  Help cure       | mailto:bob@qbjnet.com
> / \ HTML Email      | public key at http://www.qbjnet.com/key.html
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cdrecord, cdrdao failing with scsi bus reset
       [not found] <20020920200528.14119.qmail@kunk.jriver.com>
@ 2002-09-20 20:21 ` Robert E Brose II
  2002-09-20  4:12   ` Tony Howard
  0 siblings, 1 reply; 7+ messages in thread
From: Robert E Brose II @ 2002-09-20 20:21 UTC (permalink / raw)
  To: linuxppc-dev


DAO doesn't work with the stock scsi drivers (at least not through
2.4.18). You need to apply a patch to the kernel drivers to get
it working otherwise use tao.

Bob
--
/~\ The ASCII       | Robert E. Brose II    N0QBJ
\ / Ribbon Campaign | http://www.qbjnet.com/
 X  Help cure       | mailto:bob@qbjnet.com
/ \ HTML Email      | public key at http://www.qbjnet.com/key.html

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cdrecord, cdrdao failing with scsi bus reset
  2002-09-20  4:12   ` Tony Howard
@ 2002-09-21  5:28     ` Robert E Brose II
  2002-09-21 11:55       ` Benjamin Herrenschmidt
  2002-09-24 16:26       ` Tony Howard
  0 siblings, 2 replies; 7+ messages in thread
From: Robert E Brose II @ 2002-09-21  5:28 UTC (permalink / raw)
  To: Tony Howard; +Cc: linuxppc-dev


I got it off of this list myself, I think it was originally for
2.4.3. I've just kept remaking it as I put new kernels on
my machine as it seems to never have made it to the official
kernel. It patches several scsi drivers but the only ones that
affect Mac users are  the 53c94 and mesh drivers.

http://www.jriver.com/~bob/daofix-2.4.17.diff

Is against the 2.4.17 kernel. I just tried it on the latest
benh 2.4 kernel (2.4.20-pre7) and it patched ALTHOUGH there
were offsets in the mesh driver which seems to have been worked
on lately. I haven't verified that it works past the 2.4.19
kernel I'm currently using. YMMV.

Bob

User Tony Howard says:
>
> Do you know where I could find this patch (or who wrote it?)
>
> Tony
>
> On Fri, 20 Sep 2002, Robert E Brose II wrote:
>
> >
> > DAO doesn't work with the stock scsi drivers (at least not through
> > 2.4.18). You need to apply a patch to the kernel drivers to get
> > it working otherwise use tao.
> >
> > Bob
> > --
> > /~\ The ASCII       | Robert E. Brose II    N0QBJ
> > \ / Ribbon Campaign | http://www.qbjnet.com/
> >  X  Help cure       | mailto:bob@qbjnet.com
> > / \ HTML Email      | public key at http://www.qbjnet.com/key.html
> >
> >
>
>

--
/~\ The ASCII       | Robert E. Brose II    N0QBJ
\ / Ribbon Campaign | http://www.qbjnet.com/
 X  Help cure       | mailto:bob@qbjnet.com
/ \ HTML Email      | public key at http://www.qbjnet.com/key.html

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cdrecord, cdrdao failing with scsi bus reset
  2002-09-21  5:28     ` Robert E Brose II
@ 2002-09-21 11:55       ` Benjamin Herrenschmidt
  2002-09-24 16:26       ` Tony Howard
  1 sibling, 0 replies; 7+ messages in thread
From: Benjamin Herrenschmidt @ 2002-09-21 11:55 UTC (permalink / raw)
  To: Robert E Brose II, Tony Howard; +Cc: linuxppc-dev


>I got it off of this list myself, I think it was originally for
>2.4.3. I've just kept remaking it as I put new kernels on
>my machine as it seems to never have made it to the official
>kernel. It patches several scsi drivers but the only ones that
>affect Mac users are  the 53c94 and mesh drivers.
>
>http://www.jriver.com/~bob/daofix-2.4.17.diff
>
>Is against the 2.4.17 kernel. I just tried it on the latest
>benh 2.4 kernel (2.4.20-pre7) and it patched ALTHOUGH there
>were offsets in the mesh driver which seems to have been worked
>on lately. I haven't verified that it works past the 2.4.19
>kernel I'm currently using. YMMV.

Interesting. I don't think this patch does things the right
way though, but I'll see what I can do with it.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cdrecord, cdrdao failing with scsi bus reset
       [not found] <20020921142023.24406.qmail@kunk.jriver.com>
@ 2002-09-21 14:27 ` Robert E Brose II
  0 siblings, 0 replies; 7+ messages in thread
From: Robert E Brose II @ 2002-09-21 14:27 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: benh


> benh@kernel.crashing.org ("Benjamin Herrenschmidt") Said:
>
> > Robert Brose said:
> >I got it off of this list myself, I think it was originally for
> >2.4.3. I've just kept remaking it as I put new kernels on
> >my machine as it seems to never have made it to the official
> >kernel. It patches several scsi drivers but the only ones that
> >affect Mac users are  the 53c94 and mesh drivers.
> >
> >http://www.jriver.com/~bob/daofix-2.4.17.diff
> >
> >Is against the 2.4.17 kernel. I just tried it on the latest
> >benh 2.4 kernel (2.4.20-pre7) and it patched ALTHOUGH there
> >were offsets in the mesh driver which seems to have been worked
> >on lately. I haven't verified that it works past the 2.4.19
> >kernel I'm currently using. YMMV.
>
> Interesting. I don't think this patch does things the right
> way though, but I'll see what I can do with it.
>
> Ben.

If I remember right the author of the patch was trying to reduce
the redundancy of the same code in several scsi drivers and do
a more generic setting of the scsi direction flag. This is a pretty
common problem, I've seen the same limitation in the Adaptec 3200
driver as well as in other OS. It would be great if some kind
of fix got into the main tree, THANKS!!

Bob
--
/~\ The ASCII       | Robert E. Brose II    N0QBJ
\ / Ribbon Campaign | http://www.qbjnet.com/
 X  Help cure       | mailto:bob@qbjnet.com
/ \ HTML Email      | public key at http://www.qbjnet.com/key.html

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cdrecord, cdrdao failing with scsi bus reset
  2002-09-21  5:28     ` Robert E Brose II
  2002-09-21 11:55       ` Benjamin Herrenschmidt
@ 2002-09-24 16:26       ` Tony Howard
  1 sibling, 0 replies; 7+ messages in thread
From: Tony Howard @ 2002-09-24 16:26 UTC (permalink / raw)
  To: Robert E Brose II; +Cc: linuxppc-dev


The patch worked for me.  Thanks!


Tony

On Sat, 21 Sep 2002, Robert E Brose II wrote:

>
> I got it off of this list myself, I think it was originally for
> 2.4.3. I've just kept remaking it as I put new kernels on
> my machine as it seems to never have made it to the official
> kernel. It patches several scsi drivers but the only ones that
> affect Mac users are  the 53c94 and mesh drivers.
>
> http://www.jriver.com/~bob/daofix-2.4.17.diff
>
> Is against the 2.4.17 kernel. I just tried it on the latest
> benh 2.4 kernel (2.4.20-pre7) and it patched ALTHOUGH there
> were offsets in the mesh driver which seems to have been worked
> on lately. I haven't verified that it works past the 2.4.19
> kernel I'm currently using. YMMV.
>
> Bob
>
> User Tony Howard says:
> >
> > Do you know where I could find this patch (or who wrote it?)
> >
> > Tony
> >
> > On Fri, 20 Sep 2002, Robert E Brose II wrote:
> >
> > >
> > > DAO doesn't work with the stock scsi drivers (at least not through
> > > 2.4.18). You need to apply a patch to the kernel drivers to get
> > > it working otherwise use tao.
> > >
> > > Bob
> > > --
> > > /~\ The ASCII       | Robert E. Brose II    N0QBJ
> > > \ / Ribbon Campaign | http://www.qbjnet.com/
> > >  X  Help cure       | mailto:bob@qbjnet.com
> > > / \ HTML Email      | public key at http://www.qbjnet.com/key.html
> > >
> > >
> >
> >
>
> --
> /~\ The ASCII       | Robert E. Brose II    N0QBJ
> \ / Ribbon Campaign | http://www.qbjnet.com/
>  X  Help cure       | mailto:bob@qbjnet.com
> / \ HTML Email      | public key at http://www.qbjnet.com/key.html
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-09-24 16:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20020920200528.14119.qmail@kunk.jriver.com>
2002-09-20 20:21 ` cdrecord, cdrdao failing with scsi bus reset Robert E Brose II
2002-09-20  4:12   ` Tony Howard
2002-09-21  5:28     ` Robert E Brose II
2002-09-21 11:55       ` Benjamin Herrenschmidt
2002-09-24 16:26       ` Tony Howard
     [not found] <20020921142023.24406.qmail@kunk.jriver.com>
2002-09-21 14:27 ` Robert E Brose II
2002-09-03 12:03 /proc file system not working Sanjeev Manral
2002-09-09 19:16 ` cdrecord, cdrdao failing with scsi bus reset Tony Howard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).