From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: A query on frame buffers Date: Fri, 7 Jan 2011 14:24:37 -0500 Message-ID: <20110107192437.GD27871@dumpdata.com> References: <20101227153011.GD3728@dumpdata.com> <1294390835.6019.218.camel@thor.local> <20110107165813.GA24320@dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from rcsinet14.oracle.com (rcsinet14.oracle.com [148.87.113.126]) by gabe.freedesktop.org (Postfix) with ESMTP id 71AA59F0E3 for ; Sat, 8 Jan 2011 08:10:01 -0800 (PST) Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by rcsinet14.oracle.com (Sentrion-MP-4.0.0/Sentrion-MP-4.0.0) with ESMTP id p07JPGFq010860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 7 Jan 2011 19:25:17 GMT Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Prasad Joshi Cc: Michel =?iso-8859-1?Q?D=E4nzer?= , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Fri, Jan 07, 2011 at 05:47:59PM +0000, Prasad Joshi wrote: > 2011/1/7 Konrad Rzeszutek Wilk : > >> > The errors > >> > > >> > [ =A0 =A03.778476] [drm:r100_ring_test] *ERROR* radeon: ring test fa= iled > >> > (sracth(0x15E4)=3D0xCAFEDEAD) > >> > [ =A0 =A03.781010] [drm:r100_cp_init] *ERROR* radeon: cp isn't worki= ng (-22). > >> > [ =A0 =A03.782542] radeon 0000:00:04.0: failled initializing CP (-22= ). > >> > [ =A0 =A03.784006] radeon 0000:00:04.0: Disabling GPU acceleration > >> > > >> > Seem to be disabling GPU functionality. For now, I am interested in > >> > Graphics functionality of the ATI card and not GPGPU functionality. > >> > > >> > I will appreciate if you can help me with some information on solving > >> > this problem. Let me know if I should be asking this question on > >> > another forum. Please keep me in CC. > >> > >> Looks like dri-devel material, added to CC. > >> > >> As a first guess, maybe the system memory pages accessed by the GPU GA= RT > >> aren't the same ones intended for this by the VM. > > > > I actually have patches for that (sorry for the late reply). > > > > Try: > > git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git devel/ttm.= pci-api.v3 > > > > But I am not sure if they would make any difference here. You said > > you are using KVM-QEMU - you must also be using an IOMMU? Does the IOMMU > > give you any errors? > > > = > Yes I want to pass-through the ATI Radeon card to VM in KVM. I have > enabled the IOMMU support and it works perfectly alright. I tried > passing through a network card it worked. > = > Should I try the patch you suggested? Go for it. I am still at lost why you would see those errors unless.. well, what is the DMA code that gets turned on when you run your guest? What do you see for 'PCI-DMA' ? Is it bounce buffer or swiotlb? How much memory do you pass to the guest? less than 4GB?