On Thu, Feb 25, 2010 at 2:37 PM, Dries Kimpe <dki...@mcs.anl.gov> wrote:
>
> * Hal Rosenstock <hal.rosenst...@gmail.com> [2010-02-25 09:45:04]:
>
>> The link won't renegotiate automatically. The link needs to be reset
>> after updating the speed/width enabled values. Was that done ?
>
> I assumed OpenSM was resetting the link. Are you saying I need to run
> ibportstate reset in addition to running a modified opensm?

Yes.

> (Or, using only ibportstate using ibportstate speed followed by a
> ibportstate reset?)

That's another alternative (to using the modified opensm to change the
speed/width.

>> > - Is there another way to get what I want (control over link width+speed)?
>
>> The latest ibportstate can do this.
>
> I installed the latest version, and it indeed has width and speed.
> However, it doesn't seem to have any effect:
>
>
> [dki...@f28]~% sudo /usr/sbin/ibportstate 232 1 query
> PortInfo:
> # Port info: Lid 232 port 1
> LinkState:.......................Active
> PhysLinkState:...................LinkUp
> LinkWidthSupported:..............1X or 4X
> LinkWidthEnabled:................1X or 4X
> LinkWidthActive:.................4X
> LinkSpeedSupported:..............2.5 Gbps or 5.0 Gbps or 10.0 Gbps
> LinkSpeedEnabled:................2.5 Gbps or 5.0 Gbps or 10.0 Gbps
> LinkSpeedActive:.................10.0 Gbps
>
> [dki...@f28]~% sudo /usr/sbin/ibportstate 232 1 speed 1
> Initial PortInfo:
> # Port info: Lid 232 port 1
> LinkSpeedEnabled:................2.5 Gbps or 5.0 Gbps or 10.0 Gbps
>
> After PortInfo set:
> # Port info: Lid 232 port 1
> LinkSpeedEnabled:................2.5 Gbps
> [dki...@f28]~% sudo /usr/sbin/ibportstate 232 1 query
> PortInfo:
> # Port info: Lid 232 port 1
> LinkState:.......................Active
> PhysLinkState:...................LinkUp
> LinkWidthSupported:..............1X or 4X
> LinkWidthEnabled:................1X or 4X
> LinkWidthActive:.................4X
> LinkSpeedSupported:..............2.5 Gbps or 5.0 Gbps or 10.0 Gbps
> LinkSpeedEnabled:................2.5 Gbps
> LinkSpeedActive:.................10.0 Gbps
>
> [dki...@f28]~% sudo /usr/sbin/ibportstate 232 1 reset
> ibportstate: iberror: failed: smp query nodeinfo: Node type not switch

You need to reset the peer switch port to get the link to renegotiate.
Hopefully then you'll see the correct values for active.

-- Hal

>  Thanks,
>  Dries
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to