Bug 1219783 - [IRDMA] irdma reporting incorrect speed
Summary: [IRDMA] irdma reporting incorrect speed
Status: NEW
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP5
Classification: openSUSE
Component: Kernel (show other bugs)
Version: unspecified
Hardware: Other SLES 15
: P5 - None : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-09 17:04 UTC by Adam Goldman
Modified: 2024-02-09 17:05 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Goldman 2024-02-09 17:04:29 UTC
grep . /sys/class/infiniband/*/ports/1/rate
/sys/class/infiniband/irdma0/ports/1/rate:100 Gb/sec (4X EDR)
/sys/class/infiniband/irdma1/ports/1/rate:100 Gb/sec (4X EDR)
grep . /sys/class/net/*/speed 2>/dev/null
/sys/class/net/eno1/speed:1000
/sys/class/net/eth1/speed:1000

For a 40g adapter the speed reported is grossly wrong.


Looks like SLES 15.5 is missing the following upstream commit:

commit 4eace75e0853273755b878ffa9cce6de84df975a
Author: Shiraz Saleem <shiraz.saleem@intel.com>
Date:   Fri Nov 4 18:49:57 2022 -0500

    RDMA/irdma: Report the correct link speed

    The active link speed is currently hard-coded in irdma_query_port due
    to which the port rate in ibstatus does reflect the active link speed.

    Call ib_get_eth_speed in irdma_query_port to get the active link speed.

    Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
    Reported-by: Kamal Heib <kamalheib1@gmail.com>
    Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
    Link: https://lore.kernel.org/r/20221104234957.1135-1-shiraz.saleem@intel.com
    Signed-off-by: Leon Romanovsky <leon@kernel.org>