aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorSalyzyn, Mark <mark_salyzyn@adaptec.com>2007-03-28 13:44:54 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-04-01 11:35:44 -0400
commita45c863f02c808107172b4b2975e1130c7da66d6 (patch)
tree74a7d4f3e6bee2a9c4911830e732304ab4964472 /drivers/scsi
parent74ee9d52cf8b524edf8ae6222c8bfcc6df6f5954 (diff)
[SCSI] aacraid: fix print of Firmware Build Date and add TSID
The Adapter build date that is to be printed on instantiation was not displayed as a result of the supplemental adapter information structure not being in sync with the Firmware; the driver took an early test cycle version that had a miss-sized padded region at the head and the structure was not re-checked at the end of qualification. The Build Date was not a priority and is merely a cosmetic enhancement, and the wrong location for the start of the structure member would not induce any side-effect problems. We updated the structure to match the actual format, and added the TSID (Tech Support Identification) value print, should it be present, to the adapter instantiation announcements during driver load. This later enhancement should improve the relationship between Service folk & Tech Support if the printed value of the TSID found it's way into the circular file labeled G... Neither of these values show in sysfs (yet). Signed-off-by: Mark Salyzyn <aacraid@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/aacraid/aachba.c6
-rw-r--r--drivers/scsi/aacraid/aacraid.h19
2 files changed, 23 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
index fc16fe0dfa84..31ac9f56cd1f 100644
--- a/drivers/scsi/aacraid/aachba.c
+++ b/drivers/scsi/aacraid/aachba.c
@@ -1194,6 +1194,12 @@ int aac_get_adapter_info(struct aac_dev* dev)
1194 printk(KERN_INFO "%s%d: serial %x\n", 1194 printk(KERN_INFO "%s%d: serial %x\n",
1195 dev->name, dev->id, 1195 dev->name, dev->id,
1196 le32_to_cpu(dev->adapter_info.serial[0])); 1196 le32_to_cpu(dev->adapter_info.serial[0]));
1197 if (dev->supplement_adapter_info.VpdInfo.Tsid[0]) {
1198 printk(KERN_INFO "%s%d: TSID %.*s\n",
1199 dev->name, dev->id,
1200 (int)sizeof(dev->supplement_adapter_info.VpdInfo.Tsid),
1201 dev->supplement_adapter_info.VpdInfo.Tsid);
1202 }
1197 } 1203 }
1198 1204
1199 dev->nondasd_support = 0; 1205 dev->nondasd_support = 0;
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
index 12cad1f3020a..45ca3e801619 100644
--- a/drivers/scsi/aacraid/aacraid.h
+++ b/drivers/scsi/aacraid/aacraid.h
@@ -843,10 +843,25 @@ struct aac_supplement_adapter_info
843 __le32 Version; 843 __le32 Version;
844 __le32 FeatureBits; 844 __le32 FeatureBits;
845 u8 SlotNumber; 845 u8 SlotNumber;
846 u8 ReservedPad0[0]; 846 u8 ReservedPad0[3];
847 u8 BuildDate[12]; 847 u8 BuildDate[12];
848 __le32 CurrentNumberPorts; 848 __le32 CurrentNumberPorts;
849 __le32 ReservedGrowth[24]; 849 struct {
850 u8 AssemblyPn[8];
851 u8 FruPn[8];
852 u8 BatteryFruPn[8];
853 u8 EcVersionString[8];
854 u8 Tsid[12];
855 } VpdInfo;
856 __le32 FlashFirmwareRevision;
857 __le32 FlashFirmwareBuild;
858 __le32 RaidTypeMorphOptions;
859 __le32 FlashFirmwareBootRevision;
860 __le32 FlashFirmwareBootBuild;
861 u8 MfgPcbaSerialNo[12];
862 u8 MfgWWNName[8];
863 __le32 MoreFeatureBits;
864 __le32 ReservedGrowth[1];
850}; 865};
851#define AAC_FEATURE_FALCON 0x00000010 866#define AAC_FEATURE_FALCON 0x00000010
852#define AAC_SIS_VERSION_V3 3 867#define AAC_SIS_VERSION_V3 3