From owner-freebsd-current@FreeBSD.ORG Sat Aug 28 17:30:10 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBA0110656AC for ; Sat, 28 Aug 2010 17:30:10 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (hergotha.csail.mit.edu [66.92.79.170]) by mx1.freebsd.org (Postfix) with ESMTP id 7E8FB8FC16 for ; Sat, 28 Aug 2010 17:30:10 +0000 (UTC) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.14.4/8.14.4) with ESMTP id o7SHU9Io008672 for ; Sat, 28 Aug 2010 13:30:09 -0400 (EDT) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.14.4/8.14.4/Submit) id o7SHU9nn008669; Sat, 28 Aug 2010 13:30:09 -0400 (EDT) (envelope-from wollman) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19577.18337.120013.129482@hergotha.csail.mit.edu> Date: Sat, 28 Aug 2010 13:30:09 -0400 From: Garrett Wollman To: current@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 22) "Instant Classic" XEmacs Lucid X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (hergotha.csail.mit.edu [127.0.0.1]); Sat, 28 Aug 2010 13:30:09 -0400 (EDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hergotha.csail.mit.edu Cc: Subject: Difficulty playing DVDs under AHCI/CAM? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 17:30:11 -0000 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,0x7fffffffb410) 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,0x7fffffffac30) 8469 initial thread RET ioctl 0 8469 initial thread CALL ioctl(0x3,DVDIOCREPORTKEY,0x7fffffffb430) 8469 initial thread RET ioctl 0 ...so two DVD-specific ioctl calls succeed... 8469 initial thread CALL open(0x7fffffffbcd0,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,0x7fffffffb4d0,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,0x80000,SEEK_SET) 8469 initial thread RET lseek 524288/0x80000 8469 initial thread CALL read(0x3,0x7fffffff6000,0x800) 8469 initial thread RET read -1 errno 6 Device not configured 8469 initial thread CALL write(0x2,0x7fffffffb2b0,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