[ofa-general] is there an OFED way to putt VPD from an HCA?

Pradeep Satyanarayana pradeeps at linux.vnet.ibm.com
Thu May 10 11:18:44 PDT 2007


Scott Weitzenkamp (sweitzen) wrote:
> For Mellanox HCAs, you can use mstflint (Mellanox util) or tvflash (Cisco util).  For example, from a Cisco-produced Mellanox HCA (YMMV):
> 
> [root at svbu-qa1850-1 ~]# mstflint -d mthca0 q
> Image type:      Failsafe
> FW Version:      1.2.0
> I.S. Version:    1
> Device ID:       25204
> Chip Revision:   A0
> GUID Des:        Node             Port1            Sys image
> GUIDs:           0002c90200218140 0002c90200218141 0005ad000100d050
> Board ID:        É,­
> VSD:             É,­
> PSID:
> [root at svbu-qa1850-1 ~]# tvflash -i
> HCA #0: MT25204, Cheetah DDR, revision 20
>   Primary image is v1.2.000 build 3.2.0.140, with label 'HCA.Cheetah-DDR.20'
>   Secondary image is v1.2.000 build 3.2.0.139, with label 'HCA.Cheetah-DDR.20'
> 
>   Vital Product Data
>     Product Name: Cheetah DDR
>     P/N: MHGS18-XTC
>     E/C: A1
>     S/N: MT0612X01178
>     Freq/Power: PCIe x8
>     Checksum: Ok
>     Date Code: N/A
> 
> Scott Weitzenkamp
> SQA and Release Manager
> Server Virtualization Business Unit
> Cisco Systems
>  
> 
>> -----Original Message-----
>> From: general-bounces at lists.openfabrics.org 
>> [mailto:general-bounces at lists.openfabrics.org] On Behalf Of Rick Jones
>> Sent: Thursday, May 10, 2007 10:02 AM
>> To: general at lists.openfabrics.org
>> Subject: [ofa-general] is there an OFED way to putt VPD from an HCA?
>>
>> Hi -
>>
>> I would like to pull vital product data (eg serial number) 
>> from an IB HCA which 
>> is "driven" via OFED bits.  Is there any OFED tool to do that 
>> or do I have to go 
>> hunt-down something HCA-vendor specific (mellanox in this case)?
>>
>> thanks,
>>
>> rick jones



There is also some similar information available in the 
/sys/class/infiniband directory (without using Mellanox or Cisco tools). 
For example on p5 (ppc64) system I get the following:

[root at elm3b37 mthca0]# pwd
/sys/class/infiniband/mthca0
[root at elm3b37 mthca0]# ls -l
total 0
-r--r--r-- 1 root root 4096 May 10 14:10 board_id
lrwxrwxrwx 1 root root    0 May  8 20:19 device -> 
../../../devices/pci0002:00/0002:00:02.6/0002:d8:01.0/0002:d9:00.0
-r--r--r-- 1 root root 4096 May 10 14:10 fw_ver
-r--r--r-- 1 root root 4096 May 10 14:10 hca_type
-r--r--r-- 1 root root 4096 May 10 14:10 hw_rev
-rw-r--r-- 1 root root 4096 May 10 14:10 node_desc
-r--r--r-- 1 root root 4096 May 10 14:10 node_guid
-r--r--r-- 1 root root 4096 May 10 14:10 node_type
drwxr-xr-x 4 root root    0 May  8 20:19 ports
lrwxrwxrwx 1 root root    0 May 10 14:10 subsystem -> 
../../../class/infiniband
-r--r--r-- 1 root root 4096 May 10 14:10 sys_image_guid
--w------- 1 root root 4096 May 10 14:10 uevent
[root at elm3b37 mthca0]# cat board_id
MT_0030000001
[root at elm3b37 mthca0]# cat fw_ver
3.5.0
[root at elm3b37 mthca0]# cat hca_type
MT23108
[root at elm3b37 mthca0]# cat hw_rev
a1
[root at elm3b37 mthca0]# cat node_desc
MT23108 InfiniHost Mellanox Technologies
[root at elm3b37 mthca0]# cat node_guid
0005:ad00:0003:0564
[root at elm3b37 mthca0]# cat node_type
1: CA
[root at elm3b37 mthca0]# cat sys_image_guid
0005:ad00:0003:0567
[root at elm3b37 mthca0]# cat uevent


Pradeep




More information about the general mailing list