public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Can't burn DVD under 2.5.59 with ide-cd
@ 2003-01-23 17:52 Joerg Schilling
  2003-01-23 18:01 ` Gregoire Favre
  2003-01-23 18:02 ` Jens Axboe
  0 siblings, 2 replies; 27+ messages in thread
From: Joerg Schilling @ 2003-01-23 17:52 UTC (permalink / raw)
  To: axboe, greg; +Cc: cdwrite, linux-kernel, schilling

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]

>From greg@ulima.unil.ch Thu Jan 23 18:51:42 2003
>   7 seconds.  0.98% done, estimate finish Thu Jan 23 18:51:05 2003
>   6 seconds.  1.22% done, estimate finish Thu Jan 23 18:51:46 2003
>   5 seconds.  1.46% done, estimate finish Thu Jan 23 18:52:14 2003
>   0 seconds. Operation starts.
>Waiting for reader process to fill input buffer ... input buffer ready.
>BURN-Free is ON.
>Starting new track at sector: 0
>Track 01:    4 of 4001 MB written (fifo  96%)  16.1x.cdrecord-prodvd: Success. write_g1: scsi sendcmd: no error
>CDB:  2A 00 00 00 08 B8 00 00 1F 00
>status: 0x2 (CHECK CONDITION)
>Sense Bytes:
>Sense Key: 0xFFFFFFFF [], Segment 0
>Sense Code: 0x00 Qual 0x00 (no additional sense information) Fru 0x0
>Sense flags: Blk 0 (not valid) 
>resid: 63488
>cmd finished after 0.007s timeout 100s


In one of my mails, I decribed why there are 2 bugs in the kernel.
Only one of them so far has been fixed. The sense data is still missing.

Jörg

 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fhg.de		(work) chars I am J"org Schilling
 URL:  http://www.fokus.fhg.de/usr/schilling   ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Can't burn DVD under 2.5.59 with ide-cd
@ 2003-01-22 15:38 Joerg Schilling
  0 siblings, 0 replies; 27+ messages in thread
From: Joerg Schilling @ 2003-01-22 15:38 UTC (permalink / raw)
  To: axboe, cdwrite, greg, linux-kernel, schilling

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1312 bytes --]

>From axboe@suse.de Wed Jan 22 09:35:39 2003

>> >How helpful. How about saying what's broken instead and I'd be happy to
>> >fix it.
>> 
>> I thought it's obvious: It is most likely a problem caused by the broken 
>> bit #defines in the Linux kernel for the SCSI status byte. I assume that
>> status should be 0x02 instead of 0x01. In addition, I would guess that

>Sounds plausible. Patch attached. Anyone care to expand on _why_ these
>status bytes are shifted one bit?

I have no idea... About 3-4 years ago, I tried to convice some of the kernel
people to change this but as you see, it did not happen.


>===== drivers/ide/ide-cd.c 1.35 vs edited =====
>--- 1.35/drivers/ide/ide-cd.c	Thu Nov 21 22:56:59 2002
>+++ edited/drivers/ide/ide-cd.c	Wed Jan 22 09:34:28 2003
>@@ -706,7 +706,7 @@
> 		 * scsi status byte
> 		 */
> 		if ((rq->flags & REQ_BLOCK_PC) && !rq->errors)
>-			rq->errors = CHECK_CONDITION;
>+			rq->errors = CHECK_CONDITION << 1;
> 
> 		/* Check for tray open. */
> 		if (sense_key == NOT_READY) {

Jörg

 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fhg.de		(work) chars I am J"org Schilling
 URL:  http://www.fokus.fhg.de/usr/schilling   ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Can't burn DVD under 2.5.59 with ide-cd
@ 2003-01-22  8:23 Joerg Schilling
  2003-01-22  8:35 ` Jens Axboe
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Joerg Schilling @ 2003-01-22  8:23 UTC (permalink / raw)
  To: axboe, cdwrite, greg, linux-kernel, schilling

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]

>From axboe@suse.de Wed Jan 22 09:06:12 2003

>> >BURN-Free is ON.
>> >Starting new track at sector: 0
>> >Track 01:    4 of 4001 MB written (fifo  96%)  16.1x.cdrecord-prodvd: Success. write_g1: scsi sendcmd: no error
>> >CDB:  2A 00 00 00 08 B8 00 00 1F 00
>> >status: 0x1 (GOOD STATUS)
>> >resid: 63488
>> >cmd finished after 0.008s timeout 100s
>> 
>> I can't tell you what happened because the kernel is broken :-(
>> 
>> If you fix the kernel, you will get a readble error message,

>How helpful. How about saying what's broken instead and I'd be happy to
>fix it.

I thought it's obvious: It is most likely a problem caused by the broken 
bit #defines in the Linux kernel for the SCSI status byte. I assume that
status should be 0x02 instead of 0x01. In addition, I would guess that
for the same reason, a kernel instance did not fetch the sense data as
libscg should try to work around these Linux bugs if at least the first 
sense byte is != 0.

Jörg

 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fhg.de		(work) chars I am J"org Schilling
 URL:  http://www.fokus.fhg.de/usr/schilling   ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: Can't burn DVD under 2.5.59 with ide-cd
@ 2003-01-22  1:09 Joerg Schilling
  2003-01-22  8:05 ` Jens Axboe
  0 siblings, 1 reply; 27+ messages in thread
From: Joerg Schilling @ 2003-01-22  1:09 UTC (permalink / raw)
  To: cdwrite, greg, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2757 bytes --]

