public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Joerg Schilling <schilling@fokus.fraunhofer.de>
To: schilling@fokus.fraunhofer.de, bzolnier@gmail.com
Cc: mrmacman_g4@mac.com, matthias.andree@gmx.de,
	linux-kernel@vger.kernel.org, acahalan@gmail.com
Subject: Re: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]
Date: Sun, 29 Jan 2006 12:01:43 +0100	[thread overview]
Message-ID: <43DCA097.nailGPD11GI11@burner> (raw)
In-Reply-To: <58cb370e0601270837h61ac2b03uee84c0fa9a92bc28@mail.gmail.com>

Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote:

> I address this to everybody not only to Joerg:
>
> [*] As this is my thread now discussing SG_IO on /dev/hd* vs /dev/sg*
> is BANNED.  Please continue discussing this in the old thread. :-)

If we also bann discussions that try to claim cdrecord -scanbus is
unneeded or unwanted, no problem.

> > Maybe (now that we did agree about the way to go) it makes sense to start
> > discussing which bugs in Linux need to be fixed in order to close e.g.
> > the Bugs in the Debian bug tracking system for cdrtools that are related to the
> > Linux kernel.
>
> Yes, lets talk about other problems, do you have pointers bugs handy?
> I'm not very familiar with Debian bug tracking system and I see there
> more than 3 bugs for cdrtools.

There unfortunately are many "Bugs" on Debian.
Most of the "Bugs" are either realls Linux bugs or just caused by the
modifications done by the Debian people.

You would need to read the reports and it makes sense to look for comments from 
me.

> > This are the three most important Linux kernel bugs:
> >
> > -       ide-scsi does not do DMA if the DMAsize is not a multiple of 512
> >         A person who knows internal Linux structures shoule be able
> >         to fix this (and allow any multiple of 4) in less than one hour.
>
> I'll take a look, it should be quite easy
> and I don't see a reason for this restriction.

Testing could be done the following way:

-	insert a blank CD into your writer and do an initial test burn.

	sdd -inull bs=2352 of= test.raw count=75x60x74
	cdrecord dev=ATA:b,t,0 -audio -sao -v test.raw

	Remember the speed that should be > 40x
	Remember the system cpu time that should be less than 5% of the 
	wall clock time.

-	Repeat the same test with ide-scsi
	Make sure ide-scsi is usable fo the drive, then call

	cdrecord dev=b,t,0 -audio -sao -v test.raw

	If the max speed is lower than 30x or the system cpu time
	ich significant more than 5% of the wall closk time you do not
	use DMA.




> >         If we sum up the time spend on this discussoion, I really cannot
> >         understand why this has not been fixed earlier.
>
> Because nobody cared and flamewaring is easy in contrast
> to doing some real work.
>
> > -       /dev/hd* artificially prevents the ioctls SCSI_IOCTL_GET_IDLUN
> >         SCSI_IOCTL_GET_BUS_NUMBER from returning useful values.
> >         As long as this bug is present, there is no way to see SG_IO
> >         via /dev/hd* as integral part of the Linux SCSI transport concept.
>
> What are the return values of SCSI_IOCTL_GET_IDLUN
> and SCSI_IOCTL_GET_BUS_NUMBER needed for?
>
> Please elaborate as:
>
> * SG_IO ioctl doesn't require lun and bus number for arguments
> * sg_io_hdr_t also doesn't contain/require these fields
>
> so I simply cannot see why they are needed by kernel.
>
> If lun and bus number are needed by cdrecord please explain why
> (if only for enumerating devices sorry but see [*]).

Well it is obvious that the numbers are present inside Linux, otherwise
Linux could not return useful numbers in case that ide-scsi is used.
Note that we are talking about SCSI devices (in case the actual user
of libscg is cdrecord, we talk about CD/DVD writers).

If you read the Debian bug reports, you will find that many users are confused 
because cdrecord -scanbus will not list all possible devices.


> > -       If sending SCSI sia ATAPI, Linux under certain unknown conditions
> >         bastardizes the content of SCSI commands. A possible reason may be
>
> Sorry but I can't do much about it without knowing more details.

I am sorry, but as nobody was interested on this when it was possible 
to tell more it did has been fogotten.


> Please provide some way to reproduce the problem
> ("certain unknown conditions" is not very useful).

Well if I remember  correclty, then the problem does not occur in case you
use a Plextor drive. It may IIRC make sense to try to reproduce with Pioneer 
or NEC drives.

I believe the best way to allow to reproduce the problem would be to search the 
web or the Debian bugtracking for related error reports. Unfortunately Debian 
seems to be down.

"invalid field in cdb" is the related error code from the drive

and this is most likely a result of this bug:

http://lists.debian.org/debian-user-german/2003/10/msg00058.html

I made the experience with 'Read Full Toc' and "readcd" while trying to
do a clone read. But this is something you will most likely not be able to 
find on the web as the related error is hidden because this is not a mandatory
command in SCSI.



Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de                (uni)  
       schilling@fokus.fraunhofer.de     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

  reply	other threads:[~2006-01-29 11:02 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-27 16:37 CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ] Bartlomiej Zolnierkiewicz
2006-01-29 11:01 ` Joerg Schilling [this message]
2006-01-29 11:15   ` Jan Engelhardt
2006-01-29 11:28     ` Matthias Andree
2006-01-30 15:24     ` Joerg Schilling
2006-02-05 12:03       ` Jan Engelhardt
2006-02-06 16:29         ` Joerg Schilling
2006-02-06 17:17           ` René Rebe
2006-02-06 18:02           ` Matthias Andree
2006-01-29 11:26   ` Matthias Andree
2006-01-29 20:41     ` Jan Engelhardt
2006-01-29 20:50       ` Joerg Schilling
2006-01-29 21:28         ` Albert Cahalan
2006-01-30 16:11           ` Joerg Schilling
2006-01-30 16:31             ` Albert Cahalan
2006-01-30 16:35               ` Joerg Schilling
2006-01-30 17:08                 ` Matthias Andree
2006-01-30 17:14                   ` Joerg Schilling
2006-01-30 17:30                     ` Matthias Andree
2006-01-30 17:37                       ` Joerg Schilling
2006-01-30 17:49                         ` Matthias Andree
2006-01-30 20:22                         ` James Courtier-Dutton
2006-01-31 10:17                         ` Andreas Jellinghaus
2006-01-30 20:24                     ` Phillip Susi
2006-01-31 10:47                       ` Joerg Schilling
2006-01-31 11:22                         ` Matthias Andree
2006-02-01  0:15                         ` Bill Davidsen
2006-02-01  7:45                         ` Tejun Heo
2006-02-01 16:41                           ` Joerg Schilling
2006-01-31 23:55         ` Bill Davidsen
2006-02-01 15:06           ` Joerg Schilling
2006-01-30 15:25     ` Joerg Schilling
2006-01-30 17:09       ` Matthias Andree
2006-01-30 17:15         ` Joerg Schilling
2006-01-30 23:26           ` Pavel Machek
2006-02-01 15:51             ` Jan Engelhardt
2006-01-31  1:43   ` Patrick McFarland
2006-01-31  1:47     ` CD writing in future Linux try #2 David S. Miller
2006-01-31 11:13       ` Gerhard Mack
2006-01-31 11:18         ` David S. Miller
2006-02-01  0:28           ` Bill Davidsen
2006-02-01 15:12             ` Joerg Schilling
2006-02-01 15:25               ` Matthias Andree
2006-02-01 16:32                 ` Joerg Schilling
2006-02-02 16:24                 ` Jan Engelhardt
2006-02-02 16:29             ` Jan Engelhardt
2006-02-02 18:37               ` Bill Davidsen
2006-02-03 12:58                 ` Joerg Schilling
2006-02-03 13:15                   ` Matthias Andree
2006-02-03 16:43                     ` Joerg Schilling
2006-02-03 13:30                   ` linux-os (Dick Johnson)
2006-02-03 19:27                   ` Bill Davidsen
2006-02-01  4:49           ` Albert Cahalan
2006-02-01  7:56             ` jerome lacoste
2006-02-01 16:42               ` Joerg Schilling
2006-02-02  0:30                 ` Kurt Wall
2006-02-01 11:33             ` Rene Herman
2006-02-01 16:21               ` Jon Agirre
2006-02-02 16:35               ` Jan Engelhardt
2006-02-06 23:15                 ` Peter Chubb
2006-02-07  5:00                   ` Albert Cahalan
2006-02-01 16:36             ` Joerg Schilling
2006-02-01 17:01               ` Matthias Andree
2006-02-02 19:17             ` Bill Davidsen
2006-01-31 16:46         ` Lennart Sorensen
2006-01-31 14:15       ` linux-os (Dick Johnson)
     [not found]     ` <515e525f0601302205h4a845f36u12b946515759239a@mail.gmail.com>
2006-01-31  6:46       ` CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ] Kyle Moffett
2006-01-31  8:55     ` Pekka Enberg
2006-02-01  0:25     ` Jesper Juhl
2006-02-02 16:45       ` Jan Engelhardt
2006-02-10 17:58 ` CD-blanking leads to machine freeze with current -git [was: Re: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]] Marc Koschewski
2006-02-10 19:19   ` Phillip Susi
2006-02-10 19:39     ` Gene Heskett
2006-02-10 20:12       ` Kyle Moffett
2006-02-10 21:00         ` Gene Heskett
2006-02-10 21:00     ` Marc Koschewski
2006-02-10 21:26       ` Phillip Susi
2006-02-10 21:35         ` Lennart Sorensen
2006-02-11 15:16         ` CD-blanking leads to machine freeze with current -git Jan Engelhardt
2006-02-11 15:25           ` Marc Koschewski
2006-02-11 15:35             ` Doug McNaught
2006-02-11 15:44               ` Marc Koschewski
2006-02-10 23:23       ` CD-blanking leads to machine freeze with current -git [was: Re: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]] Alan Cox
2006-02-10 23:41         ` Marc Koschewski
2006-02-10 23:50           ` CD-blanking leads to machine freeze with current -git Doug McNaught
2006-02-10 23:56           ` CD-blanking leads to machine freeze with current -git [was: Re: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]] Alan Cox
2006-02-11  1:03       ` hackmiester (Hunter Fuller)
2006-02-11  1:08         ` Marc Koschewski
     [not found] <5zENZ-72l-47@gated-at.bofh.it>
     [not found] ` <5AiBB-5AH-17@gated-at.bofh.it>
     [not found]   ` <5AiV2-62l-7@gated-at.bofh.it>
     [not found]     ` <5AJ9s-2go-23@gated-at.bofh.it>
     [not found]       ` <5AKHI-4IV-5@gated-at.bofh.it>
     [not found]         ` <5AKRr-4V5-19@gated-at.bofh.it>
2006-01-31  1:01           ` CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ] Robert Hancock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43DCA097.nailGPD11GI11@burner \
    --to=schilling@fokus.fraunhofer.de \
    --cc=acahalan@gmail.com \
    --cc=bzolnier@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthias.andree@gmx.de \
    --cc=mrmacman_g4@mac.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox