VIA VT6240 SATA Controller DVD/CD Write Failures

Bug #139952 reported by Joe MacDonald
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Expired
High
linux (Ubuntu)
Won't Fix
Medium
Unassigned
linux-source-2.6.20 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: linux-source-2.6.20

A detailed discussion about this case has been archived via the <email address hidden> mailing list here: http://<email address hidden>/msg11361.html

I'll try to provide only the most immediately relevant details here to hopefully avoid providing too much noise.

- This doesn't appear to be a hardware failure because the machine with the failure dual-boots into WindowsXP and both Nero and cdrecord-2.01.01a35 are able to burn CDs and DVDs.

- First observed the problem on an Edgy Eft install but I didn't record any of the failure information at the time.

- Now on Feisty Fawn and yesterday I tried booting a Gutsy Gibbon kernel (2.6.22-11) without success, though the failure reported different problems.

--------------------------------------------------------------------------------
skynet /tmp/tmp cdrecord --version
Cdrecord-yelling-line-to-tell-frontends-to-use-it-like-version 2.01.01a03-dvd
Wodim 1.1.2
Copyright (C) 2006 Cdrkit suite contributors
Based on works from Joerg Schilling, Copyright (C) 1995-2006, J. Schilling
skynet /tmp/tmp cdrecord -scanbus
scsibus1:
        1,0,0 100) 'HL-DT-ST' 'DVDRAM GSA-H62N ' 'CL00' Removable CD-ROM
        1,1,0 101) *
        1,2,0 102) *
        1,3,0 103) *
        1,4,0 104) *
        1,5,0 105) *
        1,6,0 106) *
        1,7,0 107) *
skynet /tmp/tmp cdrecord -raw96r -v dev=1,0,0 -eject speed=2 -pad -audio dead_kennedys_-_viva_las_vegas.wav [...]
wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Linux sg driver version: 3.5.34
Wodim version: 1.1.2
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identification : 'DVDRAM GSA-H62N '
Revision : 'CL00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0009 (CD-R)
Profile: 0x0012 (DVD-RAM)
Profile: 0x0011 (DVD-R sequential recording)
Profile: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0016 (DVD-R/DL layer jump recording)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x001A (DVD+RW)
Profile: 0x001B (DVD+R)
Profile: 0x002B (DVD+R/DL)
Profile: 0x0010 (DVD-ROM)
Profile: 0x0009 (CD-R) (current)
Profile: 0x000A (CD-RW)
Profile: 0x0008 (CD-ROM)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes:
Drive buf size : 1053696 = 1029 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
Drive DMA Speed: 16332 kB/s 92x CD 11x DVD
FIFO size : 12582912 = 12288 KB
wodim: Drive does not support TAO recording.
wodim: Illegal write mode for this drive.
--------------------------------------------------------------------------------

Similarly, explicitly choosing any write mode (-dao, -sao, -raw96r, etc.) results in precisely the same errors. In order to bring the issue to the attention of the cdrecord author, I also installed cdrtools and tried with that:

--------------------------------------------------------------------------------
root@skynet:/tmp/tmp# export PATH=/opt/schily/bin/:$PATH
root@skynet:/tmp/tmp# which cdrecord
/opt/schily/bin//cdrecord
root@skynet:/tmp/tmp# cdrecord --version
Cdrecord-ProDVD-ProBD-Clone 2.01.01a35 (i686-pc-linux-gnu) Copyright (C) 1995-2007 J??rg Schilling
root@skynet:/tmp/tmp# cdrecord -v dev=1,0,0 -eject speed=2 -pad -audio dead_kennedys_-_viva_[...]
cdrecord: No write mode specified.
cdrecord: Asuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 2.01.01a35 (i686-pc-linux-gnu) Copyright (C) 1995-2007 J??rg Schilling
TOC Type: 0 = CD-DA
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.9'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'DVDRAM GSA-H62N '
Revision : 'CL00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-R/DL sequential recording
Profile: DVD-R/DL layer jump recording
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD+RW
Profile: DVD+R
Profile: DVD+R/DL
Profile: DVD-ROM
Profile: CD-R (current)
Profile: CD-RW
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes:
Drive buf size : 1053696 = 1029 KB
Drive pbuf size: 1966080 = 1920 KB
Drive DMA Speed: 16756 kB/s 95x CD 12x DVD 3x BD
FIFO size : 4194304 = 4096 KB
cdrecord: Drive does not support SAO recording.
cdrecord: Illegal write mode for this drive.
--------------------------------------------------------------------------------

