[openib-general] Re: mstflint failing on sparc64

Tom Duffy tduffy at sun.com
Thu Jan 6 10:09:52 PST 2005


On Thu, 2005-01-06 at 12:39 +0200, Michael S. Tsirkin wrote:
> I wander what 0000: is for? Anyway, I added support for names format
> 0000:xx:xx.x just for convenience.
> But its not a real issue.

Cool, thanks.

> By the way, looking at drivers/pci/proc.c it seems that domains>0 are not
> really supported in linux yet. Do you see 8100 in a first column in
> /proc/bus/pci/devices, too?
> If not, could you cat /proc/bus/pci/devices please?
> Please try sending it as an attachment, your mailer seems to wrap lines.

I thought I preformatted it, oh well.  It is attached.

> > tat:~# ./mstflint -d 81:00.0 q
> > Bus error
> 
> Interesting. Maybe mmap does not work as it should?
> Could you run it under gdb and do a backtrace? I also added
> a sanity checks on mmap result, maybe that will help us
> see what is the problem.

tat:~# gdb ./mstflint
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run -d 81:00.0 q
Starting program: /root/mstflint -d 81:00.0 q
warning: linux_test_for_tracefork: unexpected result from waitpid (10830, status 0xb7f)

Program received signal SIGBUS, Bus error.
0x00011400 in mread4 (mf=0x2c050, offset=984060, value=0xeffff1cc)
    at mtcr.h:355
355     mtcr.h: No such file or directory.
        in mtcr.h
(gdb) bt
#0  0x00011400 in mread4 (mf=0x2c050, offset=984060, value=0xeffff1cc)
    at mtcr.h:355
#1  0x00011b24 in Flash::open (this=0xeffff6e8, device=0x2c050 "")
    at flint.cpp:909
#2  0x00017554 in main (ac=4, av=0xeffffda4) at flint.cpp:3589

> Hmm. I think I forgot about endian-ness for the /proc/bus/pci case.
> I fixed that, could you try again please?
> 
> If that does not help, could you please locate the line 
> 
> #if  1
> 
> around flint.cpp line 297 , and change this to #if 0?
> 
> This will turn on lots of messages on each memory access.

this looks ok except for the Board ID.

tat:~# ./mstflint -d /proc/bus/pci/0000\:81/00.0 q
Image type: FailSafe
Chip rev.:  A1
GUIDs:      d05f760901c90200 d15f760901c90200 d25f760901c90200 50d0000100c90200
Board ID:   guoCC ra


-- 
Tom Duffy <tduffy at sun.com>

-------------- next part --------------
0000	108e8000	0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	
0008	108e1000	0	     1fff0000000	     1fff1000000	               0	               0	               0	               0	     1ff81000001	         1000000	          800000	               0	               0	               0	               0	         1000000	
0009	108e1001	7af260	     1ff80008000	               0	               0	               0	               0	               0	     1ff82000001	            8000	               0	               0	               0	               0	               0	         1000000	
0018	1000000f	7af240	     1fe02010401	     1ff80010000	     1ff80012000	               0	               0	               0	               0	             100	             100	            1000	               0	               0	               0	               0	sym53c8xx
0019	1000000f	7af300	     1fe02010801	     1ff80014000	     1ff80016000	               0	               0	               0	               0	             100	             100	            1000	               0	               0	               0	               0	sym53c8xx
8000	108e8000	0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	
8008	15b35a46	0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	               0	
8100	15b35a44	7aee40	     1ff00100004	               0	     1ff0080000c	               0	     1ff0800000c	               0	               0	          100000	               0	          800000	               0	         8000000	               0	               0	ib_mthca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050106/12729f21/attachment.sig>


More information about the general mailing list