Skip to contentSkip to conversation

reproducible DV to the wrong device (fusion)

DISCUSSION Bernd Schubert 2 participants 3 messages Jan 2, 2008 SCSI

lore
Share & tools
lore
#0 lore raw

(Sorry sent again, since I used the wrong lsi developer list. Also forgot to say this is with 2.6.22).

Hi,

I complained about this before, but always got ignored. Please not this time. I can presently reliably reproduce it as often as I want.
Pretty please, I can't keep this state forever, since the system is presently going into production.

As far as I can remotely see, IOC0 and IOC1 are on the same dualport LSI22320 card. The device on IOC0 is probably not properly connected, probably a cable problem. When I just tried to add the device on IOC0, the device on IOC1 got a domain validation command. Presently both devices are idle otherwise.

On IOC0 there is 2:0:4:0 and on IOC1 there is 3:0:13:0 and 3:0:14:0.

pfs1n14-m:~# /tmp/scsiadd -a 2 0 4 0
[ 2595.405276] scsi 2:0:4:0: Activating scsi error recovery
[ 2595.405711] mptbase: ioc0: LogInfo(0x11010400): F/W: bug! MID not found
[ 2595.417828] Starting device recovery 5
[ 2595.668030] mptbase: ioc0: LogInfo(0x11010400): F/W: bug! MID not found
[ 2595.675024] scsi 2:0:4:0: Sending BDR 0xffff810128195920
[ 2595.680618] scsi 2:0:4:0: trying device reset
[ 2595.685230] mptscsih: ioc0: attempting target reset! (sc=ffff810128cbc500)
[ 2595.692280] scsi 2:0:4:0: CDB: Inquiry: 12 00 00 00 24 00
[ 2596.826218] mptbase: ioc0: LogInfo(0x11010400): F/W: bug! MID not found
[ 2597.089427] mptscsih: ioc0: Issue of TaskMgmt failed!
[ 2597.094766] mptscsih: ioc0: target reset: FAILED (sc=ffff810128cbc500)
[ 2597.101605] Sending BRST chan: 0
[ 2597.104982] scsi 2:0:4:0: trying bus reset
[ 2597.109306] mptscsih: ioc0: attempting bus reset! (sc=ffff810128cbc500)
[ 2597.116271] scsi 2:0:4:0: CDB: Inquiry: 12 00 00 00 24 00
[ 2598.511931] mptscsih: ioc0: bus reset: SUCCESS (sc=ffff810128cbc500)
[ 2608.513834] scsi 2:0:4:0: trying host reset
[ 2608.514187] mptbase: ioc0: LogInfo(0x11010400): F/W: bug! MID not found
[ 2608.525197] mptscsih: ioc0: Attempting host reset! (sc=ffff810128cbc500)
[ 2608.532246] mptbase: Initiating ioc0 recovery
[ 2620.952389]  target2:0:4: asynchronous
[ 2620.956405]  target3:0:12: Beginning Domain Validation
[ 2620.987547]  target3:0:12: Ending Domain Validation
[ 2620.992714]  target3:0:12: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS PCOMP 
(6.25 ns, offset 127)
[ 2621.001863]  target3:0:13: Beginning Domain Validation
[ 2621.032982]  target3:0:13: Ending Domain Validation
[ 2621.037978]  target3:0:13: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS PCOMP 
(6.25 ns, offset 127)
[ 2630.946215] scsi 2:0:4:0: scsi: Device offlined - not ready after error 
recovery
[ 2630.946608] mptbase: ioc0: LogInfo(0x11010400): F/W: bug! MID not found

I already tried "echo -1 >/proc/sys/dev/scsi/logging_level", but this doesn't reveal anything.

Please, we really need to fix this, as this is really troublesome in production situation. Some hints for further debugging should be suffienct for now.

Thanks,
Bernd

Signature · 2 lines
Bernd Schubert
Q-Leap Networks GmbH
#1 lore raw
Quoted 2 lines · Bernd Schubert

I complained about this before, but always got ignored. Please not this time.

Sorry, I didn't see your email before today.

Quoted 9 lines

On IOC0 there is 2:0:4:0 and on IOC1 there is 3:0:13:0 and 3:0:14:0.

pfs1n14-m:~# /tmp/scsiadd -a 2 0 4 0
[ 2595.405276] scsi 2:0:4:0: Activating scsi error recovery
[ 2595.405711] mptbase: ioc0: LogInfo(0x11010400): F/W: bug! 

MID not found

MID = means the firmware was unable to locate the proper "message id"
associated to some request when completing some command. Apparently
the command never completed back to driver, and eh threads were woken.
The MID might be fixed by a firmware upgrade. Do you know which
version you have? It will be provided in the banner when the driver loads.

Quoted 10 lines

I already tried "echo -1 >/proc/sys/dev/scsi/logging_level", but this doesn't
reveal anything.

