WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Re: calculating the needed swiotlb in dom0

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: calculating the needed swiotlb in dom0
From: "Christopher Isip" <cmisip@xxxxxxxxx>
Date: Thu, 29 May 2008 21:18:17 -0400
Delivery-date: Thu, 29 May 2008 18:18:49 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=rnZGNo311vw2g8nn9qvinPw+9gpOU8w0GzS6jAd1BiY=; b=YWRHxzgRPzIrAjOUUOv1zwkxti3eKhvq05h+AicJiE3mxT7geZg4YmMOf6OWHozMjE5oPjQlp6l4aZaCJDoxZTT9AWrNFKSxkam7OLEP1sL6q2vFGXdI84vxkdrM4VyjmEXsvFpS0ozUfJqfX5G/LgFDl+tNkm0+aLVW5NUJTXc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ZivIr8e8cQM0WdxMbNLTCAXCp1TOkw4gcwVr+mmFByArfQbrT9fem9dGtxaYmTGzzun9+LXgRDMJbcCshV2kI+CIGCTlf+L0DVxC66hvRBZL7nWdZmSuncny9SHOgMhzxe01SzaPJ0oEG9xyQhl89myLb16ITxgQ67b9yvHhyDM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4bca5f6c0805282014p133a2c0ekcfb67de127759673@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4bca5f6c0805280530m2c791ed3v448a18e8c9528444@xxxxxxxxxxxxxx> <4bca5f6c0805282014p133a2c0ekcfb67de127759673@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx



On Wed, May 28, 2008 at 11:14 PM, Christopher Isip <cmisip@xxxxxxxxx> wrote:


On Wed, May 28, 2008 at 8:30 AM, Christopher Isip <cmisip@xxxxxxxxx> wrote:
I just found out that setting swiotlb=128 in dom0 grub.conf allowed me to run my mythtv domU with additonal options to ivtv:
in /etc/modprobe.d/options
options ivtv enc_mpg_buffers=8

Setting this to any higher value causes a kernel panic.   I want to be able to specify
options ivtv enc_mpg_buffers=16 enc_vbi_buffers=8

How much swiotlb do I need? Is there a way to figure this out or is it just trial and error.

Thanks
Chris



After a bunch of trials, I managed to get mythtv to boot without SW-IOMMU errors and without  kernel panic with the ivtv options set at " options ivtv enc_mpg_buffers=16 enc_vbi_buffers=8" .  I had to specify on the kernel line in dom0's grub.conf : swiotlb=256 and then in the myth domU's grub.conf : swiotlb=128,force.

It would probably work with the dom0 grub swiotlb set at 128 only although I haven't tried that yet.

Hopefully, this will get rid of a bunch of ivtv buffer errors in dmesg.

Thanks
Chris


Well, this afternoon, I decided to work on the xen server directly instead of using ssh through my laptop.  I was suprised to see kernel panics and SW-IOMMU out of space errors again.  I  tried all different configurations I tried last night to no avail.  After about an hour of trying , I thought to myself that the only thing different that I am doing today is that I am not using ssh to connect to the xen server.  I went back upstairs and connected through ssh,  put in the configurations that I knew worked last night, rebooted, reconnected and restarted the mythtv domU and it worked.  I think this is a good bit of information to know that might help anyone else trying to setup a mythtv xen domU.  For some reason, logging in to a machine  physically, causes the SW-IOMMU space to be used.   Perhaps somebody else could enlighten me on what is happening here.

Thanks
Chris
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>