linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: cdrecord hangs my computer
@ 2003-12-15 13:29 Paul Marinceu
  0 siblings, 0 replies; 35+ messages in thread
From: Paul Marinceu @ 2003-12-15 13:29 UTC (permalink / raw)
  To: linux-kernel

Just thought I'd add some positive feedback to this thread, if a bit
late (and not really related to cdrecord).

I updated my laptop to -test11 a couple of hours ago and burnt my first
cd using ide-cd. Not having made (nor planning to make) any benchmarks,
the following is to be taken with a grain of salt:

I used a recent xcdroast with a Matshita (Panasonic) ATAPI CD-RW/DVD-ROM
combo drive (model UJDA740) and was impressed. It Just Worked (TM) and
performance was excellent (at 16x), barely using any cpu at all.

Although ide-scsi has been faithful to me, I'm glad that the legacy
emulated scsi code has finally been replaced in favour of native
ide/atapi. I don't really care whether it's dev=0,0,0 or dev=/dev/cdrom,
though from a HCI point of view, the latter is better, but I definitely
want to thank those responsible. I'm sure that a lot of effort has gone
into making this possible.

My laptop _doesn't have_ any scsi hardware, so why should I then have to
select the scsi tree in my kernel config?? Happily, no more.


-- 
 Paul Marinceu
 http://elixxir.ucc.asn.au



^ permalink raw reply	[flat|nested] 35+ messages in thread
* Re: cdrecord hangs my computer
@ 2003-12-08  9:31 Douglas Gilbert
  2003-12-11 12:56 ` Jens Axboe
  0 siblings, 1 reply; 35+ messages in thread
From: Douglas Gilbert @ 2003-12-08  9:31 UTC (permalink / raw)
  To: linux-kernel

Linus Torvalds wrote:
 > On Sat, 6 Dec 2003, Wakko Warner wrote:
 > > >
 > > > One is just plain confusion - anybody who uses cdrecord has
 > > > either been
 > > > confused by the silly SCSI numbering (while "dev=/dev/hdc" is not
 > > > confusing at all, and uses the same device you use for
 > > > mounting the thing etc).
 > >
 > > Actually, it would be nice if I could use dev=/dev/scd0.  I
 > > do have a scsi burner (and an ide one too)
 >
 > It _should_ just work these days. Anything that uses "cdrom_ioctl()"
 > should automatically get the SCSI command translation code (which
 > isn't part of the scsi driver).

Yes dev=/dev/scd0 should work for "real" SCSI (and USB, IEEE1394
and sATA [via libata] attached) cd/dvd players in lk 2.6.
Copying the SG_IO ioctl and friends into the block
layer isn't exactly pretty in lk 2.6. No doubt I'll be hearing from
the author of cdrecord about some of the rough edges. Basically
cdrecord is tricked into believing it is talking to an sg device.

One rough edge is cdrecord's use of the SCSI_IOCTL_GET_IDLUN ioctl
which encodes bus/channel/target/lun into an integer. cdrecord
uses this for its dev=<n,m,q> notation. The drivers/block/scsi_ioctl.c
implementation returns 0 in all cases. So if you have 2 or more
ATAPI cd/dvd burners cdrecord's dev=<n,m,q> usage won't be able
to differentiate.

ide-scsi has always had problems (I spent about a week on it
and gave up with only a few minor fixes to report) but it
may be a useful "insurance" driver to keep around in lk 2.6 .
[It is also needed for ATAPI tapes so its deprecatation
warning might like to take into account the peripheral device
type.]

Yes the bus/channel/target/lun notation is dated but it has been
in place for around 15 years (in the Sun's bus/target/lun form).
These days the "bus/channel" component is defined by the host OS,
the "target" by the transport (see "object identifiers" in SAM-3
Annex A). Only the "lun" is defined within the SCSI^H^H^Htorage
Architecture Model (SAM-3 section 4.9 in the latest draft).

 > But hey, the scsi layer confuses me. Less than it used to, but still.

Well making the scsi layer handle some of the the most
sophisticated storage devices and some of the most brain
damaged at the same time is proving quite a challenge.
With libata (and later SAS) sATA disks will be getting to
the application space via the sd driver. And how will
object storage devices fit into Linux's block-centric I/O
architecture?

Doug Gilbert



^ permalink raw reply	[flat|nested] 35+ messages in thread
* Re: cdrecord hangs my computer
@ 2003-12-06 19:08 Tero Knuutila
  0 siblings, 0 replies; 35+ messages in thread
From: Tero Knuutila @ 2003-12-06 19:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

Hi all!

I put my kernel to pre-emptive (or something like that in processor opts) in 
menuconfig.
After recompilation kernel test11 now performs fine. No more hangs while 
burning cdroms!

So now we know that it was Linus's patch which helped me on ide-scsi 
problems.

However, I can't remember if I tried multiple disks when testing with ide-cd 
mode.
It is possible that this new way also works. Too bad that  cdrecord does not 
tell when there's faulty cd on drive.

But my system works now so thank you everyone!!! Keep up the good work.

Rgds,
    Tero

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


^ permalink raw reply	[flat|nested] 35+ messages in thread
* Re: cdrecord hangs my computer
@ 2003-12-06 18:27 Tero Knuutila
  0 siblings, 0 replies; 35+ messages in thread
From: Tero Knuutila @ 2003-12-06 18:27 UTC (permalink / raw)
  To: linux-kernel

Hi all!

>Good. However, I'd still like to hear if ide-scsi.c works with the patch:
>it's deprecated and I don't actually encourage people to use it, but it
>would be interesting to hear whether it works for people..

I had to throw away one faulty cd-disk, and now my 2.6-test11 works!!
I did two things while having troubles: Applied Linus's patch and
tried John Bradford's tip to turn off pre-emptive kernel (in processor 
options).

I am currently in a process to put pre-emptive back to enabled so soon I can 
tell if it was the patch or the option change.

I'll be back in one hour. Thanks already for Your help, this test11 kernel 
is fast and goog, I LIKE it!!!

Rgds,

    Tero

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


^ permalink raw reply	[flat|nested] 35+ messages in thread
* Re: cdrecord hangs my computer
@ 2003-12-06 12:39 Tero Knuutila
  0 siblings, 0 replies; 35+ messages in thread
From: Tero Knuutila @ 2003-12-06 12:39 UTC (permalink / raw)
  To: linux-kernel

Hi Linus, John, Ethan and others!

I tried everything suggested. First I compiled my kernel to use ide-cd 
instead of ide-scsi. No success, cdrecord did hang. Fortunately the whole 
machine did not hang.

Then I tried apply a patch Linus send me. So I changed settings so that HP 
7200 ide burner is seen as ide-scsi device. After that cdrecord still 
freezes totally my machine.
I forgot to mention earlier: I tried cdrecord with older 2.4 kernel and it 
works fine (as ide-scsi device).

So I try to give more accurate info so You can debug this ide-scsi thing 
which is broken. I repeat already mentioned things so that "everything" is 
on one mail:

- Kernel 2.6.0-test11 with one patch on ide-scsi.c
- AMD Duron(tm) processor AuthenticAMD GNU/Linux
- Soltek motherboard: SL-75DRV
- Another CDROM drive: LG GCR-8520B idereader
- HP7200 Ide burner:
cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: CD-Writer+ 7200  Rev: 3.01
  Type:   CD-ROM                           ANSI SCSI revision: 02

And then I guess this is useful too:
-------
lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 
AGP]
00:08.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 
Model 64/Model 64 Pro] (rev 15)
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)
00:0b.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
00:0b.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 
0a)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. 
VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06)
00:11.2 USB Controller: VIA Technologies, Inc. USB (rev 23)
00:11.3 USB Controller: VIA Technologies, Inc. USB (rev 23)
-------

So here's everything I could find. Please let me know what other useful info 
I may submit. I am not guru like You are, so I need advices what to do.

With best regards,
     Tero Knuutila

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


^ permalink raw reply	[flat|nested] 35+ messages in thread
* cdrecord hangs my computer
@ 2003-12-06  8:01 Tero Knuutila
  2003-12-06  8:12 ` Linus Torvalds
  0 siblings, 1 reply; 35+ messages in thread
