Skip to contentSkip to conversation

DL385 G2 - PCI-DMA: Random memory would be DMAed

DISCUSSION Zachary Richmond 5 participants 9 messages Oct 18, 2007 – Oct 19, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines

To answer Mark's question:

Quoted 1 line

What kernel are you using?

from gentoo: xen-sources-2.6.20-r6

Quoted 7 lines

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.

For some reason, your kernel is running with pci-gart.c enabled, and dom0 is trying to allocate DMA through the AGP GART in your AMD64 processor's Northbridge. I didn't think Xen supported pci-gart, but maybe I missed a changeset.

At any rate, passing iommu=soft should disable the pci-gart and allow you to use bounce buffering. Hopefully, that should clear up your problem.

-Mark Langsdorf
Operating System Research Center
AMD

#2 lore raw

Thanks for chiming in Mark, I was at a loss to suggest something specific!

Quoted 5 lines

For some reason, your kernel is running with pci-gart.c enabled, and dom0 is trying to allocate DMA through the AGP GART in your AMD64 processor's Northbridge. I didn't think Xen supported pci-gart, but maybe I missed a changeset.

Maybe a Gentoo-specific patch?

Quoted 3 lines

At any rate, passing iommu=soft should disable the pci-gart and allow you to use bounce buffering. Hopefully, that should clear up your problem.

If it does fix it, I'd suggest reporting it to the package maintainer.

Cheers,
Mark

Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
#3 lore raw
In reply to Langsdorf, Mark
Quoted 18 lines · Mark
Quoted 4 lines

To answer Mark's question:

Quoted 1 line

What kernel are you using?

Quoted 8 lines

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.

For some reason, your kernel is running with pci-gart.c
enabled, and dom0 is trying to allocate DMA through the
AGP GART in your AMD64 processor's Northbridge. I didn't think Xen supported pci-gart, but maybe I missed a changeset.

Quoted 10 lines

At any rate, passing iommu=soft should disable the pci-gart and allow you to use bounce buffering. Hopefully, that should clear up your problem.

-Mark Langsdorf
Operating System Research Center
AMD

Unfortunately I am still having the problem. Having booted off a cd to preserve log files a quick grep on dmesg shows:

PCI-DMA: Using software bounce buffering for IO (SWIOTLB)

So it is enabled, but still the kernel panic. Any other ideas on where to poke around?

Thanks,

Zak

#4 lore raw
Quoted 8 lines · Zachary Richmond

Unfortunately I am still having the problem. Having booted off a cd to preserve log files a quick grep on dmesg shows:

PCI-DMA: Using software bounce buffering for IO (SWIOTLB)

So it is enabled, but still the kernel panic. Any other ideas on where to poke
around?

Have you increased the swiotlb size yet?

K.

#5 lore raw
Quoted 7 lines · Keir Fraser
Quoted 3 lines · Zachary Richmond

Unfortunately I am still having the problem. Having booted off a cd to preserve log files a quick grep on dmesg shows:

Quoted 9 lines
Quoted 4 lines

PCI-DMA: Using software bounce buffering for IO (SWIOTLB)

So it is enabled, but still the kernel panic. Any other ideas on where to poke around?

Have you increased the swiotlb size yet?

K.

No, but my system on has 2GB for now. I am however trying it now.

Zak

#6 lore raw
Quoted 6 lines · Zachary Richmond
Quoted 4 lines

Have you increased the swiotlb size yet?

K.

No, but my system on has 2GB for now. I am however trying it now.

Hence you only have a 2MB swiotlb by default. If your block driver cannot address 2GB (and some controllers can't) then you'll be hitting the swiotlb hard. Try swiotlb=16.

-- Keir

#7 lore raw
In reply to Zachary Richmond
Quoted 13 lines · Zachary Richmond
Quoted 12 lines · Keir Fraser
Quoted 7 lines · Zachary Richmond

Unfortunately I am still having the problem. Having booted off a cd to preserve log files a quick grep on dmesg shows:

PCI-DMA: Using software bounce buffering for IO (SWIOTLB)

So it is enabled, but still the kernel panic. Any other ideas on where to poke around?

Quoted 9 lines
Quoted 4 lines

Have you increased the swiotlb size yet?

K.

No, but my system on has 2GB for now. I am however trying it now.

Zak

I set swiotlb=64, rebooted. As a quick test, I am now joyfully compiling a kernel (after a clean) while running on my dom0 kernel. I'll have to do a few more tests, but since I am running gentoo I will have a bit more compiling to do. My guess is that the default swiotlb value is something else. Per Mark Williamson's suggestion earlier I'll have to let the package maintainer know about this, and likely add this to http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo.

Quoted 1 line

Try swiotlb=16.

For now I'll probably keep it at 64 for now since I will be adding more memory later. In the meantime I'll have to read up more on the various parameters to be able to fine tune the systems.

Thanks for all the help,

Zak

#8 lore raw
In reply to Zachary Richmond
Quoted 1 line
Quoted 1 line

I am attempting to run Xen 3.1.1 on a HP DL385 G2 box (opteron

based

Quoted 1 line
Quoted 1 line

system), using Gentoo. The machine will boot, and I can login and

edit

Quoted 1 line
Quoted 1 line

files etc, but as soon as I do anything more intensive such as

copying

Quoted 6 lines
Quoted 1 line

files off a cdrom (making me think it is a cciss driver problem) or

running

Quoted 4 lines

make, I get the following :

kernel panic not syncing: PCI-DMA: Random memory would be DMAed

FWIW, I am running Xen 3.1.0 with a Debian Etch Dom0 on a DL385G2 in a production environment without any issues at all...

James