public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BISECTED] QLogic Corp. ISP2532-based 8Gb Fibre Channel not working on 2.6.35.y
@ 2011-04-19  9:23 Ozan Çağlayan
  2011-04-19 16:58 ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Ozan Çağlayan @ 2011-04-19  9:23 UTC (permalink / raw)
  To: stable, giridhar.malavali, James.Bottomley, ak, linux-kernel,
	andrew.vasquez

Hi,

0e:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre 
Channel to PCI Express HBA [1077:2532] (rev 02)

The card above doesn't work correctly on 2.6.35.12. I tried 2.6.37.y and 
it works correctly there.

First the dmesg from 2.6.35.12:

[324395.932519] QLogic Fibre Channel HBA Driver: 8.03.02-k2
[324395.932560] qla2xxx 0000:0e:00.0: PCI INT A -> GSI 30 (level, low) 
-> IRQ 30
[324395.933614] qla2xxx 0000:0e:00.0: Found an ISP2532, irq 30, iobase 
0xffffc90011a20000
[324395.934033] qla2xxx 0000:0e:00.0: irq 82 for MSI/MSI-X
[324395.934040] qla2xxx 0000:0e:00.0: irq 83 for MSI/MSI-X
[324395.934096] qla2xxx 0000:0e:00.0: Configuring PCI space...
[324395.934102] qla2xxx 0000:0e:00.0: setting latency timer to 64
[324395.947205] qla2xxx 0000:0e:00.0: Configure NVRAM parameters...
[324395.954999] qla2xxx 0000:0e:00.0: Verifying loaded RISC code...
[324396.068188] qla2xxx 0000:0e:00.0: FW: Loading via request-firmware...
[324396.096381] qla2xxx 0000:0e:00.0: Allocated (64 KB) for FCE...
[324396.096455] qla2xxx 0000:0e:00.0: Allocated (64 KB) for EFT...
[324396.096678] qla2xxx 0000:0e:00.0: Allocated (1350 KB) for firmware 
dump...
[324396.100645] qla2xxx 0000:0e:00.0: Unable to read FCP priority data.
[324396.100885] scsi4 : qla2xxx
[324396.102131] qla2xxx 0000:0e:00.0:
[324396.102132]  QLogic Fibre Channel HBA Driver: 8.03.02-k2
[324396.102134]   QLogic HPAK344A - HP 8Gb Single Channel PCI-e 2.0 FC HBA
[324396.102135]   ISP2532: PCIe (5.0GT/s x4) @ 0000:0e:00.0 hdma+, 
host#=4, fw=4.04.04 (80)
[324396.386384] qla2xxx 0000:0e:00.0: LIP reset occurred (f700).
[324396.422841] qla2xxx 0000:0e:00.0: LIP occurred (f700).
[324396.427019] qla2xxx 0000:0e:00.0: LIP reset occurred (f7f7).
[324396.477268] qla2xxx 0000:0e:00.0: LOOP UP detected (8 Gbps).
[324396.930363] qla2xxx 0000:0e:00.0: MRK-IOCB: Invalid completion 
handle (0) -- timed-out.

The logs stop here and no volumes are detected over the fibre channel.

--

Then I've generated all the patches between 2.6.35.12 and current 
linux-2.6 tree and patched them incrementally. After the following 
commit, the issue is fixed and all the volumes are correctly shown in 
/dev tree:

 From b0cd579cde8ee0c7ed52239531ba09bcbc5b54c2 Mon Sep 17 00:00:00 2001
From: Andrew Vasquez <andrew.vasquez@qlogic.com>
Date: Fri, 28 May 2010 15:08:22 -0700
Subject: [PATCH 009/107] [SCSI] qla2xxx: Make the FC port capability 
mutual exclusive.

In case of both target and initiator capabilities reported by fc port,
the fc port port capability is made mutualy exclusive with priority given
for target capabilities.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

Here's the dmesg with that patch applied:

[329158.803944] QLogic Fibre Channel HBA Driver: 8.03.03-k0
[329158.803990] qla2xxx 0000:0e:00.0: PCI INT A -> GSI 30 (level, low) 
-> IRQ 30
[329158.805025] qla2xxx 0000:0e:00.0: Found an ISP2532, irq 30, iobase 
0xffffc9001183a000
[329158.805445] qla2xxx 0000:0e:00.0: irq 82 for MSI/MSI-X
[329158.805452] qla2xxx 0000:0e:00.0: irq 83 for MSI/MSI-X
[329158.805509] qla2xxx 0000:0e:00.0: Configuring PCI space...
[329158.805515] qla2xxx 0000:0e:00.0: setting latency timer to 64
[329158.818720] qla2xxx 0000:0e:00.0: Configure NVRAM parameters...
[329158.826530] qla2xxx 0000:0e:00.0: Verifying loaded RISC code...
[329158.828862] qla2xxx 0000:0e:00.0: FW: Loading via request-firmware...
[329158.857110] qla2xxx 0000:0e:00.0: Allocated (64 KB) for FCE...
[329158.857185] qla2xxx 0000:0e:00.0: Allocated (64 KB) for EFT...
[329158.857324] qla2xxx 0000:0e:00.0: Allocated (1350 KB) for firmware 
dump...
[329158.861287] qla2xxx 0000:0e:00.0: Unable to read FCP priority data.
[329158.861538] scsi26 : qla2xxx
[329158.863028] qla2xxx 0000:0e:00.0:
[329158.863030]  QLogic Fibre Channel HBA Driver: 8.03.03-k0
[329158.863031]   QLogic HPAK344A - HP 8Gb Single Channel PCI-e 2.0 FC HBA
[329158.863033]   ISP2532: PCIe (5.0GT/s x4) @ 0000:0e:00.0 hdma+, 
host#=26, fw=4.04.04 (80)
[329159.146987] qla2xxx 0000:0e:00.0: LIP reset occurred (f700).
[329159.217822] qla2xxx 0000:0e:00.0: LOOP UP detected (8 Gbps).
[329159.872520] scsi 26:0:0:0: Direct-Access     HP       P2000 G3 
FC      T201 PQ: 0 ANSI: 5
[329159.872947] sd 26:0:0:0: Attached scsi generic sg3 type 0
[329159.874203] sd 26:0:0:0: [sdb] 2341837312 512-byte logical blocks: 
(1.19 TB/1.08 TiB)
[329159.874344] scsi 26:0:0:1: Direct-Access     HP       P2000 G3 
FC      T201 PQ: 0 ANSI: 5
[329159.874493] sd 26:0:0:0: [sdb] Write Protect is off
[329159.874498] sd 26:0:0:0: [sdb] Mode Sense: 93 00 00 08
[329159.874810] sd 26:0:0:1: Attached scsi generic sg4 type 0
[329159.874862] sd 26:0:0:1: [sdc] 3512755968 512-byte logical blocks: 
(1.79 TB/1.63 TiB)
[329159.874911] sd 26:0:0:0: [sdb] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[329159.875551] sd 26:0:0:1: [sdc] Write Protect is off
[329159.875555] sd 26:0:0:1: [sdc] Mode Sense: 93 00 00 08
[329159.875676] scsi 26:0:1:0: Direct-Access     HP       P2000 G3 
FC      T201 PQ: 0 ANSI: 5
[329159.875773] sd 26:0:0:1: [sdc] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[329159.876161] sd 26:0:1:0: Attached scsi generic sg5 type 0
[329159.877438] sd 26:0:1:0: [sdd] 2341837312 512-byte logical blocks: 
(1.19 TB/1.08 TiB)
[329159.877904] scsi 26:0:1:1: Direct-Access     HP       P2000 G3 
FC      T201 PQ: 0 ANSI: 5
[329159.878004]  sdc:
[329159.878055] sd 26:0:1:0: [sdd] Write Protect is off
[329159.878060] sd 26:0:1:0: [sdd] Mode Sense: 93 00 00 08
[329159.878194] sd 26:0:1:0: [sdd] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[329159.878317] sd 26:0:1:1: Attached scsi generic sg6 type 0
[329159.878515] sd 26:0:1:1: [sde] 3512755968 512-byte logical blocks: 
(1.79 TB/1.63 TiB)
[329159.878830]  sdb: sdb1
[329159.881746] scsi 26:0:2:0: Enclosure         HP       P2000 G3 
FC      T201 PQ: 0 ANSI: 5
[329159.882031] scsi 26:0:2:0: Attached scsi generic sg7 type 13
[329159.883752] scsi 26:0:3:0: Enclosure         HP       P2000 G3 
FC      T201 PQ: 0 ANSI: 5
[329159.884035] scsi 26:0:3:0: Attached scsi generic sg8 type 13
[329159.884522] sd 26:0:1:1: [sde] Write Protect is off
[329159.884527] sd 26:0:1:1: [sde] Mode Sense: 93 00 00 08
[329159.884724]  sdd:
[329159.884980] sd 26:0:1:1: [sde] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[329159.884997]  sdd1
[329159.889013] sd 26:0:0:0: [sdb] Attached SCSI disk
[329159.890006]  sde:
[329159.893286] ses 26:0:2:0: Attached Enclosure device
[329159.893292] ses 26:0:3:0: Attached Enclosure device
[329159.893485] sd 26:0:1:0: [sdd] Attached SCSI disk
[329159.893668]  unknown partition table
[329159.895408] sd 26:0:0:1: [sdc] Attached SCSI disk
[329159.909052]  unknown partition table
[329159.910954] sd 26:0:1:1: [sde] Attached SCSI disk

And with the following patch applied on top of 
b0cd579cde8ee0c7ed52239531ba09bcbc5b54c2, "Unable to read FCP priority 
data." message disappears too but it may be a cosmetic fix I don't know:

 From 2f0f3f4f06f7cfadebf58b70bd9e7f71d8fd96e4 Mon Sep 17 00:00:00 2001
From: Madhuranath Iyengar <madhuranath.iyengar@qlogic.com>
Date: Fri, 23 Jul 2010 15:28:24 +0500
Subject: [PATCH 021/107] [SCSI] qla2xxx: Appropriately log FCP priority 
data messages

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>


-------

So I think at least the first commit that I've mentioned should be 
queued for the next 2.6.35.y to fix this issue.

Thanks,
Regards

Ozan Caglayan




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BISECTED] QLogic Corp. ISP2532-based 8Gb Fibre Channel not working on 2.6.35.y
  2011-04-19  9:23 [BISECTED] QLogic Corp. ISP2532-based 8Gb Fibre Channel not working on 2.6.35.y Ozan Çağlayan
@ 2011-04-19 16:58 ` Andi Kleen
  2011-04-19 17:04   ` James Bottomley
  0 siblings, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2011-04-19 16:58 UTC (permalink / raw)
  To: Ozan Çağlayan
  Cc: stable, giridhar.malavali, James.Bottomley, linux-kernel,
	andrew.vasquez

> From 2f0f3f4f06f7cfadebf58b70bd9e7f71d8fd96e4 Mon Sep 17 00:00:00 2001
> From: Madhuranath Iyengar <madhuranath.iyengar@qlogic.com>
> Date: Fri, 23 Jul 2010 15:28:24 +0500
> Subject: [PATCH 021/107] [SCSI] qla2xxx: Appropriately log FCP
> priority data messages
> 
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
> 
> 
> -------
> 
> So I think at least the first commit that I've mentioned should be
> queued for the next 2.6.35.y to fix this issue.

Thanks for the bisection.

Can I get an ack for that from the driver or SCSI maintainer or
patch author first please?
I don't understand the driver well enough to make a call myself.

Thanks,

