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] Can I specify a physical memory region for a domU

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Can I specify a physical memory region for a domU
From: Eric Camachat <eric.camachat@xxxxxxxxx>
Date: Fri, 9 Sep 2011 09:10:53 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 09 Sep 2011 09:11:51 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=SYU0MAD5lBZ1uzLiNaCOFGbe/lxe7F/ReMLWlicC45M=; b=J5bK0JEApdB+cmHt4k7U9+iQs2cQQAOR71F4wx/Ldr9X7rYM4KNrojcjZVTYTdfFqH 3DqUEfZ1XHcGQfmbmpYvVmwwxqJE6ncKdnABrvFacLUhBGRPNs7ODAIJBjwcERwxQCuA 8ziFoO3sUhuBswNUcwW477O/Hw51CaaYKe3hs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110909010550.GB9060@xxxxxxxxxxxx>
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: <CACeEFf6dh0AZ2Py2a3YWtGkQoHmVWMehFgz52tUBNJ80d+n7HQ@xxxxxxxxxxxxxx> <20110908125920.GC28591@xxxxxxxxxxxx> <CACeEFf7kH0K1k3_g2bMXkV8_5zMuEJ94bUcWLzDEwUorXtgigA@xxxxxxxxxxxxxx> <20110908181205.GA19078@xxxxxxxxxxxx> <CACeEFf4DPzaO9ETHKXg5GAyr4YJmpuHx+0EK_ONR3758w=FCbA@xxxxxxxxxxxxxx> <20110908200038.GB21186@xxxxxxxxxxxx> <CACeEFf7_5XK7YzCaEaickhu5KmKDsQ9LxibeZ4acFq2+7D2SkQ@xxxxxxxxxxxxxx> <20110909010550.GB9060@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Sep 8, 2011 at 6:05 PM, Konrad Rzeszutek Wilk
<konrad.wilk@xxxxxxxxxx> wrote:
> On Thu, Sep 08, 2011 at 05:15:06PM -0700, Eric Camachat wrote:
>> On Thu, Sep 8, 2011 at 1:00 PM, Konrad Rzeszutek Wilk
>> <konrad.wilk@xxxxxxxxxx> wrote:
>> >> > Make sure you set
>> >> >  pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(31));
>> >> >
>> >> > on top of pci_set_dma_mask(dev, DMA_BIT_MASK(31));
>> >> > in your driver.
>> >> >
>> >> A lot of work to port the driver to PV domU, hope it works.
>> >
>> > Hm? That is the normal way you would write drivers in the Linux kernel.
>> > You use the DMA API in it to deal with the PCI devices.
>> >
>> > Is the PV domU a Linux kernel or something else?
>> >
>>
>> Yes, the PV domU is linux kernel.
>>
>> I tested pci_alloc_consistent() verified on baremetal it worked with 8GB 
>> SDRAM.
>> But while I ran it in XEN, pci_alloc_consistent() cannot allocate
>> memory successfully for 4MB although pci_set_dma_mask(),
>
> And what is the error?

I cannot see any error, it just returned NULL.

>
>> pci_set_consistent_dma_mask() and dma_set_mask() all succeeded.
>
> And what kernel did you use?
I am using linux-2.6.32.24.

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

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