From: Keir Fraser Subject: Re: Oops when modprobing ivtv outside of dom0 Date: Wed, 6 Jul 2005 09:45:18 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: David Muench Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 5 Jul 2005, at 22:28, David Muench wrote: > I just tried a second time, and it took a few tries of capturing video > to crash it. But even when it didn't crash, all I got was a zero byte > file. I noticed the card was using interrupts (looking at > /proc/interrupts), and things looked ok in dmesg, but no mpeg data. > That time the domU didn't exit on it's own, but was pretty well hung > up (non-responsive other than line feeds on the console). So I tried > to xm destroy it, and that rebooted the entire box. I think the ivtv driver is probably not calculating dma addresses in the way that xen requires. On native Linux, if you allocate a multi-page chunk of physical memory, you can pass the start address of that buffer to hardware and it can dma the entire buffer given just that address. In Xen, because we give guests 'pseudo-physical' memory, that physical buffer may not be really physically contiguous. So we need drivers to dma_alloc_coherent or pci_alloc_consistent the memory they will use for dma --- we modified those functions to ensure they return suitable contiguous physical memory. Perhaps the developers may know where to look further. -- Keir