Kevin, Request to apply the attached patch and test. Regards, Nagalakshmi -----Original Message----- From: linux-scsi-owner@xxxxxxxxxxxxxxx [mailto:linux-scsi-owner@xxxxxxxxxxxxxxx] On Behalf Of Kevin Shanahan Sent: Wednesday, January 25, 2012 7:27 AM To: linux-scsi@xxxxxxxxxxxxxxx Subject: READ CAPACITY(16) failed, failure in mpt2sas_transport_port_add Hi, I wonder if someone can tell me what's going on with this new SAS controller. I swapped out my old Marvell based controller for a new Intel RS25GB008 and it seems that it never detects all the disks correctly (there are 4 attached to this controller). Trying to pull out the relevant bits of dmesg (full version attached): [ 4.197386] mpt2sas version 10.100.00.00 loaded [ 4.197501] scsi2 : Fusion MPT SAS Host [ 4.197825] mpt2sas 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [ 4.197835] mpt2sas 0000:01:00.0: setting latency timer to 64 [ 4.197840] mpt2sas0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (8146696 kB) [ 4.197933] mpt2sas 0000:01:00.0: irq 47 for MSI/MSI-X [ 4.197938] mpt2sas 0000:01:00.0: irq 48 for MSI/MSI-X [ 4.197943] mpt2sas 0000:01:00.0: irq 49 for MSI/MSI-X [ 4.197948] mpt2sas 0000:01:00.0: irq 50 for MSI/MSI-X [ 4.197981] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 47 [ 4.197983] mpt2sas0-msix1: PCI-MSI-X enabled: IRQ 48 [ 4.197984] mpt2sas0-msix2: PCI-MSI-X enabled: IRQ 49 [ 4.197986] mpt2sas0-msix3: PCI-MSI-X enabled: IRQ 50 [ 4.197987] mpt2sas0: iomem(0x00000000dfef0000), mapped(0xffffc900122e0000), size(65536) [ 4.197989] mpt2sas0: ioport(0x000000000000de00), size(256) [ 4.440008] mpt2sas0: sending message unit reset !! [ 4.446683] mpt2sas0: message unit reset: SUCCESS [ 4.590327] mpt2sas0: Allocated physical memory: size(11195 kB) [ 4.590330] mpt2sas0: Current Controller Queue Depth(4859), Max Controller Queue Depth(5120) [ 4.590332] mpt2sas0: Scatter Gather Elements per IO(128) [ 4.790353] mpt2sas0: LSISAS2308: FWVersion(09.00.00.00), ChipRevision(0x01), BiosVersion(07.17.03.00) [ 4.790356] mpt2sas0: Intel(R) RAID Controller RS25GB008 [ 4.790358] mpt2sas0: Protocol=(Initiator,Target), Capabilities=(TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ) [ 4.790423] mpt2sas0: sending port enable !! [ 4.792873] mpt2sas0: host_add: handle(0x0001), sas_addr(0x500605b003f34c80), phys(8) [ 4.803344] mpt2sas0: port enable: SUCCESS [ 4.814391] scsi 2:0:0:0: Direct-Access ATA WDC WD30EZRX-00A 0A80 PQ: 0 ANSI: 5 [ 4.814397] scsi 2:0:0:0: SATA: handle(0x0009), sas_addr(0x4433221100000000), phy(0), device_name(0x4ee250019f620672) [ 4.814400] scsi 2:0:0:0: SATA: enclosure_logical_id(0x500605b003f34c80), slot(0) [ 4.814489] scsi 2:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y) [ 4.814498] scsi 2:0:0:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1) [ 4.820459] sd 2:0:0:0: [sdc] physical block alignment offset: 4096 [ 4.820465] sd 2:0:0:0: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB) [ 4.820468] sd 2:0:0:0: [sdc] 4096-byte physical blocks [ 4.829459] scsi 2:0:1:0: Direct-Access ATA WDC WD30EZRX-00A 0A80 PQ: 0 ANSI: 5 [ 4.829465] scsi 2:0:1:0: SATA: handle(0x000a), sas_addr(0x4433221101000000), phy(1), device_name(0x4ee250010e9c0673) [ 4.829468] scsi 2:0:1:0: SATA: enclosure_logical_id(0x500605b003f34c80), slot(1) [ 4.829546] scsi 2:0:1:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y) [ 4.829551] scsi 2:0:1:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1) [ 4.837538] sd 2:0:1:0: [sdd] physical block alignment offset: 4096 [ 4.837543] sd 2:0:1:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB) [ 4.837545] sd 2:0:1:0: [sdd] 4096-byte physical blocks [ 4.844069] scsi 2:0:2:0: Direct-Access ATA WDC WD30EZRX-00A 0A80 PQ: 0 ANSI: 5 [ 4.844075] scsi 2:0:2:0: SATA: handle(0x000b), sas_addr(0x4433221102000000), phy(2), device_name(0x4ee25001c81a5bc7) [ 4.844078] scsi 2:0:2:0: SATA: enclosure_logical_id(0x500605b003f34c80), slot(2) [ 4.844153] scsi 2:0:2:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y) [ 4.844158] scsi 2:0:2:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1) [ 4.851179] sd 2:0:2:0: [sde] physical block alignment offset: 4096 [ 4.851184] sd 2:0:2:0: [sde] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB) [ 4.851186] sd 2:0:2:0: [sde] 4096-byte physical blocks [ 4.851459] sd 2:0:0:0: [sdc] Write Protect is off [ 4.851463] sd 2:0:0:0: [sdc] Mode Sense: 7f 00 00 08 [ 4.857728] scsi 2:0:3:0: Direct-Access ATA WDC WD30EZRX-00A 0A80 PQ: 0 ANSI: 5 [ 4.857734] scsi 2:0:3:0: SATA: handle(0x000c), sas_addr(0x4433221103000000), phy(3), device_name(0x4ee250010d1e0673) [ 4.857737] scsi 2:0:3:0: SATA: enclosure_logical_id(0x500605b003f34c80), slot(3) [ 4.857809] scsi 2:0:3:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y) [ 4.857814] scsi 2:0:3:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1) [ 4.858145] port-2:0: remove: sas_addr(0x4433221100000000) [ 4.858154] port-2:0: remove: sas_addr(0x4433221100000000), phy(0) [ 4.862435] sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 4.862589] sd 2:0:0:0: [sdc] READ CAPACITY(16) failed [ 4.862592] sd 2:0:0:0: [sdc] Result: hostbyte=0x01 driverbyte=0x00 [ 4.862594] sd 2:0:0:0: [sdc] Sense not available. [ 4.862623] sd 2:0:0:0: [sdc] READ CAPACITY failed [ 4.862626] sd 2:0:0:0: [sdc] Result: hostbyte=0x01 driverbyte=0x00 [ 4.862628] sd 2:0:0:0: [sdc] Sense not available. [ 4.862655] sd 2:0:0:0: [sdc] Asking for cache data failed [ 4.862902] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 4.863127] sdc: detected capacity change from 3000592982016 to 0 [ 4.863199] sd 2:0:0:0: [sdc] READ CAPACITY(16) failed [ 4.863201] sd 2:0:0:0: [sdc] Result: hostbyte=0x01 driverbyte=0x00 [ 4.863203] sd 2:0:0:0: [sdc] Sense not available. [ 4.863222] sd 2:0:0:0: [sdc] READ CAPACITY failed [ 4.863223] sd 2:0:0:0: [sdc] Result: hostbyte=0x01 driverbyte=0x00 [ 4.863226] sd 2:0:0:0: [sdc] Sense not available. [ 4.863251] sd 2:0:0:0: [sdc] Asking for cache data failed [ 4.863477] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 4.863702] sd 2:0:0:0: [sdc] Attached SCSI disk [ 4.864690] sd 2:0:3:0: [sdf] physical block alignment offset: 4096 [ 4.864695] sd 2:0:3:0: [sdf] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB) [ 4.864698] sd 2:0:3:0: [sdf] 4096-byte physical blocks [ 4.876736] sd 2:0:1:0: [sdd] Write Protect is off [ 4.876740] sd 2:0:1:0: [sdd] Mode Sense: 7f 00 00 08 [ 4.885584] sd 2:0:2:0: [sde] Write Protect is off [ 4.885588] sd 2:0:2:0: [sde] Mode Sense: 7f 00 00 08 [ 4.891538] sd 2:0:1:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 4.897125] sd 2:0:3:0: [sdf] Write Protect is off [ 4.897129] sd 2:0:3:0: [sdf] Mode Sense: 7f 00 00 08 [ 4.900113] sd 2:0:2:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 4.910240] sd 2:0:3:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 4.974155] sdf: sdf1 [ 4.975438] sdd: sdd1 [ 4.983617] sde: sde1 [ 5.026685] sd 2:0:3:0: [sdf] Attached SCSI disk [ 5.032538] sd 2:0:1:0: [sdd] Attached SCSI disk [ 5.039178] sd 2:0:2:0: [sde] Attached SCSI disk [ 5.039528] mpt2sas0: removing handle(0x0009), sas_addr(0x4433221100000000) [ 5.039532] mpt2sas0: failure at drivers/scsi/mpt2sas/mpt2sas_transport.c:705/mpt2sas_transport_port_add()! Usually if I hot-unplug and re-plug the disk in question it will be detected properly, but next reboot I have the same problem again. Does anything there point towards a hardware/software problem? I notice there's a newer RS25GB008 bios available, though I'll need to source a UEFI board in order to install it. Thanks, Kevin.
Attachment:
scsi-misc-2[1].6.git-2cb6fc8c014b9b00c4487a79b8f6ed0da4121f45.patch
Description: scsi-misc-2[1].6.git-2cb6fc8c014b9b00c4487a79b8f6ed0da4121f45.patch