[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] Can I specify a physical memory region for a domU
- To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
- From: Eric Camachat <eric.camachat@xxxxxxxxx>
- Date: Thu, 8 Sep 2011 17:15:06 -0700
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
- Delivery-date: Thu, 08 Sep 2011 17:16:28 -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=16XPGgNwYyXXJ35BoYrKux0v9JNi6/XsYE4+6C9KR0s=; b=s3i8yxlinPDLBqxSzYsEolanjOjN72xLoYsJDXpFjWU/5j6GiWS+9oUpD0PRkmvTBZ KQos76FDO1g/s2tRdViftDnk+K4GpnaVDQNiVb6+6dvd+xlXSbSoMjij4QGaOoUaal3c Xh/GPYPFPTcJtj+irOA9AtE/vglQdUyyjEzFQ=
- List-id: Xen developer discussion <xen-devel.lists.xensource.com>
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(),
pci_set_consistent_dma_mask() and dma_set_mask() all succeeded.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel