public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Making MO drive work with ide-cd
@ 2004-01-18 17:18 Andries.Brouwer
  2004-01-18 17:58 ` Kevin P. Fleming
  2004-01-18 22:30 ` Pascal Schmidt
  0 siblings, 2 replies; 10+ messages in thread
From: Andries.Brouwer @ 2004-01-18 17:18 UTC (permalink / raw)
  To: Andries.Brouwer, der.eremit; +Cc: axboe, linux-kernel

    From: Pascal Schmidt <der.eremit@email.de>

    >> There is a patch by me with some rework by Jens Axboe in -mm that
    >> corrects this situation. It hasn't seen much testing, though.

    > OK, will find that and try later.

Hmm. Looked at it. But it cannot help. All it does is move
cdrom_read_capacity().

But ide-cd remains fundamentally broken for disks.
It sends cdrom commands, and they fail, and it does not do
disk things that are needed. First of all, we need partitions,
but ide-cd.c puts g->minors = 1.

Don't know whether Jens really wants to bend ide-cd.c until
it also handles disks, but it smells like a hack.

Andries

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Making MO drive work with ide-cd
@ 2004-01-18 21:28 Andries.Brouwer
  0 siblings, 0 replies; 10+ messages in thread
From: Andries.Brouwer @ 2004-01-18 21:28 UTC (permalink / raw)
  To: Andries.Brouwer, linux-kernel, wrlk

> I am trying to maintain ide-scsi so I'm very interested in details
> of the crash you observed. Can you post them

Not much to post - strange behaviour began, and thirty seconds
later the machine was totally dead, no reaction to keystrokes
any more.

Hope to find time one of these days to set up a serial console
and capture messages.

And to read the source.

And to hear from others. Maybe Jens once said that it was easy to fix
ide-scsi but that there was no interest. Possibly he has a more precise
idea what kind of things are broken. Or maybe you do.

Andries

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Making MO drive work with ide-cd
@ 2004-01-18 12:20 Andries.Brouwer
  2004-01-18 12:36 ` Pascal Schmidt
  2004-01-18 20:48 ` Willem Riede
  0 siblings, 2 replies; 10+ messages in thread
From: Andries.Brouwer @ 2004-01-18 12:20 UTC (permalink / raw)
  To: Andries.Brouwer, der.eremit; +Cc: axboe, linux-kernel

    From der.eremit@email.de  Sun Jan 18 02:16:30 2004
    From: Pascal Schmidt <der.eremit@email.de>

    > By some coincidence I got hold of an MO drive today. Under 2.4.21
    > and 2.6.1 using ide-scsi all seems to work at first sight.

    For me, it doesn't work at all with ide-scsi in 2.6. 2.4 is fine
    in that regard.

    Please fill the whole disk and then reread and compare via ide-scsi.
    That never worked for me in 2.6 using ide-scsi, but it does work
    with the patch in -mm.

Yes, you are right. Yesterday night I tried a small amount of I/O,
and that worked fine, but today the kernel couldn't cope with a diff
between two 640MB trees.
Unable to handle kernel paging request at virtual address 6b6b6b6b.
Followed by a bad kernel crash (vanilla 2.6.1).

OK. So, just like the rumours said already, ide-scsi is badly broken.

Since small amounts of I/O work - a race somewhere? bad locking?

    > With ide-cd I get errors only.
    > Not surprising: ide-cd expects a CD so sends READ_TOC and
    > gets "illegal request / invalid command" back.
    > The appropriate command is READ CAPACITY.

    There is a patch by me with some rework by Jens Axboe in -mm that
    corrects this situation. It hasn't seen much testing, though.

OK, will find that and try later.

    By the way, what hardware sector size does your MO use? I have
    only tested my patch with 2048 byte sector size - everything else
    is unlikely to work with ide-cd...

It uses media with 512-byte and media with 2048-byte sectors.
     
    > Are there cases where ide-cd is useful?
    > Should we retarget ide_optical to ide-scsi?

    I agree that the situation in mainline as it is now is undesirable,
    only mounting prewritten discs read-only works.

Yes. We must find out what is wrong in ide-scsi and fix it.

Andries


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <1f8mw-3Qk-1@gated-at.bofh.it>]
* Making MO drive work with ide-cd
@ 2004-01-17 23:38 Andries.Brouwer
  0 siblings, 0 replies; 10+ messages in thread
From: Andries.Brouwer @ 2004-01-17 23:38 UTC (permalink / raw)
  To: linux-kernel

Long ago we had a thread here with approximately the above subject.
I see fragments of discussion like

- if (drive->media == ide_cdrom)
+ if (drive->media == ide_cdrom || drive->media == ide_optical)
                         (void) request_module("ide-cd");

> Definitely, this looks like a fine start. As far as I'm concerned, it
> would be fine to commit to 2.5. 

and still today, by default ide_optical is sent to ide-cd.

I wonder whether that is meaningful.

By some coincidence I got hold of an MO drive today. Under 2.4.21
and 2.6.1 using ide-scsi all seems to work at first sight.
With ide-cd I get errors only.
Not surprising: ide-cd expects a CD so sends READ_TOC and
gets "illegal request / invalid command" back.
The appropriate command is READ CAPACITY.

Are there cases where ide-cd is useful?
Should we retarget ide_optical to ide-scsi?

Andries

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

end of thread, other threads:[~2004-01-18 22:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-18 17:18 Making MO drive work with ide-cd Andries.Brouwer
2004-01-18 17:58 ` Kevin P. Fleming
2004-01-18 18:34   ` Bartlomiej Zolnierkiewicz
2004-01-18 22:30 ` Pascal Schmidt
  -- strict thread matches above, loose matches on Subject: below --
2004-01-18 21:28 Andries.Brouwer
2004-01-18 12:20 Andries.Brouwer
2004-01-18 12:36 ` Pascal Schmidt
2004-01-18 20:48 ` Willem Riede
     [not found] <1f8mw-3Qk-1@gated-at.bofh.it>
2004-01-18  1:16 ` Pascal Schmidt
2004-01-17 23:38 Andries.Brouwer

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