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-devel

Re: [Xen-devel] Nouveau on dom0

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Nouveau on dom0
From: Arvind R <arvino55@xxxxxxxxx>
Date: Sun, 7 Mar 2010 05:26:12 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 06 Mar 2010 15:57:03 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=jiHvFZCUCrR4qo3rIJ6l7j4hrdw7rJA8XLqlicjZ3E4=; b=j6PVJzagWwd7SlwppVFwCmu+rnemT7BJ6PH1Gby05Nk2rxYGs2QA6aY80LuekJ3sZT U3652LSWS2Izg0+C0P291q3/s2lTCAr4EddwLThlXXYyWfgv48ObnbDXn9oNeZLOvcLA s9TdQ87UfymKmdpOfKG0J8tD63oM0UNLho8JU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Ippt0tco86aHG14xMSsBSxCQi97TvVXLryRrkEv8sx1g/CZmC6iDjFG6c65A9ffQWu dgyGC8OL/Yb2978QyDrGC3k9r0NxXQ1EmrJ8klUDtWirOunm6Sul3PI1zHYClc6BqDZF cHJepk2vaSfy0NhRwhfsTqMxT3TS8qT5i5xPE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d799c4761003061259u1c8986e9j4ef1e84e1ee8e7df@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <d799c4761002250901g6029a69et21fcf1d8556f047@xxxxxxxxxxxxxx> <d799c4761003021334t58815ed3p96dc343635b2da2c@xxxxxxxxxxxxxx> <d799c4761003030911l51013f07mc1bf4aa15df519c4@xxxxxxxxxxxxxx> <20100303181303.GA21078@xxxxxxxxxxxxxxxxxxx> <d799c4761003040117g1c5c072v8a996b6f9af1fb32@xxxxxxxxxxxxxx> <20100304182518.GB20263@xxxxxxxxxxxxxxxxxxx> <d799c4761003042346k1bc2477mb7711927ea54fb7a@xxxxxxxxxxxxxx> <20100305202309.GA15454@xxxxxxxxxxxxxxxxxxx> <d799c4761003060016o292a5874s91d729893db465c6@xxxxxxxxxxxxxx> <d799c4761003061259u1c8986e9j4ef1e84e1ee8e7df@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, Mar 7, 2010 at 2:29 AM, Arvind R <arvino55@xxxxxxxxx> wrote:
> On Sat, Mar 6, 2010 at 1:46 PM, Arvind R <arvino55@xxxxxxxxx> wrote:
>> On Sat, Mar 6, 2010 at 1:53 AM, Konrad Rzeszutek Wilk
>> <konrad.wilk@xxxxxxxxxx> wrote:
>>> On Fri, Mar 05, 2010 at 01:16:13PM +0530, Arvind R wrote:
>>>> On Thu, Mar 4, 2010 at 11:55 PM, Konrad Rzeszutek Wilk
>>>> <konrad.wilk@xxxxxxxxxx> wrote:
>>>> > On Thu, Mar 04, 2010 at 02:47:58PM +0530, Arvind R wrote:
>>>> >> On Wed, Mar 3, 2010 at 11:43 PM, Konrad Rzeszutek Wilk
>>>> >> <konrad.wilk@xxxxxxxxxx> wrote:

>>> (FYI, look at
>>> http://git.kernel.org/?p=linux/kernel/git/konrad/xen.git;a=commit;h=e84db8b7136d1b4a393dbd982201d0c5a3794333)

THAT SOLVED THE FAULTING; OUT_RING now completes under Xen.

My typo and testing mistakes.
Patched ttm_bo_mmap
vma->vm_flags |= VM_RESERVED | VM_MIXEDMAP | VM_DONTEXPAND;
if (bo->type != ttm_bo_type_device)
     vma->vm_flags |= VM_IO;

Then, put sleep and exit in libdrm OUT_RING.
The fault-handler worked fine!

One question - How to get DMA addresses for user-buffers under Xen.
Will work on that.

HUGE THANKS!

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel