Bug 58353

Summary: Can't burn DVD media with Pioneer DVR-106 burner
Product: Base System Reporter: Simun Mikecin <sime>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.1-CURRENT   
Hardware: Any   
OS: Any   

Description Simun Mikecin 2003-10-21 22:30:08 UTC
	Burning DVD+RW media using sysutils/dvd+rw-tools port
	(dvd+rw-tools-5.12.4.7.4_1) ends successfully if I try to burn a
	file 1500 bytes long:

	# growisofs -Z /dev/cd1 -r -J small.txt
	WARNING: /dev/cd1 already carries isofs!
	About to execute 'mkisofs -r -J /etc/make.conf | builtin_dd of=/dev/pass2 obs=32k seek=0'
	Total translation table size: 0
	Total rockridge attributes bytes: 250
	Total directory bytes: 0
	Path table size(bytes): 10
	/dev/pass2: "Current Write Speed" is 2.4x1385KBps.
	Max brk space used e7c4
	48 extents written (0 Mb)
	/dev/pass2: flushing cache
	/dev/pass2: stopping de-icing
	/dev/pass2: writing lead-out

	But if I try a large file (180MB) it doesn't burn:
	# growisofs -Z /dev/cd1 -r -J large.dat
	WARNING: /dev/cd1 already carries isofs!
	About to execute 'mkisofs -r -J sol-8-u5-ia-v2.iso | builtin_dd of=/dev/pass2 obs=32k seek=0'
	/dev/pass2: "Current Write Speed" is 2.4x1385KBps.
	:-[ LBA=310h, SENSE KEY=Fh/ASC=FFh/ASCQ=FFh ]
	:-( write failed: Input/output error
	/dev/pass2: flushing cache
	/dev/pass2: stopping de-icing
	/dev/pass2: writing lead-out

	While doing that I get this in dmesg:

	(cd1:ata1:0:0:0): Recovered Sense
	(cd1:ata1:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 0 0 0 1 0
	(cd1:ata1:0:0:0): CAM Status: SCSI Status Error
	(cd1:ata1:0:0:0): SCSI Status: Check Condition
	(cd1:ata1:0:0:0): UNIT ATTENTION asc:28,0
	(cd1:ata1:0:0:0): Not ready to ready change, medium may have changed

	DVD+RW Media that I'm burning is already fully formated:

	# dvd+rw-mediainfo /dev/cd1
	INQUIRY:                [PIONEER ][DVD-RW  DVR-106D][1.07]
	GET [CURRENT] CONFIGURATION:
	 Mounted Media:         1Ah, DVD+RW
	 Current Write Speed:   2.4x1385=3324KB/s
	 Write Speed #0:        2.4x1385=3324KB/s
	READ DVD STRUCTURE[#0h]:
	 Media Book Type:       92h, DVD+RW book [revision 2]
	 Legacy lead-out at:    2295104*2KB=4700372992
	READ DISC INFORMATION:
	 Disc status:           complete
	 Number of Sessions:    1
	 State of Last Session: complete
	 Number of Tracks:      1
	 BG Format Status:      complete
	READ TRACK INFORMATION[#1]:
	 Track State:           complete
	 Track Start Address:   0*2KB
	 Free Blocks:           0*2KB
	 Track Size:            2295104*2KB
	FABRICATED TOC:
	 Track#1  :             14@0
	 Track#AA :             14@2295104
	 Multi-session Info:    #1@0

	I haven't tried other types of DVD media (DVD-RW,DVD-R or DVD+R). 
	DVD+R and DVD-R media is too expensive to make a try, and I suspect
	it will not work as long as DVD+RW writing is not working.
	Burning DVD media with growisofs (sysutils/dvd+rwtools) worked
	before ATAng commit, so I conclude it's an ATAng bug, not a
	dvd+rw-tools bug.

Fix: 

None that I know of.
How-To-Repeat: 	try to burn DVD+RW media using growisofs (sysutils/dvd+rw-tools
	port)
Comment 1 Simun Mikecin 2004-02-11 20:30:20 UTC
I think this PR should now be closed since revision 1.33 of 
sys/dev/ata/atapi-cam.c solves the problem (see kern/57606).
Comment 2 Ceri Davies freebsd_committer freebsd_triage 2004-02-11 20:43:22 UTC
State Changed
From-To: open->closed

Submitted reports this was fixed in r1.33 of sys/dev/ata/atapi-cam.c. 
Thanks for submitting the report, and following up with the resolution.