![](https://seccdn.libravatar.org/avatar/342a4381b96b4a2cfbd1b2848b7311b2.jpg?s=120&d=mm&r=g)
Hi, I got a new external dvd burner from LG (GSA-5163D) and want to use this device for backup purposes. Therefore I tried to use the standard blockdevice (for me it's /dev/sr0) and created a new udf filesystem on a blank dvd-ram. But the writing performance can't be called performance because writing speed is 150 kb/s. Therefore I've tried to use the pktcdvd driver to improve writing performance but I didn't get it working with my device. I did some debuging but I've reached a point where I don't know what I have to do now. What I've done so far: - "pktsetup dvdram /dev/sr0" throws an error in dmesg. - enabled debugging in include/linux/pktcdvd.h: "#define PACKET_DEBUG 2" - added some VPRINTK statements to drivers/block/pktcdvd.c to find out what doesn't work: in "static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command *cgc)" rq->errors is set to 134217730 after "wait_for_completion(&wait);" has been called. Due to my VPRINTK statements and dmesg "generic_unplug_device(q);" will never be called in this function which is strange because it should be called just before "wait_for_completion(&wait);". - Here is the dmesg dump after pluging in my device and calling "pktsetup dvdram /dev/sr0": Dec 27 05:17:53 [kernel] usb 1-3: new high speed USB device using ehci_hcd and address 4 Dec 27 05:17:54 [kernel] scsi2 : SCSI emulation for USB Mass Storage devices Dec 27 05:17:54 [kernel] usb-storage: device found at 4 Dec 27 05:17:54 [kernel] usb-storage: waiting for device to settle before scanning Dec 27 05:17:59 [kernel] Vendor: HL-DT-ST Model: DVDRAM GSA-5163D Rev: A105 Dec 27 05:17:59 [kernel] sr0: scsi3-mmc drive: 23x/23x writer dvd-ram cd/rw xa/form2 cdda tray Dec 27 05:17:59 [kernel] usb-storage: device scan complete Dec 27 05:19:00 [kernel] pktcdvd: v0.2.0a 2004-07-14 Jens Axboe (axboe@suse.de) and petero2@telia.com Dec 27 05:19:12 [kernel] kcdrwd: i:0 ow:0 rw:0 ww:0 rec:0 fin:0 Dec 27 05:19:12 [kernel] pktcdvd: entering open Dec 27 05:19:12 [kernel] pktcdvd: elv_add_request: rq->errors: 0 - Last output repeated 2 times - Dec 27 05:19:12 [kernel] pktcdvd: pkt_generic_packet: rq->errors: 134217730 - necessary parts of "lspci -v": 00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01) (prog-if 00 [UHCI]) Subsystem: IBM Unknown device 052d Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at 1800 [size=32] 00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI]) Subsystem: IBM Unknown device 052d Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at 1820 [size=32] 00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI]) Subsystem: IBM Unknown device 052d Flags: bus master, medium devsel, latency 0, IRQ 11 I/O ports at 1840 [size=32] 00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI]) Subsystem: IBM Unknown device 052e Flags: bus master, medium devsel, latency 0, IRQ 11 Memory at c0000000 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port - "lsusb -v": Bus 004 Device 001: ID 0000:0000 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0000 idProduct 0x0000 bcdDevice 2.06 iManufacturer 3 Linux 2.6.14-gentoo-r5r40 uhci_hcd iProduct 2 UHCI Host Controller iSerial 1 0000:00:1d.2 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type none wMaxPacketSize 2 bInterval 255 Language IDs: (length=4) 0409 English(US) Bus 003 Device 001: ID 0000:0000 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0000 idProduct 0x0000 bcdDevice 2.06 iManufacturer 3 Linux 2.6.14-gentoo-r5r40 uhci_hcd iProduct 2 UHCI Host Controller iSerial 1 0000:00:1d.1 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type none wMaxPacketSize 2 bInterval 255 Language IDs: (length=4) 0409 English(US) Bus 002 Device 001: ID 0000:0000 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0000 idProduct 0x0000 bcdDevice 2.06 iManufacturer 3 Linux 2.6.14-gentoo-r5r40 uhci_hcd iProduct 2 UHCI Host Controller iSerial 1 0000:00:1d.0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type none wMaxPacketSize 2 bInterval 255 Language IDs: (length=4) 0409 English(US) Bus 001 Device 003: ID 152e:e003 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x152e idProduct 0xe003 bcdDevice 0.01 iManufacturer 1 HL-DT-ST DVDRAM GSA-5163D iProduct 2 Super Multi DVD Rewriter iSerial 3 4B13E050 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type none wMaxPacketSize 512 bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type none wMaxPacketSize 512 bInterval 0 Language IDs: (length=4) 0409 English(US) Bus 001 Device 001: ID 0000:0000 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 1 Single TT bMaxPacketSize0 8 idVendor 0x0000 idProduct 0x0000 bcdDevice 2.06 iManufacturer 3 Linux 2.6.14-gentoo-r5r40 ehci_hcd iProduct 2 EHCI Host Controller iSerial 1 0000:00:1d.7 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type none wMaxPacketSize 2 bInterval 12 Language IDs: (length=4) 0409 English(US) Greetings Gerald
![](https://seccdn.libravatar.org/avatar/f87393a317f048fb6dd0fd9caa959458.jpg?s=120&d=mm&r=g)
El Miércoles, 28 de Diciembre de 2005 07:13, Gerald Lutter escribió:
Hi,
I got a new external dvd burner from LG (GSA-5163D) and want to use this device for backup purposes. Therefore I tried to use the standard blockdevice (for me it's /dev/sr0) and created a new udf filesystem on a blank dvd-ram. But the writing performance can't be called performance because writing speed is 150 kb/s. Therefore I've tried to use the pktcdvd driver to improve writing performance but I didn't get it working with my device. I did some debuging but I've reached a point where I don't know what I have to do now. So weird I'm using the same kernel on gentoo too, and pktcdvd goes fine, with my external case, anyway I guess is not related to pktcdvd is your drive, cause I can write on +rw 4X -> 1.5 ~ 2.0 MB/s and is a very good data rate. Why you do not try with a +rw media instead of dvd+ram?
-- Gustavo Guillermo Pérez Compunauta uLinux www.compunauta.com
![](https://seccdn.libravatar.org/avatar/342a4381b96b4a2cfbd1b2848b7311b2.jpg?s=120&d=mm&r=g)
So weird I'm using the same kernel on gentoo too, and pktcdvd goes fine, with my external case, anyway I guess is not related to pktcdvd is your drive, cause I can write on +rw 4X -> 1.5 ~ 2.0 MB/s and is a very good data rate. Why you do not try with a +rw media instead of dvd+ram?
I tried using a dvd+rw medium but the result was the same. I couldn't get the drive to work with pktcdvd. Without this driver i have this weak performance. I also tried newer kernel versions (2.6.15-rc7 and 2.6.15-rc5-mm3). All results were the same. I will try to connect my drive via firewire but currently I don't have a firewire controler. Lets see if I can by one tomorrow. Greetings Gerald
![](https://seccdn.libravatar.org/avatar/f87393a317f048fb6dd0fd9caa959458.jpg?s=120&d=mm&r=g)
El Miércoles, 28 de Diciembre de 2005 11:24, Gerald Lutter escribió:
So weird I'm using the same kernel on gentoo too, and pktcdvd goes fine, with my external case, anyway I guess is not related to pktcdvd is your drive, cause I can write on +rw 4X -> 1.5 ~ 2.0 MB/s and is a very good data rate. Why you do not try with a +rw media instead of dvd+ram?
I tried using a dvd+rw medium but the result was the same. I couldn't get the drive to work with pktcdvd. Without this driver i have this weak performance. I also tried newer kernel versions (2.6.15-rc7 and 2.6.15-rc5-mm3). All results were the same. I will try to connect my drive via firewire but currently I don't have a firewire controler. Lets see if I can by one tomorrow. Are you using a 2.0 USB Host? or connector, some mobos has 1.1 and 2.0 in separate conectors. And yes, my performance mentioned was using USB 2.0 and Firewire, (I'll stay with firewire).
Anyway without pktcdvd and +RW media my drive works as well at the same mentioned speed, does not matter if I'm using IDE, USB or FireWire Interfaces. -- Gustavo Guillermo Pérez Compunauta uLinux www.compunauta.com
![](https://seccdn.libravatar.org/avatar/342a4381b96b4a2cfbd1b2848b7311b2.jpg?s=120&d=mm&r=g)
Am Wednesday 28 December 2005 18:59 schrieb Gustavo Guillermo Pérez:
El Miércoles, 28 de Diciembre de 2005 11:24, Gerald Lutter escribió:
So weird I'm using the same kernel on gentoo too, and pktcdvd goes fine, with my external case, anyway I guess is not related to pktcdvd is your drive, cause I can write on +rw 4X -> 1.5 ~ 2.0 MB/s and is a very good data rate. Why you do not try with a +rw media instead of dvd+ram?
I tried using a dvd+rw medium but the result was the same. I couldn't get the drive to work with pktcdvd. Without this driver i have this weak performance. I also tried newer kernel versions (2.6.15-rc7 and 2.6.15-rc5-mm3). All results were the same. I will try to connect my drive via firewire but currently I don't have a firewire controler. Lets see if I can by one tomorrow.
Are you using a 2.0 USB Host? or connector, some mobos has 1.1 and 2.0 in separate conectors. And yes, my performance mentioned was using USB 2.0 and Firewire, (I'll stay with firewire).
Anyway without pktcdvd and +RW media my drive works as well at the same mentioned speed, does not matter if I'm using IDE, USB or FireWire Interfaces.
Yes I'm using an USB 2.0 Host. Reading from a filesystem on /dev/sr0 works with no performance issues. Even burning an ordinary CD or DVD works. The problem is that I didn't get pktcdvd working with my external drive because of the kernel messages mentioned in my first mail. Udev creates the device I've passed as an argument to pktsetup but I'm not able to mount it. Regards Gerald
![](https://seccdn.libravatar.org/avatar/f87393a317f048fb6dd0fd9caa959458.jpg?s=120&d=mm&r=g)
El Miércoles, 28 de Diciembre de 2005 16:15, Gerald Lutter escribió:
Yes I'm using an USB 2.0 Host. Reading from a filesystem on /dev/sr0 works with no performance issues. Even burning an ordinary CD or DVD works.
The problem is that I didn't get pktcdvd working with my external drive because of the kernel messages mentioned in my first mail. Udev creates the device I've passed as an argument to pktsetup but I'm not able to mount it. Well, just to try, remove the drive from the case and plug as IDE odinary device, or back the kernel one version.
-- Gustavo Guillermo Pérez Compunauta uLinux www.compunauta.com
![](https://seccdn.libravatar.org/avatar/342a4381b96b4a2cfbd1b2848b7311b2.jpg?s=120&d=mm&r=g)
Am Wednesday 28 December 2005 23:31 schrieb Gustavo Guillermo Pérez:
Well, just to try, remove the drive from the case and plug as IDE odinary device, or back the kernel one version.
Ok, I've removed the drive from its case and used my brothers computer to connect it via ide. pktcdvd works fine now and I have a writing speed of 1700 kb/s. Without pktcdvd I have this weak performance again. My next try was to connect the drive via firewire on my brothers computer. pktcdvd works with firewire too. Now I have a writing speed of 1850 kb/s. Without pktcdvd I also have this weak performance. Now I tested the drive again connecting it via usb on different computers. I didn't get pktcdvd working with usb on any computer and without pktcdvd it's no fun making backups with it. The problem seems to be usb dependent. Are there any known problems with the Prolific PL-3507 chip used by my drivecase and pktcdvd? Regards Gerald
![](https://seccdn.libravatar.org/avatar/f87393a317f048fb6dd0fd9caa959458.jpg?s=120&d=mm&r=g)
El Jueves, 29 de Diciembre de 2005 13:29, Gerald Lutter escribió:
The problem seems to be usb dependent. Are there any known problems with the Prolific PL-3507 chip used by my drivecase and pktcdvd? Ask on usb-devel or LKML it's obvious not a pktcdvd problem, not firewire, not ide. :) -- Gustavo Guillermo Pérez Compunauta uLinux www.compunauta.com
![](https://seccdn.libravatar.org/avatar/342a4381b96b4a2cfbd1b2848b7311b2.jpg?s=120&d=mm&r=g)
Am Donnerstag, 29. Dezember 2005 20:57 schrieb Gustavo Guillermo Pérez:
Ask on usb-devel or LKML it's obvious not a pktcdvd problem, not firewire, not ide.
Thanks for your help, I will ask there to get further information. I will also try to do some debuging by myself. Best Regards Gerald
participants (2)
-
Gerald Lutter
-
Gustavo Guillermo Pérez