DL385 G2 - PCI-DMA: Random memory would be DMAed
Mark suggested that I post this to the xen-devel list (I had orginally posted to xen-users):
Original post:
Quoted 15 lines
I am attempting to run Xen 3.1.1 on a HP DL385 G2 box (opteron based system), using Gentoo. The machine will boot, and I can login and edit files etc, but as soon as I do anything more intensive such as copying files off a cdrom (making me think it is a cciss driver problem) or running make, I get the following :
kernel panic not syncing: PCI-DMA: Random memory would be DMAed
Searching on this doesn't come up with much except the source code where this error message is written out. The comment there indicates there is an IOMMU problem, but I am not sure where to go from there. I am pretty sure it is not a hardware issue since, when booting with a non-xen kernel and the same file system, no problem. Anyone have any ideas or run into this problem before?
Quoted 3 lines
As a side note, I have two of these boxes which are identical, and I have successfully installed XenExpress on one of them, in the hopes of finding something there.
To answer Mark's question:
Quoted 1 line
What kernel are you using?
from gentoo: xen-sources-2.6.20-r6
Regarding the full error message, all I am getting is:
kernel panic not syncing: PCI-DMA: Random memory would be DMAed
since the machine is rebooting after that. There maybe somewhere else to get more detail, but beyond dmesg or messages I am not sure where else to look.
Zak
Quoted 6 lines · Zachary Richmond
Regarding the full error message, all I am getting is:
kernel panic not syncing: PCI-DMA: Random memory would be DMAed
since the machine is rebooting after that. There maybe somewhere else to get more detail, but beyond dmesg or messages I am not sure where else to look.
You should also get a line immediately before that saying:
"PCI-DMA: Out of SW-IOMMU space for xxx bytes at device xxx"
This message makes it clear that your swiotlb is not big enough. The default size is 2MB if your machine has less than 2GB RAM. Otherwise the default is 64MB. You can increase the swiotlb size by, for example, adding 'swiotlb=128' as a boot parameter to your dom0 kernel (the example here would set the swiotlb size to be 128MB).
Setting the parameter too small will make your system crash (as you have seen). Setting it bigger than necessary will waste memory. The optimum setting will depend on your system.
-- Keir
Quoted 18 lines · Keir Fraser
Quoted 6 lines · Zachary Richmond
Regarding the full error message, all I am getting is:
kernel panic not syncing: PCI-DMA: Random memory would be DMAed
since the machine is rebooting after that. There maybe somewhere else to get more detail, but beyond dmesg or messages I am not sure where else to look.
You should also get a line immediately before that saying:
"PCI-DMA: Out of SW-IOMMU space for xxx bytes at device xxx"This message makes it clear that your swiotlb is not big enough. The default size is 2MB if your machine has less than 2GB RAM. Otherwise the default is 64MB. You can increase the swiotlb size by, for example, adding 'swiotlb=128' as a boot parameter to your dom0 kernel (the example here would set the swiotlb size to be 128MB).
Quoted 6 lines
Setting the parameter too small will make your system crash (as you have seen). Setting it bigger than necessary will waste memory. The optimum setting will depend on your system.
-- Keir
Thanks for the tip. If Mark's suggestion doesn't work I'll have to give this a try as well, but I wasn't receiving that error message. When I looked at the source code it seems like I should be getting that error message as well, but it is a printk call which I think is sent to dmesg which is overwritten at the next boot. I guess I could boot off a cd or into a different file system to preserve dmesg if the problem persists.
Zak