All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
@ 2004-01-19 17:38 Andrew Vasquez
  2004-01-19 21:42 ` Michael W. Shaffer
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Vasquez @ 2004-01-19 17:38 UTC (permalink / raw)
  To: Michael W. Shaffer; +Cc: linux-scsi

On , linux-scsi-owner@vger.kernel.org wrote:
> Ok, I don't know if this was the 'right' fix, but I noticed
> that the Kconfig file in the qla2xxx directory was different
> in the -b9 resync patchset, so I tried copying the old one
> back from the plain 2.6.1-mm4 tree, and now I got the
> modules built and installed.

I'll take a look at this.

> After enabling debugging and
> rebooting -- we now have LUNs! Attached is the output from
> /var/log/messages showing the -b9 module loading and finding
> the Nexsan arrays and their associated disk volumes. There
> are supposed to be two LUNs per array as shown, and now I
> have disk devices /dev/sdb - /dev/sde as expected. The
> unknown partition table comments are correct also, since
> I'm using the raw devices without any partitioning as
> members of RAID1 mirror sets.
>

Good.
 
> A couple of minor points:
> 
> - It appears that the patched driver still reports itself
>   as v8.00.00b8-debug, rather than b9.
> 

Thanks, will address in next resync

> - Someone noted this on the list before I think, but I also
>   noticed it: when you unload and re-load the qla2300 module,
>   it appears to not be decrementing some counter. The first
>   time, you get /proc/scsi/qla2xxx/2 and /proc/scsi/qla2xxx/3,
>   and the second time you get /4 and /5, and so forth, each
>   time you re-load. The logical names of the scsi devices
>   are not affected, just the numbers in the /proc/scsi/qla2xxx  
> directory. 
> 

It's my understanding that this is the expected behaviour.  
Note the following code from scsi_host_alloc() in hosts.c:

	...
	init_MUTEX(&shost->scan_mutex);

	shost->host_no = scsi_host_next_hn++; /* XXX(hch): still racy */

	...

scsi_host_next_hn is never decremented.

Regards,
Andrew Vasquez

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

* RE: No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
  2004-01-19 17:38 No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300 Andrew Vasquez
@ 2004-01-19 21:42 ` Michael W. Shaffer
  0 siblings, 0 replies; 9+ messages in thread
From: Michael W. Shaffer @ 2004-01-19 21:42 UTC (permalink / raw)
  To: Andrew Vasquez; +Cc: linux-scsi

--- Andrew Vasquez <andrew.vasquez@qlogic.com> wrote:
> On , linux-scsi-owner@vger.kernel.org wrote:
> > Ok, I don't know if this was the 'right' fix, but I noticed
> > that the Kconfig file in the qla2xxx directory was different
> > in the -b9 resync patchset, so I tried copying the old one
> > back from the plain 2.6.1-mm4 tree, and now I got the
> > modules built and installed.
> 
> I'll take a look at this.

FWIW, recipe to reproduce is:

- Unpack vanilla 2.6.1 tree
- Apply 2.6.1-mm4 patch
- Apply 8.00.00b9-resync patch
- Run make 'menuconfig' and then 'make'. Note that you are
  able to see the config selections for all three modules
  in menuconfig, and you can select them, the directory is
  just ignored during the build and install.


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

* RE: No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
  2004-01-19 16:55 Andrew Vasquez
@ 2004-01-19 17:06 ` James Bottomley
  0 siblings, 0 replies; 9+ messages in thread
From: James Bottomley @ 2004-01-19 17:06 UTC (permalink / raw)
  To: Andrew Vasquez; +Cc: Michael W. Shaffer, SCSI Mailing List

On Mon, 2004-01-19 at 11:55, Andrew Vasquez wrote:
> The problem is during the removal of the failover and IOCTL code
> from the scsi-qla2xxx-2.6 tree, one critical piece of code
> (a one-liner) was inadvertently removed that effectively disables
> the drivers ability to bind fcports (devices found in the loop
> or fabric) to the SCSI nexus (h/b/t/l).

OK, my fault, I'm sorry.  I actually only have a single qla2340 and no
attached storage, so I wasn't able to see the problem when I did the
driver code editing.  I'll push the patch ASAP.

James



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

* RE: No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
@ 2004-01-19 16:55 Andrew Vasquez
  2004-01-19 17:06 ` James Bottomley
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Vasquez @ 2004-01-19 16:55 UTC (permalink / raw)
  To: Michael W. Shaffer; +Cc: linux-scsi

[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

On Monday, January 19, 2004 12:25 AM, Michael W. Shaffer wrote:
> Well, I got through step 1 ok, enabling the debug options in
> the source files you mentioned in the plain 2.6.1-mm4 source
> and retesting.

I should have picked up on this from my work on Friday when I 
noticed this ommision when creating the resync-b9 patch.  

The problem is during the removal of the failover and IOCTL code
from the scsi-qla2xxx-2.6 tree, one critical piece of code
(a one-liner) was inadvertently removed that effectively disables
the drivers ability to bind fcports (devices found in the loop
or fabric) to the SCSI nexus (h/b/t/l).

Here's the patch inlined (I'll also attach just in case) against
a vanilla 2.6.1-mm4 tree:

--- linux-2.6.1-mm4/drivers/scsi/qla2xxx/qla_init.c.orig	2004-01-19 08:23:46.924323032 -0800
+++ linux-2.6.1-mm4/drivers/scsi/qla2xxx/qla_init.c	2004-01-19 08:24:48.860907240 -0800
@@ -1592,6 +1592,8 @@
 	if (!atomic_read(&ha->loop_down_timer) &&
 	    !(test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags))) {
 
+		qla2x00_config_os(ha);
+
 		/* If we found all devices then go ready */
 		if (!(test_bit(LOGIN_RETRY_NEEDED, &ha->dpc_flags))) {
 			atomic_set(&ha->loop_state, LOOP_READY);

This fix is already in the resync-b9 codes.  

Regards,
Andrew Vasquez

[-- Attachment #2: bind_fcports-v8.00.00b8-mm4.diff --]
[-- Type: application/octet-stream, Size: 484 bytes --]

--- linux-2.6.1-mm4/drivers/scsi/qla2xxx/qla_init.c.orig	2004-01-19 08:23:46.924323032 -0800
+++ linux-2.6.1-mm4/drivers/scsi/qla2xxx/qla_init.c	2004-01-19 08:24:48.860907240 -0800
@@ -1592,6 +1592,8 @@
 	if (!atomic_read(&ha->loop_down_timer) &&
 	    !(test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags))) {
 
+		qla2x00_config_os(ha);
+
 		/* If we found all devices then go ready */
 		if (!(test_bit(LOGIN_RETRY_NEEDED, &ha->dpc_flags))) {
 			atomic_set(&ha->loop_state, LOOP_READY);

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

* Re: No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
  2004-01-19  5:27 ` Andrew Vasquez
  2004-01-19  6:36   ` Michael W. Shaffer
  2004-01-19  8:24   ` Michael W. Shaffer
@ 2004-01-19 16:09   ` Michael W. Shaffer
  2 siblings, 0 replies; 9+ messages in thread
From: Michael W. Shaffer @ 2004-01-19 16:09 UTC (permalink / raw)
  To: Andrew Vasquez; +Cc: linux-scsi

Ok, I don't know if this was the 'right' fix, but I noticed
that the Kconfig file in the qla2xxx directory was different
in the -b9 resync patchset, so I tried copying the old one
back from the plain 2.6.1-mm4 tree, and now I got the
modules built and installed. After enabling debugging and
rebooting -- we now have LUNs! Attached is the output from
/var/log/messages showing the -b9 module loading and finding
the Nexsan arrays and their associated disk volumes. There
are supposed to be two LUNs per array as shown, and now I
have disk devices /dev/sdb - /dev/sde as expected. The
unknown partition table comments are correct also, since
I'm using the raw devices without any partitioning as
members of RAID1 mirror sets.

A couple of minor points:

- It appears that the patched driver still reports itself
  as v8.00.00b8-debug, rather than b9.

- Someone noted this on the list before I think, but I also
  noticed it: when you unload and re-load the qla2300 module,
  it appears to not be decrementing some counter. The first
  time, you get /proc/scsi/qla2xxx/2 and /proc/scsi/qla2xxx/3,
  and the second time you get /4 and /5, and so forth, each
  time you re-load. The logical names of the scsi devices
  are not affected, just the numbers in the /proc/scsi/qla2xxx
  directory.

/var/log/messages
-----------------------------------------------------------
Jan 19 07:55:14 thing2 kernel: QLogic Fibre Channel HBA Driver (f88bd000)
Jan 19 07:55:20 thing2 kernel: qla2300 0000:01:02.0: Found an ISP2312, irq
25, iobase 0xf8895000
Jan 19 07:55:20 thing2 kernel: qla2300 0000:01:02.0: Configuring PCI
space...
Jan 19 07:55:20 thing2 kernel: qla2300 0000:01:02.0: Configure NVRAM
parameters...
Jan 19 07:55:20 thing2 kernel: qla2300 0000:01:02.0: Verifying loaded RISC
code...
Jan 19 07:55:20 thing2 kernel: scsi(2): **** Load RISC code ****
Jan 19 07:55:20 thing2 kernel: scsi(2): Verifying Checksum of loaded RISC
code.
Jan 19 07:55:20 thing2 kernel: scsi(2): Checksum OK, start firmware.
Jan 19 07:55:20 thing2 kernel: scsi(2): Issue init firmware.
Jan 19 07:55:20 thing2 kernel: scsi(2): Asynchronous LIP RESET (f8f7).
Jan 19 07:55:20 thing2 kernel: qla2300 0000:01:02.0: LIP reset occured
(f8f7).
Jan 19 07:55:20 thing2 kernel: qla2300 0000:01:02.0: Waiting for LIP to
complete...
Jan 19 07:55:21 thing2 kernel: scsi(2): LIP occured (f8f7).
Jan 19 07:55:21 thing2 kernel: qla2300 0000:01:02.0: LIP occured (f8f7).
Jan 19 07:55:21 thing2 kernel: scsi(2): Asynchronous LOOP UP (2 Gbps).
Jan 19 07:55:21 thing2 kernel: qla2300 0000:01:02.0: LOOP UP detected (2
Gbps).
Jan 19 07:55:21 thing2 kernel: scsi(2): Asynchronous PORT UPDATE.
Jan 19 07:55:21 thing2 kernel: scsi(2): Port database changed ffff 0006.
Jan 19 07:55:21 thing2 kernel: scsi(2): F/W Ready - OK 
Jan 19 07:55:21 thing2 kernel: scsi(2): fw_state=3 curr time=fffe433e.
Jan 19 07:55:21 thing2 kernel: qla2300 0000:01:02.0: Topology - (Loop), Host
Loop address 0x1
Jan 19 07:55:21 thing2 kernel: scsi(2): Configure loop -- dpc flags =0x80040
Jan 19 07:55:22 thing2 kernel: qla2x00_mailbox_command(2): **** FAILED.
mbx0=4006, mbx1=7e, mbx2=0, cmd=6a ****
Jan 19 07:55:22 thing2 kernel: qla2x00_get_port_name(2): failed=102.
Jan 19 07:55:22 thing2 kernel: scsi(2): MBC_GET_PORT_NAME Failed, No FL Port
Jan 19 07:55:22 thing2 kernel: scsi(2): Alloc Target 0 @ f7a4b800
Jan 19 07:55:22 thing2 kernel: scsi(2): Assigning target ID=00 @ f7a4b800 to
loop id=0x0000, port state=0x4, port down retry=60
Jan 19 07:55:22 thing2 kernel: scsi(2): Alloc Lun 0 @ tgt 0.
Jan 19 07:55:22 thing2 kernel: scsi(2): Alloc Lun 1 @ tgt 0.
Jan 19 07:55:22 thing2 kernel: scsi(2): LOOP READY
Jan 19 07:55:22 thing2 kernel: DEBUG: detect hba 2 at address = f6c9c1b8
Jan 19 07:55:22 thing2 kernel: scsi2 : qla2xxx
Jan 19 07:55:22 thing2 kernel: qla2300 0000:01:02.0: 
Jan 19 07:55:22 thing2 kernel:  QLogic Fibre Channel HBA Driver:
8.00.00b8-debug
Jan 19 07:55:22 thing2 kernel:   QLogic QLA2340 - 
Jan 19 07:55:22 thing2 kernel:   ISP2312: PCI (66 MHz) @ 0000:01:02.0 hdma-,
host#=2, fw=3.02.20 IPX
Jan 19 07:55:22 thing2 kernel:   Vendor: NEXSAN    Model: ATAboy(821DFC56) 
Rev: 5020
Jan 19 07:55:22 thing2 kernel:   Type:   Direct-Access                     
ANSI SCSI revision: 04
Jan 19 07:55:22 thing2 kernel: qla2300 0000:01:02.0: scsi(2:0:0:0): Enabled
tagged queuing, queue depth 32.
Jan 19 07:55:23 thing2 kernel: SCSI device sdb: 3904296875 512-byte hdwr
sectors (1999000 MB)
Jan 19 07:55:23 thing2 kernel: SCSI device sdb: drive cache: write back
Jan 19 07:55:23 thing2 kernel:  sdb: unknown partition table
Jan 19 07:55:23 thing2 kernel: Attached scsi disk sdb at scsi2, channel 0,
id 0, lun 0
Jan 19 07:55:23 thing2 kernel: Attached scsi generic sg2 at scsi2, channel
0, id 0, lun 0,  type 0
Jan 19 07:55:23 thing2 kernel: scsi(2:0:0) UNDERRUN status detected
0x15-0x800.
Jan 19 07:55:23 thing2 kernel:   Vendor: NEXSAN    Model: ATAboy(821DFC56) 
Rev: 5020
Jan 19 07:55:23 thing2 kernel:   Type:   Direct-Access                     
ANSI SCSI revision: 04
Jan 19 07:55:23 thing2 kernel: qla2300 0000:01:02.0: scsi(2:0:0:1): Enabled
tagged queuing, queue depth 32.
Jan 19 07:55:23 thing2 kernel: SCSI device sdc: 196367187 512-byte hdwr
sectors (100540 MB)
Jan 19 07:55:23 thing2 kernel: SCSI device sdc: drive cache: write back
Jan 19 07:55:23 thing2 kernel:  sdc: unknown partition table
Jan 19 07:55:23 thing2 kernel: Attached scsi disk sdc at scsi2, channel 0,
id 0, lun 1
Jan 19 07:55:23 thing2 kernel: Attached scsi generic sg3 at scsi2, channel
0, id 0, lun 1,  type 0
Jan 19 07:55:24 thing2 kernel: qla2300 0000:01:03.0: Found an ISP2312, irq
25, iobase 0xf889b000
Jan 19 07:55:24 thing2 kernel: qla2300 0000:01:03.0: Configuring PCI
space...
Jan 19 07:55:24 thing2 kernel: qla2300 0000:01:03.0: Configure NVRAM
parameters...
Jan 19 07:55:24 thing2 kernel: qla2300 0000:01:03.0: Verifying loaded RISC
code...
Jan 19 07:55:24 thing2 kernel: scsi(3): **** Load RISC code ****
Jan 19 07:55:24 thing2 kernel: scsi(3): Verifying Checksum of loaded RISC
code.
Jan 19 07:55:24 thing2 kernel: scsi(3): Checksum OK, start firmware.
Jan 19 07:55:24 thing2 kernel: scsi(3): Issue init firmware.
Jan 19 07:55:24 thing2 kernel: scsi(3): Asynchronous LIP RESET (f8f7).
Jan 19 07:55:24 thing2 kernel: qla2300 0000:01:03.0: LIP reset occured
(f8f7).
Jan 19 07:55:24 thing2 kernel: qla2300 0000:01:03.0: Waiting for LIP to
complete...
Jan 19 07:55:25 thing2 kernel: scsi(3): LIP occured (f8f7).
Jan 19 07:55:25 thing2 kernel: qla2300 0000:01:03.0: LIP occured (f8f7).
Jan 19 07:55:25 thing2 kernel: scsi(3): Asynchronous LOOP UP (2 Gbps).
Jan 19 07:55:25 thing2 kernel: qla2300 0000:01:03.0: LOOP UP detected (2
Gbps).
Jan 19 07:55:25 thing2 kernel: scsi(3): Asynchronous PORT UPDATE.
Jan 19 07:55:25 thing2 kernel: scsi(3): Port database changed ffff 0006.
Jan 19 07:55:25 thing2 kernel: scsi(3): F/W Ready - OK 
Jan 19 07:55:25 thing2 kernel: scsi(3): fw_state=3 curr time=fffe51b1.
Jan 19 07:55:25 thing2 kernel: qla2300 0000:01:03.0: Topology - (Loop), Host
Loop address 0x1
Jan 19 07:55:25 thing2 kernel: scsi(3): Configure loop -- dpc flags =0x80040
Jan 19 07:55:25 thing2 kernel: qla2x00_mailbox_command(3): **** FAILED.
mbx0=4006, mbx1=7e, mbx2=0, cmd=6a ****
Jan 19 07:55:25 thing2 kernel: qla2x00_get_port_name(3): failed=102.
Jan 19 07:55:25 thing2 kernel: scsi(3): MBC_GET_PORT_NAME Failed, No FL Port
Jan 19 07:55:25 thing2 kernel: scsi(3): Alloc Target 0 @ f6cf1800
Jan 19 07:55:25 thing2 kernel: scsi(3): Assigning target ID=00 @ f6cf1800 to
loop id=0x0000, port state=0x4, port down retry=60
Jan 19 07:55:26 thing2 kernel: scsi(3): Alloc Lun 0 @ tgt 0.
Jan 19 07:55:26 thing2 kernel: scsi(3): Alloc Lun 1 @ tgt 0.
Jan 19 07:55:26 thing2 kernel: scsi(3): LOOP READY
Jan 19 07:55:26 thing2 kernel: DEBUG: detect hba 3 at address = f6bf01b8
Jan 19 07:55:26 thing2 kernel: scsi3 : qla2xxx
Jan 19 07:55:26 thing2 kernel: qla2300 0000:01:03.0: 
Jan 19 07:55:26 thing2 kernel:  QLogic Fibre Channel HBA Driver:
8.00.00b8-debug
Jan 19 07:55:26 thing2 kernel:   QLogic QLA2340 - 
Jan 19 07:55:26 thing2 kernel:   ISP2312: PCI (66 MHz) @ 0000:01:03.0 hdma-,
host#=3, fw=3.02.20 IPX
Jan 19 07:55:26 thing2 kernel:   Vendor: NEXSAN    Model: ATAboy(821DFC55) 
Rev: 5020
Jan 19 07:55:26 thing2 kernel:   Type:   Direct-Access                     
ANSI SCSI revision: 04
Jan 19 07:55:26 thing2 kernel: qla2300 0000:01:03.0: scsi(3:0:0:0): Enabled
tagged queuing, queue depth 32.
Jan 19 07:55:26 thing2 kernel: SCSI device sdd: 3904296875 512-byte hdwr
sectors (1999000 MB)
Jan 19 07:55:26 thing2 kernel: SCSI device sdd: drive cache: write back
Jan 19 07:55:26 thing2 kernel:  sdd: unknown partition table
Jan 19 07:55:26 thing2 kernel: Attached scsi disk sdd at scsi3, channel 0,
id 0, lun 0
Jan 19 07:55:26 thing2 kernel: Attached scsi generic sg4 at scsi3, channel
0, id 0, lun 0,  type 0
Jan 19 07:55:27 thing2 kernel: scsi(3:0:0) UNDERRUN status detected
0x15-0x800.
Jan 19 07:55:27 thing2 kernel:   Vendor: NEXSAN    Model: ATAboy(821DFC55) 
Rev: 5020
Jan 19 07:55:27 thing2 kernel:   Type:   Direct-Access                     
ANSI SCSI revision: 04
Jan 19 07:55:27 thing2 kernel: qla2300 0000:01:03.0: scsi(3:0:0:1): Enabled
tagged queuing, queue depth 32.
Jan 19 07:55:27 thing2 kernel: SCSI device sde: 196367187 512-byte hdwr
sectors (100540 MB)
Jan 19 07:55:27 thing2 kernel: SCSI device sde: drive cache: write back
Jan 19 07:55:27 thing2 kernel:  sde: unknown partition table
Jan 19 07:55:27 thing2 kernel: Attached scsi disk sde at scsi3, channel 0,
id 0, lun 1
Jan 19 07:55:27 thing2 kernel: Attached scsi generic sg5 at scsi3, channel
0, id 0, lun 1,  type 0
----------------------------------------------------



__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

* Re: No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
  2004-01-19  5:27 ` Andrew Vasquez
  2004-01-19  6:36   ` Michael W. Shaffer
@ 2004-01-19  8:24   ` Michael W. Shaffer
  2004-01-19 16:09   ` Michael W. Shaffer
  2 siblings, 0 replies; 9+ messages in thread
From: Michael W. Shaffer @ 2004-01-19  8:24 UTC (permalink / raw)
  To: Andrew Vasquez; +Cc: linux-scsi

Well, I got through step 1 ok, enabling the debug options in
the source files you mentioned in the plain 2.6.1-mm4 source
and retesting. However, I have a problem building the kernel
when I apply the -mm4 patch and then apply your -b9 resync
patch as well. The patch applies just fine, and I went in to
turn on debugging, but for some reason the qla* modules just
refuse to build now. They don't have errors or anything, the
build process just appears to totally ignore the qla2xxx
directory. I tried running 'make mrproper', re-verifying
the config, and rebuilding, but still no luck, I just can't
get any of the qla* modules built or installed. Any idea
what I'm doing wrong?

Anyway, here is the relevant output from /var/log/messages
from loading the -b8 driver with debugging turned on. Not
knowing what I'm really looking for, the only thing that
appears to stick out is some sort of failed mailbox command.

/var/log/messages
----------------------------------------------------------
Jan 18 23:46:11 thing2 kernel: QLogic ISP2xxx PCI/PCI-X Fibre Channel HBA
Driver (f8a2c000)
Jan 18 23:46:18 thing2 kernel: qla2300 0000:01:02.0: Found an ISP2312, irq
25, iobase 0xf8893000
Jan 18 23:46:18 thing2 kernel: qla2300 0000:01:02.0: Configuring PCI
space...
Jan 18 23:46:18 thing2 kernel: qla2300 0000:01:02.0: Configure NVRAM
parameters...
Jan 18 23:46:18 thing2 kernel: qla2300 0000:01:02.0: Verifying loaded RISC
code...
Jan 18 23:46:18 thing2 kernel: scsi(2): **** Load RISC code ****
Jan 18 23:46:18 thing2 kernel: scsi(2): Verifying Checksum of loaded RISC
code.
Jan 18 23:46:18 thing2 kernel: scsi(2): Checksum OK, start firmware.
Jan 18 23:46:18 thing2 kernel: scsi(2): Issue init firmware.
Jan 18 23:46:19 thing2 kernel: scsi(2): Asynchronous LIP RESET (f8f7).
Jan 18 23:46:19 thing2 kernel: qla2300 0000:01:02.0: LIP reset occured
(f8f7).
Jan 18 23:46:19 thing2 kernel: qla2300 0000:01:02.0: Waiting for LIP to
complete...
Jan 18 23:46:19 thing2 kernel: scsi(2): LIP occured (f8f7).
Jan 18 23:46:19 thing2 kernel: qla2300 0000:01:02.0: LIP occured (f8f7).
Jan 18 23:46:19 thing2 kernel: scsi(2): Asynchronous LOOP UP (2 Gbps).
Jan 18 23:46:19 thing2 kernel: qla2300 0000:01:02.0: LOOP UP detected (2
Gbps).
Jan 18 23:46:19 thing2 kernel: scsi(2): Asynchronous PORT UPDATE.
Jan 18 23:46:19 thing2 kernel: scsi(2): Port database changed ffff 0006.
Jan 18 23:46:19 thing2 kernel: scsi(2): F/W Ready - OK 
Jan 18 23:46:20 thing2 kernel: scsi(2): fw_state=3 curr time=fffd7531.
Jan 18 23:46:20 thing2 kernel: qla2300 0000:01:02.0: Topology - (Loop), Host
Loop address 0x1
Jan 18 23:46:20 thing2 kernel: scsi(2): Configure loop -- dpc flags =0x80040
Jan 18 23:46:20 thing2 kernel: qla2x00_mailbox_command(2): **** FAILED.
mbx0=4006, mbx1=7e, mbx2=0, cmd=6a ****
Jan 18 23:46:20 thing2 kernel: qla2x00_get_port_name(2): failed=102.
Jan 18 23:46:20 thing2 kernel: scsi(2): MBC_GET_PORT_NAME Failed, No FL Port
Jan 18 23:46:20 thing2 kernel: scsi(2): LOOP READY
Jan 18 23:46:20 thing2 kernel: DEBUG: detect hba 2 at address = f6c8c1b8
Jan 18 23:46:20 thing2 kernel: scsi2 : qla2xxx
Jan 18 23:46:20 thing2 kernel: qla2300 0000:01:02.0: 
Jan 18 23:46:20 thing2 kernel:  QLogic ISP2xxx PCI/PCI-X Fibre Channel HBA
Driver: 8.00.00b8-debug
Jan 18 23:46:20 thing2 kernel:   QLogic QLA2340 - 
Jan 18 23:46:20 thing2 kernel:   ISP2312: PCI (66 MHz) @ 0000:01:02.0 hdma-,
host#=2, fw=3.02.18 TPX
Jan 18 23:46:20 thing2 kernel: qla2300 0000:01:03.0: Found an ISP2312, irq
25, iobase 0xf8895000
Jan 18 23:46:20 thing2 kernel: qla2300 0000:01:03.0: Configuring PCI
space...
Jan 18 23:46:20 thing2 kernel: qla2300 0000:01:03.0: Configure NVRAM
parameters...
Jan 18 23:46:21 thing2 kernel: qla2300 0000:01:03.0: Verifying loaded RISC
code...
Jan 18 23:46:21 thing2 kernel: scsi(3): **** Load RISC code ****
Jan 18 23:46:21 thing2 kernel: scsi(3): Verifying Checksum of loaded RISC
code.
Jan 18 23:46:21 thing2 kernel: scsi(3): Checksum OK, start firmware.
Jan 18 23:46:21 thing2 kernel: scsi(3): Issue init firmware.
Jan 18 23:46:21 thing2 kernel: scsi(3): Asynchronous LIP RESET (f8f7).
Jan 18 23:46:21 thing2 kernel: qla2300 0000:01:03.0: LIP reset occured
(f8f7).
Jan 18 23:46:21 thing2 kernel: qla2300 0000:01:03.0: Waiting for LIP to
complete...
Jan 18 23:46:22 thing2 kernel: scsi(3): LIP occured (f8f7).
Jan 18 23:46:22 thing2 kernel: qla2300 0000:01:03.0: LIP occured (f8f7).
Jan 18 23:46:22 thing2 kernel: scsi(3): Asynchronous LOOP UP (2 Gbps).
Jan 18 23:46:22 thing2 kernel: qla2300 0000:01:03.0: LOOP UP detected (2
Gbps).
Jan 18 23:46:22 thing2 kernel: scsi(3): F/W Ready - OK 
Jan 18 23:46:22 thing2 kernel: scsi(3): Asynchronous PORT UPDATE.
Jan 18 23:46:22 thing2 kernel: scsi(3): Port database changed ffff 0006.
Jan 18 23:46:22 thing2 kernel: scsi(3): fw_state=3 curr time=fffd7e28.
Jan 18 23:46:22 thing2 kernel: qla2300 0000:01:03.0: Topology - (Loop), Host
Loop address 0x1
Jan 18 23:46:22 thing2 kernel: scsi(3): Configure loop -- dpc flags =0x80040
Jan 18 23:46:22 thing2 kernel: qla2x00_mailbox_command(3): **** FAILED.
mbx0=4006, mbx1=7e, mbx2=0, cmd=6a ****
Jan 18 23:46:22 thing2 kernel: qla2x00_get_port_name(3): failed=102.
Jan 18 23:46:22 thing2 kernel: scsi(3): MBC_GET_PORT_NAME Failed, No FL Port
Jan 18 23:46:22 thing2 kernel: scsi(3): LOOP READY
Jan 18 23:46:22 thing2 kernel: DEBUG: detect hba 3 at address = f6c241b8
Jan 18 23:46:22 thing2 kernel: scsi3 : qla2xxx
Jan 18 23:46:22 thing2 kernel: qla2300 0000:01:03.0: 
Jan 18 23:46:22 thing2 kernel:  QLogic ISP2xxx PCI/PCI-X Fibre Channel HBA
Driver: 8.00.00b8-debug
Jan 18 23:46:22 thing2 kernel:   QLogic QLA2340 - 
Jan 18 23:46:22 thing2 kernel:   ISP2312: PCI (66 MHz) @ 0000:01:03.0 hdma-,
host#=3, fw=3.02.18 TPX
----------------------------------------------------------


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

* Re: No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
  2004-01-19  5:27 ` Andrew Vasquez
@ 2004-01-19  6:36   ` Michael W. Shaffer
  2004-01-19  8:24   ` Michael W. Shaffer
  2004-01-19 16:09   ` Michael W. Shaffer
  2 siblings, 0 replies; 9+ messages in thread
From: Michael W. Shaffer @ 2004-01-19  6:36 UTC (permalink / raw)
  To: Andrew Vasquez; +Cc: linux-scsi

> 1) Could you enable enable a couple of debug swtiches:
> 2) At the qla2xxx SF.net site, where is a patch that syncs the mm
> tree with the latest full driver (8.00.00b9).  Could you apply the
> patch, enable debug as before then rerun your test?

Thanks. Will do on both points. I'll post whatever I get
after I make these changes and re-test.


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

* Re: No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
  2004-01-18 23:25 Michael W. Shaffer
@ 2004-01-19  5:27 ` Andrew Vasquez
  2004-01-19  6:36   ` Michael W. Shaffer
                     ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Andrew Vasquez @ 2004-01-19  5:27 UTC (permalink / raw)
  To: mwshaffer; +Cc: linux-scsi

On Sun, 18 Jan 2004, Michael W. Shaffer wrote:

[snip]
> I just compiled kernel 2.6.1-mm4, which includes
> this merged version of the QLogic drivers called
> qla2xxx. I built the qla2300 driver as a module,
> and when I load it, the HBAs are detected just
> fine, and I see their port and node IDs, but no
> LUNs are detected, and no SCSI devices registered.
> 

>From the logs it appears the firmware recognized no SCSI devices
during its scan (the firmware handles device discovery in a loop).

> SCSI Device Information:
> scsi-qla0-adapter-node=200000e08b0e7851;
> scsi-qla0-adapter-port=210000e08b0e7851;
> 

Could you do two things for me:

1) Could you enable enable a couple of debug swtiches:

  In qla_settings.h update the following line:

        #define DEBUG_QLA2100           0       /* For Debug of qla2x00 */

  to read as:

        #define DEBUG_QLA2100           1       /* For Debug of qla2x00 */

  Then update qla_dbg.h or qla_def.h (depending on the driver version
  you are using) to have the following line:

        /* #define QL_DEBUG_LEVEL_2  */ /* Output error msgs to COM1 */

  to read as:

         #define QL_DEBUG_LEVEL_2   /* Output error msgs to COM1 */

  Rebuild the driver, reload, then forward the /var/log/messages file to
  me so that we can take a look at the information that is coming back
  from the firmware?

2) At the qla2xxx SF.net site, where is a patch that syncs the mm
tree with the latest full driver (8.00.00b9).  Could you apply the
patch, enable debug as before then rerun your test?


	http://prdownloads.sourceforge.net/linux-qla2xxx/qla2xxx-resync_bk-v8.00.00b9.diff.bz2


Regards,
Andrew Vasquez

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

* No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300
@ 2004-01-18 23:25 Michael W. Shaffer
  2004-01-19  5:27 ` Andrew Vasquez
  0 siblings, 1 reply; 9+ messages in thread
From: Michael W. Shaffer @ 2004-01-18 23:25 UTC (permalink / raw)
  To: linux-scsi

I have the following (briefly):

- HP NetServer LH6000r
- 2 x QLogic QLA2340 2GBps HBA
- 2 x Nexsan ATABoy2 RAID Array

The server has two HBAs in it. One HBA connects to
one array, the other HBA to the other array (duh).

Running kernel 2.4.21-xfs with the Feral Software
ISP driver loaded as a module, everything works
fine (well, except for the fact that 2.4 is a total
POS under I/O load...). Two HBAs detected, one LUN
shows up on each HBA, two SCSI block devices sdb
and sdc are registered, RAID1 across them, XFS file
system on /dev/md0 -- everything is happy.

I just compiled kernel 2.6.1-mm4, which includes
this merged version of the QLogic drivers called
qla2xxx. I built the qla2300 driver as a module,
and when I load it, the HBAs are detected just
fine, and I see their port and node IDs, but no
LUNs are detected, and no SCSI devices registered.

Apparently this new driver is my only option now.
I tried the qlogicfc and cpqfc drivers, but they
don't appear to recognize the HBAs I have at all.
The factory QLogic drivers don't work with 2.6,
and the Feral ISP driver was dropped from the -mm
patchset back around 2.6.1-test5 or so, apparently
because it is considered 'old and broken' (at least
with respect to 2.6, I've had very good results
with it so far in 2.4).

I can see on the status monitor for these arrays
that their ports change from 'Loop Down' to 'Loop Up'
status when I load the qla2300 driver, so it looks
like the HBA is being initialized and is joining the
loop ok or whatever -- it just doesn't give me any
disk devices to use. Reboot the system with the old
kernel -- everything works fine again.

Output of dmesg and contents of /proc/scsi/qla2xxx/*
below, any advice would be greatly appreciated.

dmesg:
-------------------------------------------------
QLogic ISP2xxx PCI/PCI-X Fibre Channel HBA Driver (f8a29000)
qla2300 0000:01:02.0: Found an ISP2312, irq 25, iobase 0xf8893000
qla2300 0000:01:02.0: Configuring PCI space...
qla2300 0000:01:02.0: Configure NVRAM parameters...
qla2300 0000:01:02.0: Verifying loaded RISC code...
qla2300 0000:01:02.0: LIP reset occured (f8f7).
qla2300 0000:01:02.0: Waiting for LIP to complete...
qla2300 0000:01:02.0: LIP occured (f8f7).
qla2300 0000:01:02.0: LOOP UP detected (2 Gbps).
qla2300 0000:01:02.0: Topology - (Loop), Host Loop address 0x1
scsi2 : qla2xxx
qla2300 0000:01:02.0:
 QLogic ISP2xxx PCI/PCI-X Fibre Channel HBA Driver: 8.00.00b8
  QLogic QLA2340 -
  ISP2312: PCI (66 MHz) @ 0000:01:02.0 hdma-, host#=2, fw=3.02.18 TPX
qla2300 0000:01:03.0: Found an ISP2312, irq 25, iobase 0xf8895000
qla2300 0000:01:03.0: Configuring PCI space...
qla2300 0000:01:03.0: Configure NVRAM parameters...
qla2300 0000:01:03.0: Verifying loaded RISC code...
qla2300 0000:01:03.0: LIP reset occured (f8f7).
qla2300 0000:01:03.0: Waiting for LIP to complete...
qla2300 0000:01:03.0: LIP occured (f8f7).
qla2300 0000:01:03.0: LOOP UP detected (2 Gbps).
qla2300 0000:01:03.0: Topology - (Loop), Host Loop address 0x1
scsi3 : qla2xxx
qla2300 0000:01:03.0:
 QLogic ISP2xxx PCI/PCI-X Fibre Channel HBA Driver: 8.00.00b8
  QLogic QLA2340 -
  ISP2312: PCI (66 MHz) @ 0000:01:03.0 hdma-, host#=3, fw=3.02.18 TPX
-------------------------------------------------

/proc/scsi/qla2xxx/2:
-------------------------------------------------
QLogic PCI to Fibre Channel Host Adapter for QLA2340:
        Firmware version 3.02.18 TPX, Driver version 8.00.00b8
Entry address = f8a29000
ISP: ISP2312, Serial# J38360
Request Queue = 0x36ba0000, Response Queue = 0x36b90000
Request Queue count = 1024, Response Queue count = 512
Total number of active commands = 0
Total number of interrupts = 14638
    Device queue depth = 0x10
Number of free request entries = 1023
Number of mailbox timeouts = 0
Number of ISP aborts = 0
Number of loop resyncs = 0
Number of retries for empty slots = 0
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
Host adapter:loop state = <READY>, flags = 0x1813
Dpc flags = 0x80000
MBX flags = 0x0
Link down Timeout = 030
Port down retry = 030
Login retry count = 030
Commands retried with dropped frame(s) = 0
Info -- pci=104 xchgs=0x200 iocbs=0x307


SCSI Device Information:
scsi-qla0-adapter-node=200000e08b0e7851;
scsi-qla0-adapter-port=210000e08b0e7851;

SCSI LUN Information:
(Id:Lun)  * - indicates lun is not registered with the OS.
-------------------------------------------------

/proc/scsi/qla2xxx/3:
-------------------------------------------------
QLogic PCI to Fibre Channel Host Adapter for QLA2340:
        Firmware version 3.02.18 TPX, Driver version 8.00.00b8
Entry address = f8a29000
ISP: ISP2312, Serial# J48818
Request Queue = 0x36b40000, Response Queue = 0x36b60000
Request Queue count = 1024, Response Queue count = 512
Total number of active commands = 0
Total number of interrupts = 8412
    Device queue depth = 0x10
Number of free request entries = 1023
Number of mailbox timeouts = 0
Number of ISP aborts = 0
Number of loop resyncs = 0
Number of retries for empty slots = 0
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
Host adapter:loop state = <READY>, flags = 0x1813
Dpc flags = 0x80000
MBX flags = 0x0
Link down Timeout = 030
Port down retry = 030
Login retry count = 030
Commands retried with dropped frame(s) = 0
Info -- pci=104 xchgs=0x200 iocbs=0x307


SCSI Device Information:
scsi-qla1-adapter-node=200000e08b0e527a;
scsi-qla1-adapter-port=210000e08b0e527a;

SCSI LUN Information:
(Id:Lun)  * - indicates lun is not registered with the OS.
-------------------------------------------------

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

end of thread, other threads:[~2004-01-19 21:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 17:38 No LUNs detected with 2.6.1-mm4 qla2xxx / qla2300 Andrew Vasquez
2004-01-19 21:42 ` Michael W. Shaffer
  -- strict thread matches above, loose matches on Subject: below --
2004-01-19 16:55 Andrew Vasquez
2004-01-19 17:06 ` James Bottomley
2004-01-18 23:25 Michael W. Shaffer
2004-01-19  5:27 ` Andrew Vasquez
2004-01-19  6:36   ` Michael W. Shaffer
2004-01-19  8:24   ` Michael W. Shaffer
2004-01-19 16:09   ` Michael W. Shaffer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.