Please, we really need to fix this, as this is really troublesome in production situation. Some hints for further debugging should be suffienct
for now.

If your using a linux kernel that was released since last summer, I now provide logging support in the driver which can be enabled/disabled via sysfs attributes and command line option. I will send you documentation
in seperate private email. Some info of this provided in mptdebug.h in
the source code. For domain validation, you need to enable the
MPT_DEBUG_DV bits. Also CONFIG_FUSION_LOGGING needs to be enabled in
the kernel config, and set your kernel logging level for klogd to 7 (or KERN_DEBUG).

Example

insmod mptbase.ko mpt_debug_level=0x200

or

echo 0x200 > /sys/class/scsi_host/host0/debug_level

#2 lore raw
Quoted 15 lines · Eric
Quoted 2 lines · Bernd Schubert

I complained about this before, but always got ignored. Please not this time.

Sorry, I didn't see your email before today.

Quoted 8 lines

On IOC0 there is 2:0:4:0 and on IOC1 there is 3:0:13:0 and 3:0:14:0.

pfs1n14-m:~# /tmp/scsiadd -a 2 0 4 0
[ 2595.405276] scsi 2:0:4:0: Activating scsi error recovery
[ 2595.405711] mptbase: ioc0: LogInfo(0x11010400): F/W: bug!

MID not found

Quoted 6 lines

MID = means the firmware was unable to locate the proper "message id"
associated to some request when completing some command. Apparently
the command never completed back to driver, and eh threads were woken.
The MID might be fixed by a firmware upgrade. Do you know which
version you have? It will be provided in the banner when the driver loads.

Sure,

[  100.094458] scsi2 : ioc0: LSI53C1030, FwRev=01033010h, Ports=1, MaxQ=222, IRQ=16

Some months ago you also did sent me an even more recent version (1.03.35), but this version also sometimes did show these "F/W: bug!" messages and also caused problems with with the Linux version lsiutil (e.g. bios upgrade/downgrade and firmware downgrade didn't work anymore). So we explicitely flashed all 62 cards of this project with 01033010h.

Quoted 20 lines
Quoted 10 lines

I already tried "echo -1 >/proc/sys/dev/scsi/logging_level", but this doesn't
reveal anything.

Please, we really need to fix this, as this is really troublesome in production situation. Some hints for further debugging should be suffienct
for now.

If your using a linux kernel that was released since last summer, I now provide logging support in the driver which can be enabled/disabled via sysfs attributes and command line option. I will send you documentation
in seperate private email. Some info of this provided in mptdebug.h in
the source code. For domain validation, you need to enable the
MPT_DEBUG_DV bits. Also CONFIG_FUSION_LOGGING needs to be enabled in
the kernel config, and set your kernel logging level for klogd to 7 (or KERN_DEBUG).

Quoted 7 lines

Example

insmod mptbase.ko mpt_debug_level=0x200

or

echo 0x200 > /sys/class/scsi_host/host0/debug_level

Sorry, I think (from reading the sources) this went in with 2.6.23.
Unfortunately we have to use for some reason 2.6.22. Do you have
single patches or do you know the git commits for this? I could
(actually would like) to add this to our 2.6.22 release. Before
Xmas I already tried to to apply a fusion diff between 2.6.22 and
2.6.23, but there was quite some 2.6.23 generic scsi-device specific stuff and eventually I considered this as too experimental.

But I think in 2.6.22 debugging can be enabled via Makefile flags and this is what I did now.

Please see http://www.pci.uni-heidelberg.de/tc/usr/bernd/downloads/scsi/dmesg.log

This starts on 4742.378588, this is the time when I did the scsiadd command (this time ioc0 is target8 and ioc1 is target9, since I simply rmmod'ed and modprobed the new fusion modules with debug information). This nicely does show that for some reason something goes on on ioc1. Any ideas why?

[ 4756.122899] mptbase: ioc0: Calling alt-ioc1 setup reset handler #15
[ 4756.242546] mptbase: ioc0: Calling alt-ioc1 setup reset handler #14
[ 4756.255542] mptscsih: ioc1: WARNING - Setup-Diag Reset

[...]

[ 4801.648267]  target9:0:12: Beginning Domain Validation
[ 4801.653692] mptspi: ioc1: id=12 Requested = 0x20000887 ( Wide  factor = 0x08 @ offset = 0x00 IU DT QAS PCOMP )
[ 4801.664223] mptbase: ioc1: mpt_get_msg_frame(15,1), got mf=ffff810121386580
[ 4801.671277] mptbase: ioc1: Sending Config request type 4, page 1 and action 2
[ 4801.678800] mptbase: ioc1: About to Put msg frame @ ffff810121386580:

Thanks a lot,
Bernd

Signature · 2 lines
Bernd Schubert
Q-Leap Networks GmbH