cdu31a - anyone has this ancient drive for testing?
Hello,
I've got a Sony CDU33A drive with COR334 controller. The Linux cdu31a driver was not updated for 2.6 kernel so it does not work.
Here are two patches that try to make the driver working with 2.6 kernel. The cdu31a-timeouts-fix.patch fixes the timeout values in header file and the cdu31a-make-working.patch does the rest:
- Make the driver work in 2.6.X
- Added workaround to fix hard lockups on eject
- Fixed door locking problem after mounting empty drive
- Set double-speed drives to double speed by default
- Removed all readahead things - not needed anymore
It does work on my system. I also know that it's still broken - it uses cli(), MODULE_PARM and it's also not very fast (I _never_ reached full 300KB/s with it, but I know that it's possible in Windows) and probably many other things (I'm new to Linux kernel) - so I'm waiting for comments.
If someone has these ancient drives (CDU31A or CDU33A), please test :-)
Signature · 1 line
Ondrej Zary
drivers/cdrom/cdu31a.h +2 -2
@@ -72,10 +72,10 @@from drive (in 1/100th's of seconds). */ -#define SONY_JIFFIES_TIMEOUT 1000/* Maximum number of times the +#define SONY_JIFFIES_TIMEOUT (10*HZ)/* Maximum number of times the drive will wait/try for an operation */ -#define SONY_RESET_TIMEOUT 100/* Maximum number of times the +#define SONY_RESET_TIMEOUT HZ/* Maximum number of times the drive will wait/try a reset operation */ #define SONY_READY_RETRIES 20000/* How many times to retry a
drivers/cdrom/cdu31a.c +120 -276
656 lines not on this page · raw message
Quoted 1 line · Ondrej Zary
I've got a Sony CDU33A drive with COR334 controller. The Linux cdu31a driver was not updated for 2.6 kernel so it does not work.
Well, modular it still /pretended/ to work. That is, it could (most of the time) mount CD-ROMs but yes, most any actual activity made it blow up...
Quoted 10 lines
Here are two patches that try to make the driver working with 2.6 kernel. The cdu31a-timeouts-fix.patch fixes the timeout values in header file and the cdu31a-make-working.patch does the rest:
- Make the driver work in 2.6.X
- Added workaround to fix hard lockups on eject
- Fixed door locking problem after mounting empty drive
- Set double-speed drives to double speed by default
- Removed all readahead things - not needed anymoreIt does work on my system. I also know that it's still broken - it uses
cli(),MODULE_PARMand it's also not very fast (I _never_ reached full 300KB/s with it, but I know that it's possible in Windows) and probably many other things (I'm new to Linux kernel) - so I'm waiting for comments.If someone has these ancient drives (CDU31A or CDU33A), please test :-)
Verified to do useful things here as well. I Have a CDU33A connected through a MediaVision PAS16 soundcard:
Pro Audio Spectrum driver Copyright (C) by Hannu Savolainen 1993-1996 <Pro AudioSpectrum 16D rev 127> at 0x388 irq 10 dma 5
Leaving handle_sony_cd_attention at 1004
Sony I/F CDROM : SONY CD-ROM CDU33A Rev 1.0c
Capabilities: tray, audio, eject, LED, elec. Vol, sep. Vol, double speed
Entering sony_get_toc
[ a great many leaving/entering and other debug printks ]
and I could actually mount CD-ROMs and copy stuff from them. One thing, a full 'dd' does not work:
root@5vd5:~# dd if=/dev/sonycd of=test.iso 0+0 records in 0+0 records out root@5vd5:~# ls -l test.iso -rw-r--r-- 1 root root 0 2004-11-07 20:41 test.iso
no oopses, nor specific complaints in dmesg.
Good job though, as far as I'm concerned. Once you have a final version, you may want to submit this directly to Linus or maybe to Al Viro. He sometimes looks at these drivers. I added him to the CC...
Rene.
Quoted 6 lines · Rene Herman
Quoted 1 line · Ondrej Zary
I've got a Sony CDU33A drive with COR334 controller. The Linux cdu31a driver was not updated for 2.6 kernel so it does not work.
Well, modular it still /pretended/ to work. That is, it could (most of the time) mount CD-ROMs but yes, most any actual activity made it blow up...
The original driver assumed that the request is at most 2048 bytes. If the request is longer, the readahead code oopses. Now that code is gone, readahead is handled by higher layers in the kernel. The driver performance might be increased by reading more than one CD-ROM sector at a time. I've tried to do that but got hard lockups.
Quoted 14 lines
Quoted 10 lines
Here are two patches that try to make the driver working with 2.6 kernel. The cdu31a-timeouts-fix.patch fixes the timeout values in header file and the cdu31a-make-working.patch does the rest:
- Make the driver work in 2.6.X
- Added workaround to fix hard lockups on eject
- Fixed door locking problem after mounting empty drive
- Set double-speed drives to double speed by default
- Removed all readahead things - not needed anymoreIt does work on my system. I also know that it's still broken - it uses
cli(),MODULE_PARMand it's also not very fast (I _never_ reached full 300KB/s with it, but I know that it's possible in Windows) and probably many other things (I'm new to Linux kernel) - so I'm waiting for comments.If someone has these ancient drives (CDU31A or CDU33A), please test :-)
Verified to do useful things here as well. I Have a CDU33A connected through a MediaVision PAS16 soundcard:
Quoted 7 lines
Pro Audio Spectrum driver Copyright (C) by Hannu Savolainen 1993-1996 <Pro AudioSpectrum 16D rev 127> at
0x388irq 10 dma 5
Leavinghandle_sony_cd_attentionat 1004
Sony I/F CDROM : SONY CD-ROM CDU33A Rev 1.0c
Capabilities: tray, audio, eject, LED, elec. Vol, sep. Vol, double speed
Enteringsony_get_toc
[ a great many leaving/entering and other debug printks ]
I've left the debugging enabled because I feel that it might be needed. My drive is rev 1.0d. I wonder if there's anyone who still has (working) single-speed CDU31A drive. Also I have tested only polled mode - interrupts and DMA disabled on the controller (the driver does not support DMA anyway and the comments say that it is not good for double speed drives).
Quoted 7 lines
and I could actually mount CD-ROMs and copy stuff from them. One thing, a full 'dd' does not work:
root@5vd5:~# dd if=/dev/sonycd of=test.iso 0+0 records in 0+0 records out root@5vd5:~# ls -l test.iso -rw-r--r-- 1 root root 0 2004-11-07 20:41 test.iso
I'll try to fix this problem.
Quoted 1 line
no oopses, nor specific complaints in dmesg.
It (sometimes?) does bad things for me when I use "eject -x 1" (or 2) to change the speed while copying files. I think that it's because of bad/no locking.
Quoted 1 line
Good job though, as far as I'm concerned. Once you have a final version, you may want to submit this directly to Linus or maybe to Al Viro. He sometimes looks at these drivers. I added him to the CC...
Signature · 1 line
Ondrej Zary
Quoted 1 line · Ondrej Zary
If someone has these ancient drives (CDU31A or CDU33A), please test :-)
I believe I have mine still lying around somewhere; if you are interested (and willing to tell me a shippable address ;)) I'd try to find it and send it over. I also probably still have one or two ISA soundcards with Sony connector (one with Opti chipset and a "highend" Yamaha Waveforge with additional cool stuff... ;))
While we are at it I also have a Dawicontrol UW SCSI Controller with Symbios Logic chipset to offer and two SCSI CD-Rom drives.
If someone expresses interest in this ancient stuff I'd be happy to arrange some shipment.
Servus,
Daniel
Quoted 11 lines · Daniel Egger
Quoted 1 line · Ondrej Zary
If someone has these ancient drives (CDU31A or CDU33A), please test :-)
I believe I have mine still lying around somewhere; if you are interested (and willing to tell me a shippable address ;)) I'd try to find it and send it over. I also probably still have one or two ISA soundcards with Sony connector (one with Opti chipset and a "highend" Yamaha Waveforge with additional cool stuff... ;))
If you don't want to test it yourself, it might help me (if shipping to Slovakia is not a problem).
Quoted 2 lines
While we are at it I also have a Dawicontrol UW SCSI Controller with Symbios Logic chipset to offer and two SCSI CD-Rom drives.
This might be useful for SCSI people.
Quoted 5 lines
If someone expresses interest in this ancient stuff I'd be happy to arrange some shipment.
Servus,
Daniel
Signature · 1 line
Ondrej Zary
Quoted 1 line · Ondrej Zary
If you don't want to test it yourself, it might help me (if shipping to Slovakia is not a problem).
The problem is that those drives will only work with ancient ISA soundcards so even if I had a need for a non-bootable single/double speed CDROM drive these days I'm really lacking machines to actually use it since I've only one PC with ISA slot(s) and this one is already occupied by an ISDN card.
Hey, I'd even rather pop in an ancient ISA 10 Mbit network card with boot eprom and boot from network; that is 34 to 68 times faster and live is no fun without network anyway. ;)
Shipping a drive to Slovakia shouldn't be a problem, finding it in my storage area (in the hope I haven't put it to the dump in dispair) is. Please stand by.
Servus,
Daniel