Skip to contentSkip to conversation

Problem with Infiniband adapter on IBM p550

DISCUSSION Patrick Finnegan 3 participants 7 messages Oct 8, 2010 – Nov 3, 2010

lore
Share & tools
lore
#0 lore raw

I seem to be running into a problem getting a Mellanox Infinihost Infiniband adapter working on my IBM p550 (a 9113-550). I'm using Debian squeeze, and tried upgrading to the 2.6.35.7 kernel without any help.

I get the following messages in dmesg:

[    4.972548] ib_mthca: Mellanox InfiniBand HCA driver v1.0 (April 4, 
2008)
[    4.972564] ib_mthca: Initializing 0000:c1:00.0
[    4.972674] ib_mthca 0000:c1:00.0: Missing DCS, aborting.

The problem looks the same as a problem I ran into with OpenFirmware on a Sun V880, which was fixed with this patch by Dave Miller:
http://ns3.spinics.net/lists/linux-rdma/msg01779.html

I spent some time looking at the equivalent function on powerpc, but didn't a block of code that looked similar.

Any suggestions?

I have dmesg, the dev .properties from openfirmware, and lspci -v from the machine:

http://ned.rcac.purdue.edu/p550-ib/dmesg
http://ned.rcac.purdue.edu/p550-ib/ib-of-device
http://ned.rcac.purdue.edu/p550-ib/lspci-v

Pat

Signature · 2 lines
Purdue University Research Computing ---  http://www.rcac.purdue.edu/
The Computer Refuge                  ---  http://computer-refuge.org
#1 lore raw
Quoted 10 lines · Patrick Finnegan

I seem to be running into a problem getting a Mellanox Infinihost Infiniband adapter working on my IBM p550 (a 9113-550). I'm using Debian squeeze, and tried upgrading to the 2.6.35.7 kernel without any help.

I get the following messages in dmesg:

[    4.972548] ib_mthca: Mellanox InfiniBand HCA driver v1.0 (April 4, 
2008)
[    4.972564] ib_mthca: Initializing 0000:c1:00.0
[    4.972674] ib_mthca 0000:c1:00.0: Missing DCS, aborting.

Ok, so from what I can tell, the driver is unhappy because either BAR 0 hasn't been assigned a memory resource or the size doesn't match what the driver expects.

Let's see...

Quoted 6 lines

The problem looks the same as a problem I ran into with OpenFirmware on a Sun V880, which was fixed with this patch by Dave Miller:
http://ns3.spinics.net/lists/linux-rdma/msg01779.html

I spent some time looking at the equivalent function on powerpc, but didn't a block of code that looked similar.

I don't think we are hitting the same problem. I believe our code in that area differs enough.

In your lspci, however, I see:

Memory at <unassigned> (64-bit, non-prefetchable) Memory at <unassigned> (64-bit, prefetchable)

Which doesn't look good...

Quoted 12 lines

From your OF log

Any suggestions?

I have dmesg, the dev .properties from openfirmware, and lspci -v from the machine:

http://ned.rcac.purdue.edu/p550-ib/dmesg
http://ned.rcac.purdue.edu/p550-ib/ib-of-device
http://ned.rcac.purdue.edu/p550-ib/lspci-v

Pat

#2 lore raw
Quoted 5 lines

Ok, so from what I can tell, the driver is unhappy because either BAR 0 hasn't been assigned a memory resource or the size doesn't match what the driver expects.

Ooops, accidentally sent too quickly...

Quoted 1 line

From your OF log I see:

reg                     00c10000 00000000 00000000  00000000 00000000 
                        03c10010 00000000 00000000  00000000 00100000 
                        43c10018 00000000 00000000  00000000 00800000 
                        43c10020 00000000 00000000  00000000 08000000 
assigned-addresses      83c10020 00000000 e8000000  00000000 08000000 

Now, I think this is the problem.

The "assigned-addresses" property seems to indicate that the firmware only assigned BAR 4 and didn't assign anything to the other ones.

I don't know why, but it definitely looks like a firmware bug to me. On those machines, PCI resource assignment is under hypervisor control and so Linux cannot re-assign missing resources itself.

I'll see if I can find a FW person to shed some light on this.

Can you provide me (privately maybe) with the FW version on the machine ?

Cheers,
Ben.

#3 lore raw
Quoted 18 lines · Benjamin Herrenschmidt
Quoted 3 lines

Ok, so from what I can tell, the driver is unhappy because either BAR 0 hasn't been assigned a memory resource or the size doesn't match what the driver expects.

Ooops, accidentally sent too quickly...

Quoted 1 line

From your OF log I see:

reg                     00c10000 00000000 00000000  00000000 00000000
                        03c10010 00000000 00000000  00000000 00100000
                        43c10018 00000000 00000000  00000000 00800000
                        43c10020 00000000 00000000  00000000 08000000
assigned-addresses      83c10020 00000000 e8000000  00000000 08000000

Now, I think this is the problem.

The "assigned-addresses" property seems to indicate that the firmware only assigned BAR 4 and didn't assign anything to the other ones.

Quoted 8 lines

I don't know why, but it definitely looks like a firmware bug to me. On those machines, PCI resource assignment is under hypervisor control and so Linux cannot re-assign missing resources itself.

I'll see if I can find a FW person to shed some light on this.

Can you provide me (privately maybe) with the FW version on the machine ?

Ben,

Have you found out anything more on this (firmware) bug?

Pat

Signature · 2 lines
Purdue University Research Computing ---  http://www.rcac.purdue.edu/
The Computer Refuge                  ---  http://computer-refuge.org
#4 lore raw

Hi,

Quoted 10 lines
Quoted 10 lines

Now, I think this is the problem.

The "assigned-addresses" property seems to indicate that the firmware only assigned BAR 4 and didn't assign anything to the other ones.

I don't know why, but it definitely looks like a firmware bug to me. On those machines, PCI resource assignment is under hypervisor control and so Linux cannot re-assign missing resources itself.

Quoted 8 lines
Quoted 4 lines

I'll see if I can find a FW person to shed some light on this.

Can you provide me (privately maybe) with the FW version on the machine ?

Ben,

Have you found out anything more on this (firmware) bug?

Firmware has the concept of "super slots" which allow larger memory windows and TCE tables. Section 3.4.3 explains it:

http://www.redbooks.ibm.com/redpapers/pdfs/redp4095.pdf

Anton

#6 lore raw
In reply to Patrick Finnegan
Quoted 4 lines · Patrick Finnegan
Quoted 4 lines

I don't know why, but it definitely looks like a firmware bug to me. On those machines, PCI resource assignment is under hypervisor control and so Linux cannot re-assign missing resources itself.

Quoted 8 lines
Quoted 4 lines

I'll see if I can find a FW person to shed some light on this.

Can you provide me (privately maybe) with the FW version on the machine ?

Ben,

Have you found out anything more on this (firmware) bug?

No, not yet. Let me ping some folks again.

Cheers,
Ben.

#5 lore raw
In reply to Anton Blanchard
Quoted 4 lines · Anton Blanchard

Firmware has the concept of "super slots" which allow larger memory windows and TCE tables. Section 3.4.3 explains it:

http://www.redbooks.ibm.com/redpapers/pdfs/redp4095.pdf

Aha! I tried moving the adapter from slot C3 to C5, which is listed in that guide, and now it's working.

Thanks for the pointer!

Pat

Signature · 2 lines
Purdue University Research Computing ---  http://www.rcac.purdue.edu/
The Computer Refuge                  ---  http://computer-refuge.org