Skip to contentSkip to conversation

aic94xx status

DISCUSSION James Bottomley 2 participants 4 messages Jul 8, 2006 – Jul 11, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

The current status is this:

The biggest problem I've been pursuing all week was the hangs and softlockups on driver insertion. This actually turns out to be all caused by the generic timer code and have nothing to do with the actual aic94xx (the pitfalls of working in Linus' git head, I'm afraid).

The only two remaining serious issues I can now find that need to be fixed before it can go into scsi-misc are:

1) SATA support. We at least need this stubbed out so seeing a SATA device won't cause nasty things to happen (IBM is working on this). Ideally, we need to integrate this driver with Brian King's SATA/SAS code, but no-one who has this board has a sata device and vice versa.

2) Error handling. I seem to have a somewhat flakey connection on my SAS cage that seems to cause intermittent transport errors. The current behaviour is for this driver to find the transport problem, clear the nexus and then complete the command (i.e. fail it). So if this happens at boot time in the initial INQUIRY (and it does for me about 25% of the time) it never brings up my root disk, so the box panics. The error handler needs to be taught to retry the commands for transport failures. (I can look into doing this unless there are ready volunteers).

3) The wide port formation and deformation issues, which I've described in a separate email.

Other than this, most of the remaining work is code refactoring, which I think can be done in-tree, unless anyone else has critical issues to add to the list.

James

#1 lore raw
Quoted 5 lines · James Bottomley

1) SATA support. We at least need this stubbed out so seeing a SATA device won't cause nasty things to happen (IBM is working on this). Ideally, we need to integrate this driver with Brian King's SATA/SAS code, but no-one who has this board has a sata device and vice versa.

Currently I am running a loaned SATA drive with the patch below. It just generates the "Unidentified device type" type message when it detects a SATA device and appears in my configuration to not cause any bad things to happen.

-andmike
--
Michael Anderson
[email protected]

Do not drop phy_list_lock is we have not taken it. Also added a SATA_DEV case as marker for future calls.

 drivers/scsi/sas/sas_discover.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/sas/sas_discover.c +1 -1
Index: aic94xx-sas-2.6-patched/drivers/scsi/sas/sas_discover.c
===================================================================
@@ -265,6 +265,7 @@ static int sas_get_port_device(struct as
 		rphy = sas_expander_alloc(port->port,
 					  SAS_FANOUT_EXPANDER_DEVICE);
 		break;
+	case SATA_DEV:
 	default:
 		printk("ERROR: Unidentified device type %d\n", dev->dev_type);
 		rphy = NULL;
@@ -272,7 +273,6 @@ static int sas_get_port_device(struct as
 	}
 
 	if (!rphy) {
-		spin_unlock_irqrestore(&port->phy_list_lock, flags);
 		kfree(dev);
 		return -ENODEV;
 	}
#2 lore raw
Quoted 7 lines · Mike Anderson

Currently I am running a loaned SATA drive with the patch below. It just
generates the "Unidentified device type" type message when it detects a
SATA device and appears in my configuration to not cause any bad things to
happen.

That seems to cover the directly attached case, thanks.

What happens if the SATA device is remote over an expander using STP? That seems to have a separate case in sas_ex_discover_end_dev.

Thanks,

James

#3 lore raw
Quoted 9 lines · James Bottomley
Quoted 7 lines · Mike Anderson

Currently I am running a loaned SATA drive with the patch below. It just
generates the "Unidentified device type" type message when it detects a
SATA device and appears in my configuration to not cause any bad things to
happen.

Quoted 4 lines

That seems to cover the directly attached case, thanks.

What happens if the SATA device is remote over an expander using STP? That seems to have a separate case in sas_ex_discover_end_dev.

I tried the SATA drive connected off a edge device prior to having to return the device. I saw the devices address in the attached message, but nothing else was printed. At least it did not cause any other issues.

-andmike
--
Michael Anderson
[email protected]