On 12-02-22 02:09 PM, Mark Salyzyn wrote:
Coincident repair of enclosure and ses device support. Fix problems with setting enclosure values careful to preserve other settings. Corrected fault setting as well. Modernize code. Add support for Device Power Management via a new r/w device_power node in sysfs and some internal interfaces to permit them to be called in the future by error recovery escalation. Enclosures that do not support individual power management will always return a status that the device has power.
Mark, One problem I found with the existing kernel SES/enclosure support is that it assumes there is a well-formed Element Descriptor diagnostic page. By well-formed I mean that the page exists and there is a unique, sensible entry for each element. By sensible I mean _not_ like this: "TP=9C;SN=PMW82562000C39A;F1=0311;VR=03;VC=6B58AD13;PN=0082562-11;" I have a SAS-2 expander with an associated SES device that breaks all those tidy assumptions (i.e. I did not make up that string). I assume that your patches do not change the reliance on a well-formed Element Descriptor diagnostic page. Is the peculiar SES device I have (and most SES-1 devices which don't have Element Descriptor diagnostic pages) worth worrying about? Doug Gilbert -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html