Operating System - Linux
1753960 Members
7541 Online
108811 Solutions
New Discussion

Re: Error loading "lpfc" driver

 
Joaquín Jara Atienza
Occasional Visitor

Error loading "lpfc" driver

Hello,

I have the next components:

- One Mezzanine Card (FC42E / LPe1105-M4)
- RedHat Enterprise Linux 5.5 (Tikanga)
- Lpfc driver version: 8.2.0.63.3p (Inbox of RedHat)

The problem is this; When the driver tries to load the following error messages are displayed:

- Adapter failed to set maximum DMA length mbxStatus x12
- lpfc_sli_read_link_ste failed to read config region 23 rc 0xfffd Status 0xfffd

Bringing the "link" can not be established.

[root@ec] cat /sys/class/fc_host/host1/port_state
Linkdown
[root@ec] cat /sys/class/fc_host/host2/port_state
Linkdown

My "/etc/modprobe.conf";

alias scsi_hostadapter2 lpfc
options lpfc lpfc_log_verbose=0xffff lpfc_use_msi=1 lpfc_topology=2 lpfc_scan_down=0 lpfc_devloss_tmo=60 lpfc_sli_mode=0 lpfc_link_speed=0 lpfc_pci_max_read
=4096

I have seen the documentation and this error can be solved by modifying the "lpfc_pci_max_red". I tested the four possible (512, 1024, 2048, and 4096) values, and none has solved this error.

Can you help me please?

If you need more information will provide you the happy!

Thanks !

3 REPLIES 3
Matti_Kurkela
Honored Contributor

Re: Error loading "lpfc" driver

All the modules declared with "alias scsi_hostadapter" and "alias scsi_hostadapterN" lines are included in initrd and loaded before the root filesystem is mounted. This is because without (at least one of) them, the root filesystem won't be accessible.

 

If you did not create a new initrd file after editing your /etc/modprobe.conf, your initrd file still uses the old, un-edited version of /etc/modprobe.conf that was included in the initrd file when your current kernel was installed.

 

You should now update your initrd file:

mv /boot/initrd-$(uname -r).img /boot/initrd-$(uname -r).img.old
mkinitrd /boot/initrd-$(uname -r).img $(uname -r)

 

Also note that all the lpfc_... options should be listed in one long "options lpfc ..." line. If the lpfc_pci_max_read option is on a different line, it won't work.

MK
Joaquín Jara Atienza
Occasional Visitor

Re: Error loading "lpfc" driver

Hello, thanks for you answer.

 

I forgot to indicate in the message above also created a new "initrd" in every modification of the file "/etc/modprobe.conf" by the some procedure that you show me.

 

I delete some options, the file "/etc/modprobe.conf" new is as follows:

 

[root@ed] # more /etc/modprobe.conf
       alias eth0 tg3
       alias eth1 tg3
       alias eth2 tg3
       alias eth3 tg3
       alias eth4 tg3
       alias eth5 tg3
       alias scsi_hostadapter mptbase
       alias scsi_hostadapter1 mptsas
       alias scsi_hostadapter2 lpfc
       alias scsi_hostadapter3 usb-storage
       # Emulex lpfc options
       options lpfc lpfc_log_verbose=0xffff lpfc_pci_max_read=4096

Again I tested the four possible options for "lpfc_pci_max_read" and continued with the same problem.

 

Attached the output of "dmesg | grep -i lpfc" executed on the initial system.

 

Thank again !!!

Joaquín Jara Atienza
Occasional Visitor

Re: Error loading "lpfc" driver

It seems that the file not attached. Stick it (sorry);

 

lpfc 0000:09:00.0: 0:(0):0248 Cancel Discovery Timer state x0 Data: x80000 x0 x0
lpfc 0000:09:00.0: 0:0337 Restart HBA Data: x0 x100
lpfc 0000:09:00.0: 0:0325 Reset HBA Data: x0 x100
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x11 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:0455 Vital Product Data: x82 x24 x0 x48
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x88 issue Data: x0 x100 x1
lpfc 0000:09:00.0: 0:2709 This device supports Advanced Error Reporting (AER)
lpfc 0000:09:00.0: 0:0444 Firmware in SLI 3 mode. Max_vpi 0
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x21 issue Data: x0 x300 x1
lpfc 0000:09:00.0: 0:0:0508 Adapter failed to set maximum DMA length mbxStatus x12
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x9 issue Data: x0 x300 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x9 issue Data: x0 x300 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x9 issue Data: x0 x300 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x7c issue Data: x0 x300 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x7c issue Data: x0 x300 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x8d issue Data: x0 x700 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd xb issue Data: x0 x700 x1
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x700 x1
lpfc 0000:09:00.0: 0:2601 lpfc_sli_read_link_ste failed to read config region 23 rc 0xfffd Status 0xfffd
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x5 issue Data: x0 x700 x2
lpfc 0000:09:00.0: 0:(0):0308 Mbox cmd issue - BUSY Data: x33 x0 x700 x2
lpfc 0000:09:00.0: 0:(0):0308 Mbox cmd issue - BUSY Data: x17 x0 x700 x2
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x33 issue Data: x0 x700 x2
lpfc 0000:09:00.0: 0:(0):0307 Mailbox cmd x5 (x0) Cmpl xffffffff8813e215 Data: x500 x0 x4404 x0 x0 x0 x0 x0 x0
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x700 x2
lpfc 0000:09:00.0: 0:(0):0307 Mailbox cmd x33 (x0) Cmpl xffffffff8815b776 Data: x123300 x2 x0 x0 x0 x0 x0 x0 x0
lpfc 0000:09:00.0: 0:(0):0307 Mailbox cmd x17 (x0) Cmpl xffffffff88162fcf Data: x1700 x52 x4 x0 x3c x2e82715 x555637 x0 x0
lpfc 0000:09:00.0: 0:0470 Enable INTx interrupt mode.
lpfc 0000:09:00.0: 0:0428 Perform SCSI scan
lpfc 0000:09:00.0: 0:(0):0309 Mailbox cmd x17 issue Data: x0 x700 x2
lpfc 0000:09:00.0: 0:(0):0307 Mailbox cmd x17 (x0) Cmpl xffffffff8813c032 Data: xfffd1700 x52 x16 x0 x1b x0 x0 x0 x0
lpfc 0000:09:00.0: 0:0544 lpfc_create_static_vport failed to issue dump mailbox command ret 0x0 status 0xfffd
lpfc 0000:09:00.1: 1:(0):0248 Cancel Discovery Timer state x0 Data: x80000 x0 x0
lpfc 0000:09:00.1: 1:0337 Restart HBA Data: x0 x100
lpfc 0000:09:00.1: 1:0325 Reset HBA Data: x0 x100
lpfc 0000:09:00.1: 1:(0):0309 Mailbox cmd x11 issue Data: x0 x100 x1
lpfc 0000:09:00.1: 1:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.1: 1:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.1: 1:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.1: 1:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1
lpfc 0000:09:00.1: 1:(0):0309 Mailbox cmd x17 issue Data: x0 x100 x1