Skip to contentSkip to conversation

U320 SCSI negotiation problem in Linux 2.6.13 and later implementations on LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 08)

DISCUSSION Alan D. Brunelle 1 participant 1 message Nov 16, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

Whilst running a 2.6.14.2 kernel, I started running into severe performance issues with the following configuration:

- 4-way IA64 box (HP rx4640)
- 4x53c1030
- 8 dual-bus MSA 30 disk enclosures + six 72GB (U320 wide-capable) drives per bus (total of 48 disks)
- [[BTW: req_depth is being calculated as 255 per adapter in this configuration...]]

What I found was that a small number of drives (8 or 9 out of the 48) would come up at asynchronous narrow (8-bit) and very slow rates, while the rest came up correctly. After trying various kernel revisions - I had been using 2.6.9 prior to jumping to 2.6.14.2 - I narrowed it down to having occurred between 2.6.12.6 and 2.6.13 (it works correctly in 2.6.12.6, but fails in 2.6.13 and afterwards).

With some more debugging, I found that what was happening was that during the negotiations, mpt_config would fail due to mpt_get_msg_frame returning -EAGAIN (frames were exhausted). I changed the code in mpt_config to do the following on an -EAGAIN: sleep for a short period of time, and then retry the mpt_get_msg_frame call; and this appears to have solved the problem - all the negotiations complete successfully, and I have full U320/wide disks across the board.

I'm not at all sure why the problem appears in 2.6.13 (and later) - I'm *assuming* that it has to do with either better parallel capabilities present in the base OS and/or better coding within the Fusion driver(s) producing more parallel activities (which exhaust the number of frames available).

I'm not quite sure how to proceed from here: I have sent a similar message to [email protected] (as the source code indicated that as one option).

Alan D. Brunelle
Hewlett-Packard Company
Open Source and Linux Organization
Performance and Scalability Group