Re: Difficulty playing DVDs under AHCI/CAM?
< said: > Not sure if debugging with CAMDEBUG would be easier or not. > There could be lots of output. I never found out, as once I rebooted with the new CAMDEBUG-ified kernel, everything started working. No idea why. (Maybe the DVD player just wanted to be rebooted with a disc in it?) -GAWollman ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Difficulty playing DVDs under AHCI/CAM?
on 01/09/2010 21:21 Garrett Wollman said the following: > < said: > >> Just want to draw attention of those who use ahci, have hald running and burn >> optical media to couple of known issues: > > What about those of us who use ahci, don't have hald running, and just > want to read their DVDs? I am not aware of any known but not resolved issues in this context. But I think that I gave you a good advice. > I never heard any response from you when I > asked for a more specific debugging procedure. Sorry about that, forgot to tell you about google. Now, apologies about the joke, no offense meant :-) These links should give a good overview for the start: http://wiki.freebsd.org/DTrace http://wiki.freebsd.org/DTrace/Examples http://www.freebsd.org/doc/handbook/dtrace.html http://wikis.sun.com/display/DTrace/Documentation And, oh, here is a script that I used to investigate a somewhat similar problem with failing ioctl. I think you should be able to easily adapt it to your needs. syscall::ioctl:entry /execname == "k3b" && arg1 == 3299349762/ { self->trace = 1; } fbt:::entry /self->trace/ { } fbt:::return /self->trace/ { printf("%d", arg1); } syscall::ioctl:return { self->trace = 0; } > My next step was going > to be enabling CAMDEBUG and trying to find out which specific > operation was failing, but I'm not a SCSI expert by any means Not sure if debugging with CAMDEBUG would be easier or not. There could be lots of output. -- Andriy Gapon ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Difficulty playing DVDs under AHCI/CAM?
< said: > Just want to draw attention of those who use ahci, have hald running and burn > optical media to couple of known issues: What about those of us who use ahci, don't have hald running, and just want to read their DVDs? I never heard any response from you when I asked for a more specific debugging procedure. My next step was going to be enabling CAMDEBUG and trying to find out which specific operation was failing, but I'm not a SCSI expert by any means -GAWollman ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Difficulty playing DVDs under AHCI/CAM?
Just want to draw attention of those who use ahci, have hald running and burn optical media to couple of known issues: 1. http://thread.gmane.org/gmane.os.freebsd.devel.gnome/29636/focus=29652 2. http://thread.gmane.org/gmane.os.freebsd.devel.scsi/5128 3. k3b (and k3b-kde4) has a bug in its internal code which results in incorrect SCSI command(s) that may confuse some drive models at device or media probing stage. -- Andriy Gapon ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Difficulty playing DVDs under AHCI/CAM?
On Sun, 29 Aug 2010, Buganini wrote: BTW, it seems that DVD burning with ahci is broken, burning a CD is okay, but I never burn a DVD sucessfully with ahci. Always get somethings like "unable to wr...@60h input/output error" and many "(cd0:ahcich2:0:0:0): SCSI sense: ILLEGAL REQUEST csi:43,0,0,c asc:24,0 (Invalid field in CDB): Command byte 6 is invalid" in dmesg, With ahci unloaded, I see "(cd0:ata4:0:0:0): SCSI sense: ILLEGAL REQUEST csi:43,0,0,c asc:24,0 (Invalid field in CDB): Command byte 6 is invalid" once, but it works. But I can read data DVD with ahci and sucessfully verify data with diff. While I have not had time to narrow it down, I have also had problems with burning DVD+R on my drive (LITE-ON DVDRW LH-20A1S 9L09) with the ahci driver on 8-STABLE using cdrecord. However, CD-RW's and DVD+RW's are not a problem. At the beginning of a failed burn, it seems like there is a short pause near the beginning (maybe after a block or two has been written, but I do not recall). If I find time, I will try again to burn a disc along with collecting all the debugging information I can. One thing I need to try, and you may too, is to see if there are any firmware updates for the drive. I see there is one for mine which I will try. Unfortunately, it does not say on the site what it improves unless the "Match more media" is it. Sean -- s...@freebsd.org ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Difficulty playing DVDs under AHCI/CAM?
On Sun, 29 Aug 2010 09:40:04 + Buganini wrote: > BTW, it seems that DVD burning with ahci is broken, > burning a CD is okay, but I never burn a DVD sucessfully with ahci. > Always get somethings like "unable to wr...@60h input/output error" > and many "(cd0:ahcich2:0:0:0): SCSI sense: ILLEGAL REQUEST > csi:43,0,0,c asc:24,0 (Invalid field in CDB): Command byte 6 is > invalid" > in dmesg, > > With ahci unloaded, I see "(cd0:ata4:0:0:0): SCSI sense: ILLEGAL > REQUEST csi:43,0,0,c asc:24,0 (Invalid field in CDB): Command byte 6 > is invalid" once, but it works. > > But I can read data DVD with ahci and sucessfully verify data with diff. > I've been using ahci for a long time (-current) and have absolutely no problem burning CDs/DVDs with xfburner. -- Gary Jennejohn ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Difficulty playing DVDs under AHCI/CAM?
BTW, it seems that DVD burning with ahci is broken, burning a CD is okay, but I never burn a DVD sucessfully with ahci. Always get somethings like "unable to wr...@60h input/output error" and many "(cd0:ahcich2:0:0:0): SCSI sense: ILLEGAL REQUEST csi:43,0,0,c asc:24,0 (Invalid field in CDB): Command byte 6 is invalid" in dmesg, With ahci unloaded, I see "(cd0:ata4:0:0:0): SCSI sense: ILLEGAL REQUEST csi:43,0,0,c asc:24,0 (Invalid field in CDB): Command byte 6 is invalid" once, but it works. But I can read data DVD with ahci and sucessfully verify data with diff. --Buganini On Sat, Aug 28, 2010 at 5:41 PM, Garrett Wollman wrote: > In article <4c79499b.3050...@icyb.net.ua> a...@icyb.net.ua writes: >>> [I wrote:] >>> ...say what? Why is the cd driver suddenly returning ENXIO? >> >>Strange indeed. >>Can you dtrace this read? You can use combination of syscall and fbt >>providers >>with execname predicate. > > You're going to have to be much much more specific than that. > > -GAWollman > > ___ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" > ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Difficulty playing DVDs under AHCI/CAM?
In article <4c79499b.3050...@icyb.net.ua> a...@icyb.net.ua writes: >> [I wrote:] >> ...say what? Why is the cd driver suddenly returning ENXIO? > >Strange indeed. >Can you dtrace this read? You can use combination of syscall and fbt providers >with execname predicate. You're going to have to be much much more specific than that. -GAWollman ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Difficulty playing DVDs under AHCI/CAM?
on 28/08/2010 20:30 Garrett Wollman said the following: > After a recent upgrade, I switched to AHCI/CAM for my SATA devices, > including a new DVD drive. Now I find that nothing can play DVDs any > more. For example, here's what mplayer does: [snip] > 8469 initial thread CALL close(0x4) > 8469 initial thread RET close 0 > 8469 initial thread CALL read(0x3,0x7fffb4d0,0x800) > 8469 initial thread RET read -1 errno 6 Device not configured > > ...say what? Why is the cd driver suddenly returning ENXIO? Strange indeed. Can you dtrace this read? You can use combination of syscall and fbt providers with execname predicate. -- Andriy Gapon ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Difficulty playing DVDs under AHCI/CAM?
After a recent upgrade, I switched to AHCI/CAM for my SATA devices, including a new DVD drive. Now I find that nothing can play DVDs any more. For example, here's what mplayer does: 8469 initial thread CALL open(0x806c25450,O_RDONLY,0) 8469 initial thread NAMI "/dev/cd0" 8469 initial thread RET open 3 8469 initial thread CALL fstat(0x3,0x7fffb410) 8469 initial thread STRU struct stat {dev=50396928, ino=89, mode=crw-r- , nlink=1, uid=0, gid=5, rdev=89, atime=1282953341.461532000, stime=1282953341.461532000, ctime=1282953341.461532000, birthtime=-1, size=0, blksize=4096, blocks=0, flags=0x0 } 8469 initial thread RET fstat 0 8469 initial thread CALL ioctl(0x3,DVDIOCREADSTRUCTURE,0x7fffac30) 8469 initial thread RET ioctl 0 8469 initial thread CALL ioctl(0x3,DVDIOCREPORTKEY,0x7fffb430) 8469 initial thread RET ioctl 0 ...so two DVD-specific ioctl calls succeed... 8469 initial thread CALL open(0x7fffbcd0,O_RDWR|O_CREAT,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) 8469 initial thread NAMI "/home/wollman/.dvdcss/CACHEDIR.TAG" 8469 initial thread RET open 4 ...write to this file omitted for clarity... 8469 initial thread CALL close(0x4) 8469 initial thread RET close 0 8469 initial thread CALL read(0x3,0x7fffb4d0,0x800) 8469 initial thread RET read -1 errno 6 Device not configured ...say what? Why is the cd driver suddenly returning ENXIO? 8469 initial thread CALL lseek(0x3,0,SEEK_SET) 8469 initial thread RET lseek 0 8469 initial thread CALL lseek(0x3,0x8,SEEK_SET) 8469 initial thread RET lseek 524288/0x8 8469 initial thread CALL read(0x3,0x7fff6000,0x800) 8469 initial thread RET read -1 errno 6 Device not configured 8469 initial thread CALL write(0x2,0x7fffb2b0,0x43) 8469 initial thread GIO fd 2 wrote 67 bytes "libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed " Same results (but without error messages) in vlc. My drive is identified as: at scbus0 target 0 lun 0 (pass0,cd0) -GAWollman ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"