>From: Gregoire Favre <greg@ulima.unil.ch>

>after reporting this problem, someone pointed me that I should try
>without DAO, I have tried this:

>mkisofs -dvd-video -V $1 $2 | cdrecord-prodvd driveropts=burnfree -dummy -v dev=/dev/hdc fs=64m speed=1 -eject tsize={$SIZE}s -

>And got this:

>Cdrecord-ProDVD-Clone 2.0 (i586-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
>Unlocked features: ProDVD Clone 
>Limited  features: speed 
>This copy of cdrecord is licensed for: private/research/educational_non-commercial_use
>TOC Type: 1 = CD-ROM
>scsidev: '/dev/hdc'
>devname: '/dev/hdc'
>scsibus: -2 target: -2 lun: -2
>Warning: Open by 'devname' is unintentional and not supported.
>Linux sg driver version: 3.5.27
>Using libscg version 'schily-0.7'
>Driveropts: 'burnfree'
>atapi: 1
>Device type    : Removable CD-ROM
>Version        : 2
>Response Format: 2
>Capabilities   : 
>Vendor_info    : 'SONY    '
>Identifikation : 'DVD RW DRU-500A '
>Revision       : '1.0f'
>Device seems to be: Generic mmc2 DVD-R/DVD-RW.
>Using generic SCSI-3/mmc-2 DVD-R/DVD-RW driver (mmc_dvd).
>Driver flags   : DVD SWABAUDIO BURNFREE 
>Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
>Drive buf size : 8126464 = 7936 KB
>FIFO size      : 67108864 = 65536 KB
>Track 01: data  4001 MB        
>Total size:     4001 MB = 2048512 sectors
>Current Secsize: 2048
>Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 249984
>Starting to write CD/DVD at speed 1 in dummy TAO mode for single session.
>Last chance to quit, starting dummy write in 9 seconds.  0.24% done, estimate finish Tue Jan 21 23:09:02 2003
>   8 seconds.  0.49% done, estimate finish Tue Jan 21 23:09:03 2003
>   7 seconds.  0.73% done, estimate finish Tue Jan 21 23:06:46 2003
>   6 seconds.  0.98% done, estimate finish Tue Jan 21 23:07:21 2003
>   5 seconds.  1.22% done, estimate finish Tue Jan 21 23:07:41 2003
>   4 seconds.  1.46% done, estimate finish Tue Jan 21 23:07:55 2003
>   0 seconds. Operation starts.
>Waiting for reader process to fill input buffer ... input buffer ready.
>BURN-Free is ON.
>Starting new track at sector: 0
>Track 01:    4 of 4001 MB written (fifo  96%)  16.1x.cdrecord-prodvd: Success. write_g1: scsi sendcmd: no error
>CDB:  2A 00 00 00 08 B8 00 00 1F 00
>status: 0x1 (GOOD STATUS)
>resid: 63488
>cmd finished after 0.008s timeout 100s

I can't tell you what happened because the kernel is broken :-(

If you fix the kernel, you will get a readble error message,

Jörg

 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fhg.de		(work) chars I am J"org Schilling
 URL:  http://www.fokus.fhg.de/usr/schilling   ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Can't burn DVD under 2.5.59 with ide-cd
@ 2003-01-21 22:07 Gregoire Favre
  0 siblings, 0 replies; 27+ messages in thread
From: Gregoire Favre @ 2003-01-21 22:07 UTC (permalink / raw)
  To: cdwrite, linux-kernel

Hello,

after reporting this problem, someone pointed me that I should try
without DAO, I have tried this:

mkisofs -dvd-video -V $1 $2 | cdrecord-prodvd driveropts=burnfree -dummy -v dev=/dev/hdc fs=64m speed=1 -eject tsize={$SIZE}s -

And got this:

Cdrecord-ProDVD-Clone 2.0 (i586-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Unlocked features: ProDVD Clone 
Limited  features: speed 
This copy of cdrecord is licensed for: private/research/educational_non-commercial_use
TOC Type: 1 = CD-ROM
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.7'
Driveropts: 'burnfree'
atapi: 1
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : 
Vendor_info    : 'SONY    '
Identifikation : 'DVD RW DRU-500A '
Revision       : '1.0f'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW driver (mmc_dvd).
Driver flags   : DVD SWABAUDIO BURNFREE 
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
Drive buf size : 8126464 = 7936 KB
FIFO size      : 67108864 = 65536 KB
Track 01: data  4001 MB        
Total size:     4001 MB = 2048512 sectors
Current Secsize: 2048
Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 249984
Starting to write CD/DVD at speed 1 in dummy TAO mode for single session.
Last chance to quit, starting dummy write in 9 seconds.  0.24% done, estimate finish Tue Jan 21 23:09:02 2003
   8 seconds.  0.49% done, estimate finish Tue Jan 21 23:09:03 2003
   7 seconds.  0.73% done, estimate finish Tue Jan 21 23:06:46 2003
   6 seconds.  0.98% done, estimate finish Tue Jan 21 23:07:21 2003
   5 seconds.  1.22% done, estimate finish Tue Jan 21 23:07:41 2003
   4 seconds.  1.46% done, estimate finish Tue Jan 21 23:07:55 2003
   0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Starting new track at sector: 0
Track 01:    4 of 4001 MB written (fifo  96%)  16.1x.cdrecord-prodvd: Success. write_g1: scsi sendcmd: no error
CDB:  2A 00 00 00 08 B8 00 00 1F 00
status: 0x1 (GOOD STATUS)
resid: 63488
cmd finished after 0.008s timeout 100s

write track data: error after 4571136 bytes
Sense Bytes: 70 00 00 00 00 00 00 12 00 00 00 00 00 00 00 00 00 00
Writing  time:    5.264s
Average write speed 578.9x.
Fixating...
Fixating time:   77.439s
cdrecord-prodvd: fifo had 1095 puts and 73 gets.
cdrecord-prodvd: fifo was 0 times empty and 1 times full, min fill was 96%.
Exit 254

I have no idea on how I could solve this issue by myself...

Thank you very much,

	Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch

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

end of thread, other threads:[~2003-01-26 16:28 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-23 17:52 Can't burn DVD under 2.5.59 with ide-cd Joerg Schilling
2003-01-23 18:01 ` Gregoire Favre
2003-01-23 18:06   ` Jens Axboe
2003-01-23 18:10     ` Jens Axboe
2003-01-23 18:55       ` Gregoire Favre
2003-01-23 19:07         ` Jens Axboe
2003-01-23 19:21           ` Gregoire Favre
2003-01-23 21:18             ` Jens Axboe
2003-01-23 21:54               ` Gregoire Favre
2003-01-24  7:55                 ` Jens Axboe
2003-01-24  9:10     ` Henning P. Schmiedehausen
2003-01-24  9:26       ` Jens Axboe
2003-01-25 14:25         ` Gregoire Favre
2003-01-26 16:23           ` Jens Axboe
2003-01-26 16:38             ` Gregoire Favre
2003-01-23 18:02 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2003-01-22 15:38 Joerg Schilling
2003-01-22  8:23 Joerg Schilling
2003-01-22  8:35 ` Jens Axboe
2003-01-22  9:47   ` Gregoire Favre
2003-01-22 12:57   ` Bob_Tracy(0000)
2003-01-23 17:51   ` Gregoire Favre
2003-01-22 12:00 ` Andre Hedrick
2003-01-22 18:13 ` William Lee Irwin III
2003-01-22  1:09 Joerg Schilling
2003-01-22  8:05 ` Jens Axboe
2003-01-21 22:07 Gregoire Favre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox