QLA2342 target issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So,
I have a QLA2342 (ISP2312 chip) that i am trying to use as a FC
target. ( well i have two i want to use as targets and two as
initiators )

The targetcli util loads the modules and seems to work correctly. When
i go to create a target in the qla2xxx/ directory, the command never
returns and hangs indefinitely.

After some debugging i have found that the
qlt_24xx_process_atio_queue( ) function has a while loop that never
exits. This while loop in particular:

         while (ha->tgt.atio_ring_ptr->signature != ATIO_PROCESSED) {

"ha->tgt.atio_ring_ptr->signature" seems to always be zero.

Another problem i noticed is that the variable "cnt" is always zero.
Thus the for loop is always skipped, which skips the part where the
signature is changed ( i think ).


I am running a 3.6.1 kernel with a tiny modification to have the card
start up in target mode by default:

I replaced:
static char *qlini_mode = QLA2XXX_INI_MODE_STR_ENABLED;

with:
static char *qlini_mode = QLA2XXX_INI_MODE_STR_DISABLED;


Here is a look at the lspci -vv of the QLogic card:

01:03.1 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to
PCI-X HBA (rev 02)
Subsystem: QLogic Corp. Device 0101
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+
Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 128 (16000ns min), Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 29
Region 0: I/O ports at 8000 [size=256]
Region 1: Memory at fc7fd000 (64-bit, non-prefetchable) [size=4K]
Expansion ROM at fc780000 [disabled] [size=128K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [4c] PCI-X non-bridge device
Command: DPERE- ERO+ RBC=512 OST=2
Status: Dev=01:03.1 64bit+ 133MHz+ SCD- USC- DC=simple DMMRBC=4096
DMOST=3 DMCRS=32 RSCEM- 266MHz- 533MHz-
Capabilities: [54] MSI: Enable- Count=1/8 Maskable- 64bit+
Address: 0000000000000000  Data: 0000
Capabilities: [64] CompactPCI hot-swap <?>
Kernel driver in use: qla2xxx
Kernel modules: qla2xxx



Here are some highlights from dmesg:

[   88.248429] qla2xxx [0000:01:03.0]-00af:8: Performing ISP error
recovery - ha=ffff8800f6c1c000.
[   89.096020] qla2xxx [0000:01:03.0]-505f:8: Link is operational (2 Gbps).
[   89.132008] ------------[ cut here ]------------
[   89.132008] WARNING: at kernel/watchdog.c:242
watchdog_overflow_callback+0x9a/0xc0()
[   89.132008] Hardware name: To Be Filled By O.E.M.
[   89.132008] Watchdog detected hard LOCKUP on cpu 3
[   89.132008] Modules linked in: tcm_qla2xxx iscsi_target_mod tcm_fc
libfc tcm_loop target_core_mod configfs amd64_edac_mod edac_core
psmouse i2c_amd756 k8temp i2c_amd8111 hid_generic edac_mce_amd
serio_raw mac_hid shpchp amd_rng lp parport usbhid hid qla2xxx e100
scsi_transport_fc sata_sil scsi_tgt
[   89.132008] Pid: 236, comm: qla2xxx_8_dpc Not tainted 3.6.1 #3
[   89.132008] Call Trace:
[   89.132008]  <NMI>  [<ffffffff81055b0f>] warn_slowpath_common+0x7f/0xc0
[   89.132008]  [<ffffffff81055c06>] warn_slowpath_fmt+0x46/0x50
[   89.132008]  [<ffffffff810e270a>] watchdog_overflow_callback+0x9a/0xc0
[   89.132008]  [<ffffffff8111df5c>] __perf_event_overflow+0x9c/0x220
[   89.132008]  [<ffffffff8111b314>] ? perf_event_update_userpage+0x24/0x110
[   89.132008]  [<ffffffff8111eb04>] perf_event_overflow+0x14/0x20
[   89.132008]  [<ffffffff810257d3>] x86_pmu_handle_irq+0xe3/0x130
[   89.132008]  [<ffffffff8166fac1>] perf_event_nmi_handler+0x21/0x30
[   89.132008]  [<ffffffff8166f261>] nmi_handle.isra.0+0x51/0x80
[   89.132008]  [<ffffffff8166f378>] do_nmi+0xe8/0x370
[   89.132008]  [<ffffffff8166e880>] end_repeat_nmi+0x1e/0x2e
[   89.132008]  [<ffffffffa0092d6b>] ?
qlt_24xx_process_atio_queue+0xbb/0xe0 [qla2xxx]
[   89.132008]  [<ffffffffa0092d6b>] ?
qlt_24xx_process_atio_queue+0xbb/0xe0 [qla2xxx]
[   89.132008]  [<ffffffffa0092d6b>] ?
qlt_24xx_process_atio_queue+0xbb/0xe0 [qla2xxx]
[   89.132008]  <<EOE>>  [<ffffffffa0054317>]
qla2x00_abort_isp+0x677/0x6a0 [qla2xxx]
[   89.132008]  [<ffffffffa0049d6c>] qla2x00_do_dpc+0x5ac/0x600 [qla2xxx]
[   89.132008]  [<ffffffffa00497c0>] ? qla2x00_relogin+0x200/0x200 [qla2xxx]
[   89.132008]  [<ffffffff8107a423>] kthread+0x93/0xa0
[   89.132008]  [<ffffffff81677244>] kernel_thread_helper+0x4/0x10
[   89.132008]  [<ffffffff8107a390>] ? flush_kthread_worker+0xb0/0xb0
[   89.132008]  [<ffffffff81677240>] ? gs_change+0x13/0x13
[   89.132008] ---[ end trace 0a8a4d7156362536 ]---
[  149.344012] INFO: rcu_sched detected stalls on CPUs/tasks: { 3}
(detected by 0, t=15005 jiffies)
[  149.344026] sending NMI to all CPUs:
[   89.132008] NMI backtrace for cpu 3
[   89.132008] CPU 3
[   89.132008] Pid: 236, comm: qla2xxx_8_dpc Tainted: G        W
3.6.1 #3 To Be Filled By O.E.M. To Be Filled By O.E.M./TYAN High-End
Dual AMD Opteron, S2882
[   89.132008] RIP: 0010:[<ffffffffa0092d06>]  [<ffffffffa0092d06>]
qlt_24xx_process_atio_queue+0x56/0xe0 [qla2xxx]
[   89.132008] RSP: 0018:ffff8800f6cfde00  EFLAGS: 00000046
[   89.132008] RAX: 0000000000000000 RBX: ffff8800f6c1c000 RCX: ffffffffa00a2fe8
[   89.132008] RDX: 000000000000e040 RSI: ffff8800f6c126c0 RDI: 0000000000004000
[   89.132008] RBP: ffff8800f6cfde30 R08: 0000000000000000 R09: 0000000000000000
[   89.132008] R10: ffff8800f6c1c000 R11: ffffc9000165a000 R12: ffff8800f77ff000
[   89.132008] R13: 0000000000000000 R14: ffff8800f6c126c0 R15: ffffc9000165a000
[   89.132008] FS:  00007fdf9c87d700(0000) GS:ffff8801ffd00000(0000)
knlGS:0000000000000000
[   89.132008] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[   89.132008] CR2: 00007fe3aaf22ee0 CR3: 00000001eda46000 CR4: 00000000000007e0
[   89.132008] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   89.132008] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   89.132008] Process qla2xxx_8_dpc (pid: 236, threadinfo
ffff8800f6cfc000, task ffff8800f6c296d0)
[   89.132008] Stack:
[   89.132008]  ffff8800f6cfde10 ffff8800f6c1c000 ffff8800f6c126c0
ffff8800f6c1c040
[   89.132008]  0000000000000000 0000000000000282 ffff8800f6cfde90
ffffffffa0054317
[   89.132008]  ffff8800f32a16d0 ffff8800f6c12720 ffff8800f32c8a00
ffff8800f6c24000
[   89.132008] Call Trace:
[   89.132008]  [<ffffffffa0054317>] qla2x00_abort_isp+0x677/0x6a0 [qla2xxx]
[   89.132008]  [<ffffffffa0049d6c>] qla2x00_do_dpc+0x5ac/0x600 [qla2xxx]
[   89.132008]  [<ffffffffa00497c0>] ? qla2x00_relogin+0x200/0x200 [qla2xxx]
[   89.132008]  [<ffffffff8107a423>] kthread+0x93/0xa0
[   89.132008]  [<ffffffff81677244>] kernel_thread_helper+0x4/0x10
[   89.132008]  [<ffffffff8107a390>] ? flush_kthread_worker+0xb0/0xb0
[   89.132008]  [<ffffffff81677240>] ? gs_change+0x13/0x13
[   89.132008] Code: 84 9b 00 00 00 4c 8b a3 60 06 00 00 41 81 7c 24
3c ad de ad de 74 7e 45 0f b6 6c 24 01 4c 89 e6 4c 89 f7 e8 fd e7 ff
ff 45 85 ed <74> 60 31 c0 eb 24 0f 1f 40 00 48 83 83 60 06 00 00 40 83
c0 01




Thoughts anyone? I really could use some help.

I did manage to get a FC target running with openfiler and SCST but i
do not like running 2.6 kernels much.

--Dave
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux