Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: nfe problem on dom0 kernel 5.99.24 [need help]



On 03/01/10 08:52, Adam Hamsik wrote:
>>>>>> If possible, boot with a xen-debug kernel, and post the xm dmesg. Failing to >>>>>> create DMA memory is likely to be due to an error returned by hypervisor.
>>>>>>
>>> [snip]
>>>
>>> Do you have any ideas how can it be debug more ?
>>>
> _xen_alloc_contig ->  uvm_pglistalloc == 0
> xen_alloc_contig: XENMEM_decrease_reservation failed: err 0 (pa 0x208f000 mfn 0x209d70)
> _xen_alloc_contig 12
>[snip]
> _xen_alloc_contig ->  uvm_pglistalloc
> _xen_alloc_contig ->  uvm_pglistalloc == 0
> xen_alloc_contig: XENMEM_decrease_reservation failed: err 0 (pa 0x2093000 mfn 0xce0f3)
> _xen_alloc_contig 12
> nfe1: could not create DMA map
> nfe1: could not allocate Tx ring

I'll have a look tomorrow at hypervisor's code.

How much RAM do you have for this host?

Could you post the result obtained with the attached patch please?

--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost
Index: arch/xen/x86/xen_bus_dma.c
===================================================================
RCS file: /cvsroot/src/sys/arch/xen/x86/xen_bus_dma.c,v
retrieving revision 1.19
diff -u -u -r1.19 xen_bus_dma.c
--- arch/xen/x86/xen_bus_dma.c  2 Mar 2010 00:13:50 -0000       1.19
+++ arch/xen/x86/xen_bus_dma.c  2 Mar 2010 00:26:21 -0000
@@ -103,6 +103,9 @@
                            "failed: err %d (pa %#" PRIxPADDR " mfn %#lx)\n",
                            error, pa, mfn);
 #endif
+                       printf("m2p: mfn %#lx pfn (xpmap) %#lx pfn %#lx\n",
+                           mfn, xpmap_mtop(mfn << PAGE_SHIFT),
+                           mfn_to_pfn(mfn));
                        xpmap_phys_to_machine_mapping[
                            (pa - XPMAP_OFFSET) >> PAGE_SHIFT] = mfn;
 


Home | Main Index | Thread Index | Old Index