From: Tero Knuutila @ 2003-12-06  8:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: tero1001

Hi!

I am running 2.6.0-test11 kernel on Gentoo (i686 AMD Duron). I have HP 7200 
cd burner.
My system hangs everytime I try to  burn my .wav files to cd with cdrecord. 
Usually few tracks go succesfully but then everything stops. Even the mouse 
won't move and powerbutton does not affect.

And if I have understood correctly, Linux should never hang, so hopefully 
some of You will help me.

I am glad if any responses are CC:t to me (tero1001@hotmail.com). I can't 
subscribe to this list because traffic is so heavy.

With best regards,
       Tero

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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

end of thread, other threads:[~2003-12-15 13:30 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-15 13:29 cdrecord hangs my computer Paul Marinceu
  -- strict thread matches above, loose matches on Subject: below --
2003-12-08  9:31 Douglas Gilbert
2003-12-11 12:56 ` Jens Axboe
2003-12-11 16:15   ` Linus Torvalds
2003-12-06 19:08 Tero Knuutila
2003-12-06 18:27 Tero Knuutila
2003-12-06 12:39 Tero Knuutila
2003-12-06  8:01 Tero Knuutila
2003-12-06  8:12 ` Linus Torvalds
2003-12-06  8:54   ` Ethan Weinstein
2003-12-06 11:59     ` Måns Rullgård
2003-12-06 13:40     ` Wakko Warner
2003-12-06 14:37       ` John Bradford
2003-12-06 21:57       ` Linus Torvalds
2003-12-06 22:02         ` Larry McVoy
2003-12-06 22:32           ` Linus Torvalds
2003-12-07 11:01             ` Eduard Bloch
2003-12-07 16:18               ` Linus Torvalds
2003-12-08 16:21                 ` bill davidsen
2003-12-08 17:46                   ` Linus Torvalds
2003-12-09 12:38                     ` Bill Davidsen
2003-12-08 17:53                   ` Valdis.Kletnieks
2003-12-08 18:53                     ` Linus Torvalds
2003-12-08 19:40                       ` Valdis.Kletnieks
2003-12-09 14:50                         ` Ian Soboroff
2003-12-09 20:42                           ` Mikael Pettersson
2003-12-08 16:24                 ` Martin J. Bligh
2003-12-08  4:36           ` Bob
2003-12-08  4:51             ` Larry McVoy
2003-12-07  0:16         ` Wakko Warner
2003-12-07  3:31           ` William Lee Irwin III
2003-12-07  4:49           ` Linus Torvalds
2003-12-08 16:13         ` bill davidsen
2003-12-08 17:38           ` Linus Torvalds
2003-12-06 16:42     ` Linus Torvalds

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).