Finally, someone had suggested I try using growisofs on a pre-master DVD iso, which also seemed to fail in the same way:

--------------------------------------------------------------------------------
root@skynet:/tmp/backup# file backup.iso
backup.iso: ISO 9660 CD-ROM filesystem data UDF filesystem data (unknown version, id 'NSR0
root@skynet:/tmp/backup# growisofs -dvd-compat -Z /dev/dvd=./backup.iso
Executing 'builtin_dd if=./backup.iso of=/dev/dvd obs=32k seek=0'
:-[ MODE SELECT failed with SK=5h/ASC=1Ah/ACQ=00h]: Input/output error
--------------------------------------------------------------------------------

The problem looks like it might be connected to Bug #109327, but the solution of updating to the latest Gutsy kernel didn't provide a fix and not all the symptoms seem the same, which has led me to open this bug too.

Finally, booting the Gutsy kernel from yesterday, attempting to burn backup.iso to a DVD using the official cdrecord I had slightly different behaviour, but I don't know if this is relevant or not:

--------------------------------------------------------------------------------
root@skynet:/tmp/tmp# cdrecord -v dev=1,0,0 -eject speed=2 -pad -audio dead_kennedys_-_viva_las_vegas.
dead_kennedys_-_viva_las_vegas.mp3 dead_kennedys_-_viva_las_vegas.wav
root@skynet:/tmp/tmp# cdrecord -v dev=1,0,0 -eject speed=2 -pad -audio dead_kennedys_-_viva_las_vegas.wav [...] the_cure_-_purple_haze.wav unknown_artist_-_the_time_of_the_turning.wav
cdrecord: No write mode specified.
cdrecord: Asuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 2.01.01a35 (i686-pc-linux-gnu) Copyright (C) 1995-2007 J??rg Schilling
TOC Type: 0 = CD-DA
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.9'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'DVDRAM GSA-H62N '
Revision : 'CL00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-R/DL sequential recording
Profile: DVD-R/DL layer jump recording
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD+RW
Profile: DVD+R
Profile: DVD+R/DL
Profile: DVD-ROM
Profile: CD-R (current)
Profile: CD-RW
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
Drive buf size : 1053696 = 1029 KB
Drive pbuf size: 1966080 = 1920 KB
Drive DMA Speed: 16756 kB/s 95x CD 12x DVD 3x BD
FIFO size : 4194304 = 4096 KB
Track 01: audio 34 MB (03:22.81) no preemp pad
Track 02: audio 63 MB (06:19.84) no preemp pad
Track 03: audio 28 MB (02:47.44) no preemp pad
Track 04: audio 41 MB (04: 04.66) no preemp pad
Track 05: audio 37 MB (03:43.26) no preemp pad
Track 06: audio 41 MB (04:05.86) no preemp pad
Track 07: audio 55 MB (05:27.57) no preemp pad
Track 08: audio 57 MB (05: 39.46) no preemp pad
Track 09: audio 76 MB (07:35.60) no preemp pad
Track 10: audio 38 MB (03:48.74) no preemp pad
Track 11: audio 33 MB (03:20.28) no preemp pad
Track 12: audio 72 MB (07: 09.68) no preemp pad
Track 13: audio 48 MB (04:45.49) no preemp pad
Track 14: audio 61 MB (06:06.49) no preemp pad
Track 15: audio 53 MB (05:18.61) no preemp pad
Track 16: audio 56 MB (05: 36.92) no preemp pad
Total size: 799 MB (79:12.90) = 356468 sectors
Lout start: 799 MB (79:14/68) = 356468 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
Disk Is not unrestricted
Disk Is not erasable
  Disk sub type: Medium Type A, high Beta category (A+) (3)
  ATIP start of lead in: -11634 (97:26/66)
  ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation

    Capacity Blklen/Sparesz. Type
           0 2048 No Media Present or Unknown Capacity
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 3378
Starting to write CD/DVD/BD at speed 4 in real SAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Turning BURN-Free off
Performing OPC...
Sending CUE sheet...
cdrecord: CUE sheet not accepted. Retrying with minimum pregapsize = 1.
cdrecord: Input/output error. send_cue_sheet: scsi sendcmd: no error
CDB: 5D 00 00 00 00 00 00 01 10 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 5D 34 02 80 26 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x26 Qual 0x00 (invalid field in parameter list) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.002s timeout 200s
cdrecord: CUE sheet still not accepted. Please try to write in RAW (-raw96r) mode.
cdrecord: Cannot send CUE sheet.
cdrecord: Could not write Lead-in.
cdrecord: faio_wait_on_buffer for writer timed out.
cdrecord: Input/output error. prevent/allow medium removal: scsi sendcmd: fatal error
CDB: 1E 00 00 00 00 00
cmd finished after 0.000s timeout 200s
cdrecord: Input/output error. start/stop unit: scsi sendcmd: fatal error
CDB: 1B 00 00 00 02 00
cmd finished after 0.000s timeout 200s
cdrecord: Cannot eject media.
Writing time: 331.809s
cdrecord: fifo had 64 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
--------------------------------------------------------------------------------

The disc didn't appear to have anything actually written to it, though. Burning the DVD image with growisofs and the gutsy kernel seemed to burn successfully, but the resulting disc was a coaster, could not be mounted subsequently either the burning machine (before or after a reboot) or on another machine.

Revision history for this message
Joe MacDonald (joeythesaint) wrote :
Revision history for this message
Joe MacDonald (joeythesaint) wrote :
Revision history for this message
Joe MacDonald (joeythesaint) wrote :
Revision history for this message
Joe MacDonald (joeythesaint) wrote :
Revision history for this message
Joe MacDonald (joeythesaint) wrote :
Revision history for this message
rock (gra-nite) wrote :

I'd say, there is a general problem with the LG GSA-H62N dvd-writer.
I've not been able to write a iso-image to a CD.
The ubuntu (feisty) provided wodim does not even start writing. Then i tried cdrtools-2.01.01a35, which start writing, but stop after 20 seconds, leaving you with a throw-me-away disc.

However, this problem is not ubuntu-specific. The situation is exactly the same with openSUSE 10.3.

Btw, i tried to connect the dvd-writer to both sata controllers integrated on my Abit KV8-max3 Mainboard. One is integrated in the VIA-chipset, the other one is a SIL 3114. Behavior is exactly the same on both controllers.

Revision history for this message
Sven Arvidsson (sa) wrote :

This upstream bug discusses the same, or at least a very similar bug,
http://bugzilla.kernel.org/show_bug.cgi?id=10743

Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this bug to the new "linux" package. However, development has already began for the upcoming Intrepid Ibex 8.10 release. It would be helpful if you could test the upcoming release and verify if this is still an issue - http://www.ubuntu.com/testing . If the issue still exists, please update this report by changing the Status of the "linux" task from "Incomplete" to "New". We appreciate your patience and understanding as we make this transition. Thanks!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

description: updated
Changed in linux:
status: Unknown → In Progress
Revision history for this message
Flavio Henrique Araque Gurgel (fhagur) wrote :

I have been watching this bug since 8.04
I have the same chipset and a Pioneer DVR-215 SATA DVD-RW. The problem is the same in 8.10, not possible to write CDs or DVDs.
Erasing a CD-RW works in 386, in x64 screwed a media.

What I have to add here is that the problem seems to be related to sata_via module. I use PC-BSD in the same machine with wodim and growisofs and both run fine with k3b as the frontend, so I'm sure it's not a hardware fault.

Since the policy now is to send it to the upstream I made contact with Tejun, he is taking care of it. The guys from Via are sending him a test board. The latest patch for 2.6.28-RC2 didn't solve it.

I'm still trying to figure out where the bug is by myself.

Revision history for this message
Flavio Henrique Araque Gurgel (fhagur) wrote :

I forgot to say that reading CDs, data DVDs and unnencripted DVDs works.
Encrypted DVDs return error from libdvdcss2. In PC-BSD it works what makes me think that it sure is a kernel module bug.

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Triaged a while ago but has not had any updated comments for quite some time. Please let us know if this issue remains in the current Ubuntu release, http://www.ubuntu.com/getubuntu/download . If the issue remains, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-triage
Changed in linux (Ubuntu):
status: Triaged → Incomplete
Changed in linux:
importance: Unknown → High
Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
Changed in linux:
status: In Progress → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.