From: Zhiming Z. <is...@ya...> - 2009-01-13 16:40:09
|
Hello Erik: I am very sorry to trouble you, I have a LSI SAS 3081E(1068E, miniSAS connector) HBA card and a LSI SAS 1064E(SATA connector) controller, I want to make 1068E as SAS target, 1064E as SAS initiator. I have tried to use mpt_scst for SAS target, but I failed, these are my operating steps: 1. I update 1068E's firmware to IT(Initiator-Target) version, then use "lsiutil" program to enable SSP target on each port, the IOC unit information output like this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Software Version Information ---------------------------- Current active firmware version is 011a0000 (1.26.00) Firmware image's version is MPTFW-01.26.00.00-IT LSI Logic x86 BIOS image's version is MPTBIOS-6.24.00.00 (2008.07.01) Firmware Settings ----------------- SAS WWID: 5001485000076180 Multi-pathing: Disabled SATA Native Command Queuing: Enabled SATA Write Caching: Enabled SATA Maximum Queue Depth: 32 Device Missing Report Delay: 0 seconds Device Missing I/O Delay: 0 seconds Phy Parameters for Phynum: 0 1 2 3 4 5 6 7 Link Enabled: Yes Yes Yes Yes Yes Yes Yes Yes Link Min Rate: 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 Link Max Rate: 3.0 3.0 3.0 3.0 3.0 3.0 3.0 3.0 SSP Initiator Enabled: Yes Yes Yes Yes Yes Yes Yes Yes SSP Target Enabled: Yes Yes Yes Yes Yes Yes Yes Yes Port Configuration: Auto Auto Auto Auto Auto Auto Auto Auto Target IDs per enclosure: 1 Persistent mapping: Enabled Physical mapping type: None Target ID 0 reserved for boot: No Starting slot (direct attach): 0 Target IDs (physical mapping): 8 Interrupt Coalescing: Enabled, timeout is 16 us, depth is 4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2. I connect 1068E and 1064E with a "Female - Female" SATA connector made by myself, then compile and load the mpt_scst driver (on Linux 2.6.16.11): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jan 13 20:35:52 (none) user.info kernel: :ioc0 priv = f4fd8000, priv->hw = f3c80000, priv->hw_dma = 33c80000 Jan 13 20:35:52 (none) user.info kernel: scst: Target mpt_scst (f4c94f40) for template mpt_scst registered successfully Jan 13 20:35:52 (none) user.info kernel: scst: Target template mpt_scst registered successfully ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3. add a new "Default_mpt_scst" group to SCST and add some devices, then enable target mode for "ioc0": ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cat /proc/scsi_tgt/groups/Default_mpt_scst/devices Device (host:ch:id:lun or name) LUN Options rrt/iwu 0 cat /proc/scsi_tgt/mpt_scst/0 ProductID :0x2204 (LSISAS1068E) Target Enable :True ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4. then I start 1064E machine, during the initializing(initiating) of LSI 1064E BIOS, it failed with a "SAS discovering failed" message, and SAS target(1068E)'s syslog like this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jan 13 20:38:31 (none) user.warn kernel: ioc0 event = 22, ack = 0, length = 2 Jan 13 20:38:31 (none) user.warn kernel: ioc0 data[0] = 00ff0001 Jan 13 20:38:31 (none) user.warn kernel: ioc0 data[1] = 00000000 Jan 13 20:38:31 (none) user.warn kernel: ioc0 Phy 5 Handle 5 is now online at 3.0 Gb Jan 13 20:38:31 (none) user.warn kernel: ioc0 event = 22, ack = 0, length = 2 Jan 13 20:38:31 (none) user.warn kernel: ioc0 data[0] = 00000000 Jan 13 20:38:31 (none) user.warn kernel: ioc0 data[1] = 00000000 Jan 13 20:39:04 (none) user.warn kernel: ioc0 event = 22, ack = 0, length = 2 Jan 13 20:39:04 (none) user.warn kernel: ioc0 data[0] = 00ff0001 Jan 13 20:39:04 (none) user.warn kernel: ioc0 data[1] = 00000000 Jan 13 20:39:04 (none) user.warn kernel: ioc0 Phy 5 Handle 5 is now offline Jan 13 20:39:04 (none) user.warn kernel: ioc0 event = 22, ack = 0, length = 2 Jan 13 20:39:04 (none) user.warn kernel: ioc0 data[0] = 00000000 Jan 13 20:39:04 (none) user.warn kernel: ioc0 data[1] = 00000000 Jan 13 20:39:08 (none) user.warn kernel: ioc0 event = 22, ack = 0, length = 2 Jan 13 20:39:08 (none) user.warn kernel: ioc0 data[0] = 00ff0001 Jan 13 20:39:08 (none) user.warn kernel: ioc0 data[1] = 00000000 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ and seems ioc event 22 is MPI_EVENT_..._SAS_DISCOVERY(I am not sure about it), so is it possible to use mpt_scst as LSI MPT SAS target module? If yes, is there some error in my operatings? Thank you very much! Zhiming Zhou ___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ |