linux-mips
[Top] [All Lists]

Re: [BUG?] cavium cn56xx and dma_map_single warning

To: Zhuang Yuyao <mlistz@gmail.com>
Subject: Re: [BUG?] cavium cn56xx and dma_map_single warning
From: David Daney <ddaney@caviumnetworks.com>
Date: Mon, 22 Mar 2010 09:44:25 -0700
Cc: linux-mips@linux-mips.org
In-reply-to: <e732b6801003220001m7e08bbf7w20ba62d42f30a190@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <e732b6801003220001m7e08bbf7w20ba62d42f30a190@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3
On 03/22/2010 12:01 AM, Zhuang Yuyao wrote:
Hi,

I've got a strange dma error on my cavium cn56xx board.

......
dma_map_single: Warning: Mapping memory address that might conflict
with devices 0xfbb8f000-0xfbb8ffff
dma_map_single: Warning: Mapping memory address that might conflict
with devices 0xfb2ef000-0xfb2f0fff
dma_map_single: Warning: Mapping memory address that might conflict
with devices 0xfb3de000-0xfb3defff
dma_map_single: Warning: Mapping memory address that might conflict
with devices 0xfb3dd000-0xfb3ddfff
dma_map_single: Warning: Mapping memory address that might conflict
with devices 0xfac28000-0xfac29fff
dma_map_single: Warning: Mapping memory address that might conflict
with devices 0xfad1a000-0xfad1bfff
.....

this error appeared when I plugged 4G or 8G ram on the board, if there
is only 2G ram on the board, the error never happened.

an adaptec 3405 pci-e raid card is plugged on the board, and a
harddisk attached. the program i am running is a postgresql server
with more than 20 million record, so do a count(*) will let postgresql
consume almost all of the available memory. while there is 4G ram, the
'free' command reported that the free memory is below 18M.

then the error kept printing on the console for a while, then kernel panic.

the warning message is come from arch/mips/cavium-octeon/dma-octeon.c

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/mips/cavium-octeon/dma-octeon.c;h=be531ec1f2064b590b58dfe8b4db4f5534999bab;hb=HEAD

i tried several raid card from different producer, including LSI and
Adaptec. the same error always happened while there are more than or
equal to 4G memory on the board.

Would you please give some advice on this issue? any help will be appreciated.

This is a known issue.

passing mem==3072M will restrict kernel memory usage thus avoiding the issue.

David Daney




Thanks.

Zhuang Yuyao



<Prev in Thread] Current Thread [Next in Thread>