View Issue Details

IDProjectCategoryView StatusLast Update
0014844CentOS-7kernelpublic2018-05-22 13:27
Reportermarco 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
Product Version7.5.1804 
Target VersionFixed in Version 
Summary0014844: Kernel panic issuing a LIP with ql2xasynctmfenable=1
DescriptionConsidering kernel 3.10.0-862.2.3.el7.x86_64, the qla2xxx module(version 9.00.00.00.07.5-k1) has now by default ql2xasynctmfenable=1, even if the documentation still reports that the default is 0 (see additional info section).

Issuing a LIP lead after few seconds to a kernel panic, with a random trace every time.

Using ql2xasynctmfenable=0 fix the issue.
Steps To Reproduceecho 1 > /sys/class/fc_host/host<id>/issue_lip
Additional Informationdmesg about the device init
{{{
qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA Driver: 9.00.00.00.07.5-k1.
qla2xxx [0000:06:00.0]-001d: : Found an ISP2532 irq 62 iobase 0xffffb7510cede000.
scsi host7: qla2xxx
qla2xxx [0000:06:00.0]-00fb:7: QLogic QLE2562 - PCI-Express Dual Channel 8Gb Fibre Channel HBA.
qla2xxx [0000:06:00.0]-00fc:7: ISP2532: PCIe (5.0GT/s x8) @ 0000:06:00.0 hdma+ host#=7 fw=8.07.00 (90d5).
qla2xxx [0000:06:00.1]-001d: : Found an ISP2532 irq 24 iobase 0xffffb7510cefa000.
qla2xxx [0000:06:00.0]-500a:7: LOOP UP detected (8 Gbps).
scsi host8: qla2xxx
qla2xxx [0000:06:00.1]-00fb:8: QLogic QLE2562 - PCI-Express Dual Channel 8Gb Fibre Channel HBA.
qla2xxx [0000:06:00.1]-00fc:8: ISP2532: PCIe (5.0GT/s x8) @ 0000:06:00.1 hdma+ host#=8 fw=8.07.00 (90d5).
qla2xxx [0000:06:00.1]-500a:8: LOOP UP detected (8 Gbps).
}}}


drivers/scsi/qla2xxx/qla_os.c
{{{
int ql2xasynctmfenable = 1;
module_param(ql2xasynctmfenable, int, S_IRUGO);
MODULE_PARM_DESC(ql2xasynctmfenable,
                "Enables issue of TM IOCBs asynchronously via IOCB mechanism"
                "Default is 0 - Issue TM IOCBs via mailbox mechanism.");
}}}


grep -r . /sys/module/qla2xxx/parameters/
{{{
/sys/module/qla2xxx/parameters/fdmi:1
/sys/module/qla2xxx/parameters/ql2xiidmaenable:1
/sys/module/qla2xxx/parameters/ql2xenabledif:2
/sys/module/qla2xxx/parameters/ql2xmdenable:1
/sys/module/qla2xxx/parameters/ql2xiniexchg:1024
/sys/module/qla2xxx/parameters/qlport_down_retry:0
/sys/module/qla2xxx/parameters/ql2xtargetreset:1
/sys/module/qla2xxx/parameters/ql2xplogiabsentdevice:0
/sys/module/qla2xxx/parameters/ql2xexlogins:0
/sys/module/qla2xxx/parameters/ql2xlogintimeout:20
/sys/module/qla2xxx/parameters/ql2xmqsupport:0
/sys/module/qla2xxx/parameters/logging:0
/sys/module/qla2xxx/parameters/ql2xmaxqdepth:64
/sys/module/qla2xxx/parameters/ql2xetsenable:0
/sys/module/qla2xxx/parameters/qlini_mode:enabled
/sys/module/qla2xxx/parameters/ql2xenablehba_err_chk:2
/sys/module/qla2xxx/parameters/ql2xexchoffld:1024
/sys/module/qla2xxx/parameters/fwload:0
/sys/module/qla2xxx/parameters/ql2xshiftctondsd:6
/sys/module/qla2xxx/parameters/ql2xautodetectsfp:1
/sys/module/qla2xxx/parameters/ql2xasynctmfenable:1
/sys/module/qla2xxx/parameters/ql_dm_tgt_ex_pct:0
/sys/module/qla2xxx/parameters/ql2xtgt_tape_enable:0
/sys/module/qla2xxx/parameters/ql2xdbwr:1
/sys/module/qla2xxx/parameters/ql2xextended_error_logging:0
/sys/module/qla2xxx/parameters/ql2xloginretrycount:0
/sys/module/qla2xxx/parameters/ql2xfwholdabts:0
/sys/module/qla2xxx/parameters/ql2xfwloadbin:0
/sys/module/qla2xxx/parameters/ql2xmaxlun:65535
/sys/module/qla2xxx/parameters/ql2xenableclass2:0
/sys/module/qla2xxx/parameters/ql2xmdcapmask:31
/sys/module/qla2xxx/parameters/ql2xfdmienable:1
/sys/module/qla2xxx/parameters/ql2xallocfwdump:1
/sys/module/qla2xxx/parameters/ql2xdontresethba:0
/sys/module/qla2xxx/parameters/ql2xgffidenable:0
/sys/module/qla2xxx/parameters/ql2xmvasynctoatio:1
}}}
TagsNo tags attached.
abrt_hash
URL

Activities

toracat

toracat

2018-05-21 22:14

manager   ~0031884

Last edited: 2018-05-22 13:27

View 3 revisions

It looks like that code change was made upstream (kernel.org) as of kernel 4.14 [1,2] and was backported by Red Hat to the EL7.5 kernel. You might want to report the issue at http://bugzilla.redhat.com . CentOS is a rebuild of RHEL, so cannot revert the change unless it is done at RH.

[1] https://www.spinics.net/lists/linux-scsi/msg112248.html
[2] https://www.spinics.net/lists/linux-scsi/msg112226.html

marco

marco

2018-05-22 09:41

reporter   ~0031885

Thank you @toracat - Reported as https://bugzilla.redhat.com/show_bug.cgi?id=1581176

Issue History

Date Modified Username Field Change
2018-05-21 10:02 marco New Issue
2018-05-21 22:14 toracat Note Added: 0031884
2018-05-21 22:18 toracat Note Edited: 0031884 View Revisions
2018-05-22 09:41 marco Note Added: 0031885
2018-05-22 13:27 toracat Note Edited: 0031884 View Revisions