[openib-general] mstflint error on ppc64 bug fix

Michael S. Tsirkin mst at mellanox.co.il
Sun Nov 19 07:53:33 PST 2006


Thanks.
The right thing is no to swap PSID regardless of endian-ness though.
I'll give it a look.

Quoting r. Moshe Kazir <moshek at voltaire.com>:
Subject: RE: mstflint error  on ppc64 bug fix

 
Michael,
 
Looking at the attached error file will show a big endian data displayed in wrong little endian order.
 
The attached file mstflint2.patch fix this problem.
 
The  mstflint2.patch  has to be used after mstflint.patch packed in the OFED-1.1 openib.tgz.(user_patches...)
 
The patch change only the displayed data and not the program's used internal structures , as I found that data write is performed o.k.
 and I did not want to cause errors in the writing process .
  
Moshe 
 

____________________________________________________________

Moshe Katzir   |  +972-9971-8639 (o)   |   +972-52-860-6042  (m)

 

Voltaire - The Grid Backbone

 

 www.voltaire.com <http://www.voltaire.com/> 

<mailto:g at voltaire.com> 

  

	-----Original Message-----
	From: Moshe Kazir 
	Sent: Monday, October 30, 2006 4:00 PM
	To: 'Michael S. Tsirkin'
	Cc: openib-general at openib.org; openfabrics-ewg at openib.org
	Subject: mstflint error on ppc64
	
	
	Hi Michael,
	 
	The output of mstflint is changed on ppc64 as result of byte ordering issues.
	 
	If you take a HCA that was burned using x86_64 or Mellanox manufacturing  and perform mstflint -d ... q  on ppc64
	you'll find that the value of PSID VSD and Board Id was changed.
	 
	I tried to look at the code to find the error,
	 
	but then I saw that vsd is defined twice in the code according to it's usage (char[205], or unsigned int[52] )
	 
	Can you please look and help ?
	 
	Best regards,
	 
	Moshe
	 

	____________________________________________________________

	Moshe Katzir   |  +972-9971-8639 (o)   |   +972-52-860-6042  (m)

	 

	Voltaire - The Grid Backbone

	 

	 www.voltaire.com <http://www.voltaire.com/> 

	<mailto:g at voltaire.com> 

	  

	 


Content-Description: mstflint_ppc64_byte_ordering_output_error.txt
Script started on Thu Nov 16 11:17:12 2006
js21-sles10:~ #  mstflint -d 0c:00.0 -i /usr/voltaire/fw/BC-HSEC-128-SDR-Rev1-25208-4_7_927.img -vsd 
1 01234567  -vsd2 0123456789012345  -nofs burn
    Current FW version on flash:  N/A
    New FW version:               N/A

    Burn image with the following GUIDs:
        Node:      0008f1040398047c
        Port1:     0008f1040398047d
        Port2:     0008f1040398047e
        Sys.Image: 0008f1040398047f

    You are about to replace current PSID in the image file - "0123456789012345" with a different PSID - "0TLV00700003".
    Note: It is highly recommended not to change the image PSID.

 Do you want to continue ? (y/n) [n] : y

    You are about to replace current PSID on flash - "3210765410985432" with a different PSID - "0123456789012345".
    Note: It is highly recommended not to change the PSID.

 Do you want to continue ? (y/n) [n] : y

Burn process will not be failsafe. No checks are performed.
ALL flash, including Invariant Sector will be overwritten.
If this process fails computer may remain in inoperable state.

 Do you want to continue ? (y/n) [n] : y
000%000%001%002%003%004%005%006%007%008%009%010%011%012%013%014%015%016%017%018%019%020%021%022%023%024%025%026%027%028%029%030%031%032%033%034%035%036%037%038%039%040%041%042%043%044%045%046%047%048%049%050%051%052%053%054%055%056%057%058%059%060%061%062%063%064%065%066%067%068%069%070%071%072%073%074%075%076%077%078%079%080%081%082%083%084%085%086%087%088%089%090%091%092%093%094%095%096%097%098%099%100%100%
js21-sles10:~ # mstflint -d 0c:00.0 q
Image type:      Failsafe
I.S. Version:    1
Chip Revision:   A0
GUID Des:        Node             Port1            Port2            Sys image
GUIDs:           0008f1040398047c 0008f1040398047d 0008f1040398047e 0008f1040398047f 
Board ID:        32107654 (3210765410985432)
VSD:             32107654
PSID:            3210765410985432
js21-sles10:~ # 
js21-sles10:~ # exit

Script done on Thu Nov 16 11:28:46 2006



-- 
MST




More information about the general mailing list