-Andi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BISECTED] QLogic Corp. ISP2532-based 8Gb Fibre Channel not working on 2.6.35.y
  2011-04-19 16:58 ` Andi Kleen
@ 2011-04-19 17:04   ` James Bottomley
  2011-04-20  2:05     ` Madhu Iyengar
  0 siblings, 1 reply; 5+ messages in thread
From: James Bottomley @ 2011-04-19 17:04 UTC (permalink / raw)
  To: Andi Kleen
  Cc: Ozan Çağlayan, stable, giridhar.malavali, linux-kernel,
	andrew.vasquez

On Tue, 2011-04-19 at 09:58 -0700, Andi Kleen wrote:
> > From 2f0f3f4f06f7cfadebf58b70bd9e7f71d8fd96e4 Mon Sep 17 00:00:00 2001
> > From: Madhuranath Iyengar <madhuranath.iyengar@qlogic.com>
> > Date: Fri, 23 Jul 2010 15:28:24 +0500
> > Subject: [PATCH 021/107] [SCSI] qla2xxx: Appropriately log FCP
> > priority data messages
> > 
> > Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> > Signed-off-by: James Bottomley <James.Bottomley@suse.de>
> > 
> > 
> > -------
> > 
> > So I think at least the first commit that I've mentioned should be
> > queued for the next 2.6.35.y to fix this issue.
> 
> Thanks for the bisection.
> 
> Can I get an ack for that from the driver or SCSI maintainer or
> patch author first please?
> I don't understand the driver well enough to make a call myself.

I'll defer to qlogic ... it looks like a driver enhancement to add FCP
prioritised queues ... but it would be a bug fix, I suppose, if the card
can't actually operate without this.

James



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [BISECTED] QLogic Corp. ISP2532-based 8Gb Fibre Channel not working on 2.6.35.y
  2011-04-19 17:04   ` James Bottomley
@ 2011-04-20  2:05     ` Madhu Iyengar
  2011-04-20 20:57       ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Madhu Iyengar @ 2011-04-20  2:05 UTC (permalink / raw)
  To: James Bottomley, Andi Kleen
  Cc: Ozan Çağlayan, stable, Giridhar Malavali, linux-kernel,
	Andrew Vasquez


> -----Original Message-----
> From: James Bottomley [mailto:James.Bottomley@suse.de]
> Sent: Tuesday, April 19, 2011 10:04 AM
> To: Andi Kleen
> Cc: Ozan Çağlayan; stable; Giridhar Malavali; linux-kernel; Andrew Vasquez
> Subject: Re: [BISECTED] QLogic Corp. ISP2532-based 8Gb Fibre Channel not
> working on 2.6.35.y
>
> On Tue, 2011-04-19 at 09:58 -0700, Andi Kleen wrote:
> > > From 2f0f3f4f06f7cfadebf58b70bd9e7f71d8fd96e4 Mon Sep 17 00:00:00 2001
> > > From: Madhuranath Iyengar <madhuranath.iyengar@qlogic.com>
> > > Date: Fri, 23 Jul 2010 15:28:24 +0500
> > > Subject: [PATCH 021/107] [SCSI] qla2xxx: Appropriately log FCP
> > > priority data messages
> > >
> > > Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> > > Signed-off-by: James Bottomley <James.Bottomley@suse.de>
> > >
> > >
> > > -------
> > >
> > > So I think at least the first commit that I've mentioned should be
> > > queued for the next 2.6.35.y to fix this issue.
> >
> > Thanks for the bisection.
> >
> > Can I get an ack for that from the driver or SCSI maintainer or
> > patch author first please?
> > I don't understand the driver well enough to make a call myself.
>
> I'll defer to qlogic ... it looks like a driver enhancement to add FCP
> prioritised queues ... but it would be a bug fix, I suppose, if the card
> can't actually operate without this.
>
> James
>
>

For the qla2xxx patch above, here's the ack:
Acked-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>


This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [BISECTED] QLogic Corp. ISP2532-based 8Gb Fibre Channel not working on 2.6.35.y
  2011-04-20  2:05     ` Madhu Iyengar
@ 2011-04-20 20:57       ` Andi Kleen
  0 siblings, 0 replies; 5+ messages in thread
From: Andi Kleen @ 2011-04-20 20:57 UTC (permalink / raw)
  To: Madhu Iyengar
  Cc: James Bottomley, Ozan Çağlayan, stable,
	Giridhar Malavali, linux-kernel, Andrew Vasquez


Patch added, thanks.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-20 20:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-19  9:23 [BISECTED] QLogic Corp. ISP2532-based 8Gb Fibre Channel not working on 2.6.35.y Ozan Çağlayan
2011-04-19 16:58 ` Andi Kleen
2011-04-19 17:04   ` James Bottomley
2011-04-20  2:05     ` Madhu Iyengar
2011-04-20 20:57       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox