| 
     
      
      
      From: Rob T. <ro...@rt...> - 2022-02-20 13:43:56
      
     
   | 
Hello,
I'm making a first attempt to add FC adapters for my VTL project. My 
adapter is a QLE2562, updated to latest available firmware.
$ sudo qaucli -i
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /root
--------------------------------------------------------------------------------
Host Name                      : fcvtl
Host NQN                       : N/A
HBA Instance                   : 0
HBA Model                      : QLE2562
HBA Description                : QLE2562 PCI Express to 8Gb FC Dual Channel
HBA ID                         : 0-QLE2562
HBA Alias                      :
HBA Port                       : 1
Port Alias                     :
Node Name                      : 20-00-00-24-FF-2F-90-5E
Port Name                      : 21-00-00-24-FF-2F-90-5E
Port ID                        : 00-00-EF
Principal Fabric WWN           : Not connected
Adjacent Fabric WWN            : Not connected
Serial Number                  : RFD1124P90132
Driver Version                 : 10.02.00.106-k
BIOS Version                   : 3.43
Running Firmware Version       : 8.07.00 (90d5)
Flash BIOS Version             : 3.43
Flash FCode Version            : 3.23
Flash EFI Version              : 7.03
Flash Firmware Version         : 8.08.207
Actual Connection Mode         : Loop
Actual Data Rate               : 8 Gbps
Supported Speed(s)             : 2 4 8 Gbps
Chip Model Name                : ISP2532-based 8Gb Fibre Channel to PCI 
Express HBA
PortType (Topology)            : NLPort
..
Linux is Ubuntu 20.04 running kernel 5.4
$ uname -a
Linux fcvtl 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
I have blacklisted the standard kernel qla2xxx module, compiled SCST 
trunk 9610 with QLA support and the modules appear to be loading:
$ lsmod | grep scst
scst_user              49152  3
scst_tape              16384  0
scst_local             24576  0
scst_changer           16384  0
isert_scst             61440  4
iscsi_scst            102400  5 isert_scst
scst                 3526656  7 
qla2x00tgt,isert_scst,scst_tape,scst_user,scst_local,scst_changer,iscsi_scst
rdma_cm                65536  1 isert_scst
ib_core               311296  4 isert_scst,rdma_cm,iw_cm,ib_cm
dlm                   172032  1 scst
libcrc32c              16384  3 btrfs,iscsi_scst,raid456
qla2xxx_scst          794624  1 qla2x00tgt
nvme_fc                40960  1 qla2xxx_scst
scsi_transport_fc      61440  2 qla2x00tgt,qla2xxx_scst
$ lsmod | grep qla
qla2x00tgt             36864  0
scst                 3526656  7 
qla2x00tgt,isert_scst,scst_tape,scst_user,scst_local,scst_changer,iscsi_scst
qla2xxx_scst          794624  1 qla2x00tgt
nvme_fc                40960  1 qla2xxx_scst
scsi_transport_fc      61440  2 qla2x00tgt,qla2xxx_scst
my scst.conf file contains an empty TARGET_DRIVER qla2x00t {} section 
for now, the plan is to add target parameters by writing to sysfs from 
my software. I use this approach with iSCSI targets and that works well.
The adapter is detected:
$ dmesg | grep qla
[    1.568304] qla2xxx_scst: loading out-of-tree module taints kernel.
[    1.568763] qla2xxx_scst: module verification failed: signature 
and/or required key missing - tainting kernel
[    1.570290] qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA 
Driver: 10.02.00.106-k.
[    1.570827] qla2xxx [0000:00:00.0]-001d: : Found an ISP2532 irq 19 
iobase 0x000000008c323a7c.
[    1.759049] qla2xxx [0000:0b:00.0]-ffff:6: FC4 priority set to FCP
[    2.348618] scsi host6: qla2xxx
[    2.349524] qla2xxx [0000:0b:00.0]-00fb:6: QLogic QLE2562 - 
PCI-Express Dual Channel 8Gb Fibre Channel HBA.
[    2.350182] qla2xxx [0000:0b:00.0]-00fc:6: ISP2532: PCIe (5.0GT/s 
x32) @ 0000:0b:00.0 hdma- host#=6 fw=8.07.00 (90d5).
[    2.351387] qla2xxx [0000:00:00.0]-001d: : Found an ISP2532 irq 16 
iobase 0x000000003ec7c407.
[    2.419007] qla2xxx [0000:0b:00.1]-ffff:34: FC4 priority set to FCP
[    3.016638] scsi host34: qla2xxx
[    3.017724] qla2xxx [0000:0b:00.1]-00fb:34: QLogic QLE2562 - 
PCI-Express Dual Channel 8Gb Fibre Channel HBA.
[    3.018542] qla2xxx [0000:0b:00.1]-00fc:34: ISP2532: PCIe (5.0GT/s 
x32) @ 0000:0b:00.1 hdma- host#=34 fw=8.07.00 (90d5).
[    3.234825] qla2xxx [0000:0b:00.0]-500a:6: LOOP UP detected (8 Gbps).
[    3.236370] qla2xxx [0000:0b:00.1]-500a:34: LOOP UP detected (8 Gbps).
[    3.356701] qla2xxx [0000:0b:00.0]-2072:6: Async-login - 
21:00:00:24:ff:2f:90:5f hdl=0, loopid=0 portid=0000e8 retries=29.
[    4.028776] qla2xxx [0000:0b:00.1]-2072:34: Async-login - 
21:00:00:24:ff:2f:90:5e hdl=0, loopid=0 portid=0000ef retries=29.
[   11.283687] [936]: scst: Target template qla2x00t registered successfully
At this point I expected to see target entries for the HBA ports in 
/sys/kernel/scst_tgt/targets/qla2x00t/, but there are none:
$ ls /sys/kernel/scst_tgt/targets/qla2x00t/
mgmt  trace_level  version
I have played with echo "add_target ...." commands, but this all points 
to adding NPIV port to an existing parent_host. Which is not there yet.
It's probably just something small that I'm missing, any hints?
Thanks,
Rob
 |