From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 24 07:14:54 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEF0316A400 for ; Mon, 24 Apr 2006 07:14:54 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30314.mail.mud.yahoo.com (web30314.mail.mud.yahoo.com [68.142.201.232]) by mx1.FreeBSD.org (Postfix) with SMTP id 65B1343D45 for ; Mon, 24 Apr 2006 07:14:54 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 4679 invoked by uid 60001); 24 Apr 2006 07:14:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SvpxXoWYIgyYQqW4Jo4mRfxM5d5NuCf+LXUhxewmv3D3JgramGTZkA7M7werRHQs+H4Qb4y6dH/5mDfmcnPCfdBtszHHiqFVMyqcsV/Axcs+CFzHiU5ZOHU/+7XaEiZvCriUnDPco13laa6lhZbEV7MWJqVCp56ZchVajEfvNDs= ; Message-ID: <20060424071453.4677.qmail@web30314.mail.mud.yahoo.com> Received: from [213.54.80.26] by web30314.mail.mud.yahoo.com via HTTP; Mon, 24 Apr 2006 00:14:53 PDT Date: Mon, 24 Apr 2006 00:14:53 -0700 (PDT) From: "R. B. Riddick" To: Erin E Conn In-Reply-To: <444C25D7.9050600@nc.rr.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1614268909-1145862893=:4385" Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Rebooting problems with /dev/cxm0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 07:14:54 -0000 --0-1614268909-1145862893=:4385 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline --- Erin E Conn wrote: > After some rebuilding and reinstalling of ports, I was able to cat > /dev/cxm0 to a file in my home directory for about half an hour with no > dma errors or lockups. I then stopped the cat and tried 'mplayer -cache > 4096 /dev/cxm0', and my machine locked up after about 2 minutes. The > display continues to update; my dockapps in fluxbox are still > functioning and updating, but the machine does not respond to any > network traffic or input devices and the video and audio from /dev/cxm0 > have halted. Nothing is being logged to /var/log/messages at the time. I > tried it again while keeping an eye on the console in case there are dma > problems preventing anything being written to the log: > > cxm0:encoder dma status 0xb > # MACHINE STOPPED RESPONDING HERE > cmx0:encoder dma status 0xb > ad0: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=22069947 > ad0: TIMEOUT - WRITE_DMA retrying (0 retries left) LBA=22069947 > dc0: watchdog timeout > dc0: failed to force tx and rx to idle state > ad0: FAILURE - WRITE_DMA timed out LBA=22069947 > ad0: FAILURE - READ_DMA timed out LBA=20487259 > > The above messages continue to be output to the console and I have to > manually restart the computer. > That sounds familiar... :-) I attached a variation of my very special cxm-data-transfer-program, that just copies the data to your disc (hopefully in the right order... :-)). After examining some areas of the code (just in case I am evil), it can be compiled with c++ -o dd3 dd3.c -O3 and it can be tested with ./dd3 /dev/cxm0