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):

[EMAIL PROTECTED] ~]# 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:
[EMAIL PROTECTED] ~]# 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Jones
Sent: Thursday, May 10, 2007 10:02 AM
To: [email protected]
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:

[EMAIL PROTECTED] mthca0]# pwd
/sys/class/infiniband/mthca0
[EMAIL PROTECTED] 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
[EMAIL PROTECTED] mthca0]# cat board_id
MT_0030000001
[EMAIL PROTECTED] mthca0]# cat fw_ver
3.5.0
[EMAIL PROTECTED] mthca0]# cat hca_type
MT23108
[EMAIL PROTECTED] mthca0]# cat hw_rev
a1
[EMAIL PROTECTED] mthca0]# cat node_desc
MT23108 InfiniHost Mellanox Technologies
[EMAIL PROTECTED] mthca0]# cat node_guid
0005:ad00:0003:0564
[EMAIL PROTECTED] mthca0]# cat node_type
1: CA
[EMAIL PROTECTED] mthca0]# cat sys_image_guid
0005:ad00:0003:0567
[EMAIL PROTECTED] mthca0]# cat uevent


Pradeep

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to