From owner-freebsd-drivers@FreeBSD.ORG Tue Jul 22 07:37:15 2014 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBA5EA97; Tue, 22 Jul 2014 07:37:15 +0000 (UTC) Received: from mail-vc0-x230.google.com (mail-vc0-x230.google.com [IPv6:2607:f8b0:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 698D42669; Tue, 22 Jul 2014 07:37:15 +0000 (UTC) Received: by mail-vc0-f176.google.com with SMTP id id10so9404610vcb.35 for ; Tue, 22 Jul 2014 00:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=VUxw5qlgHyuHnhT9RRogIgzrono5Vp+RSMmbK1G18Wk=; b=luwFGJiYzEJl/MV8xMOEND5JmSWSjy5qaxrE8jmWH4ArmOR0irHhEGltFxupdV1YzJ fU/t6U3rBrhsh0yRy2uErrjjgpLbW+nKzKAVvFNf5NOiLsOP0cTIL8/HAZ4cQRkb/VIN /d0VYOdsdA722JGkFNnfvBWdCR1fhCOsAtQibeVWILEpFDZnXPKF7ee8GgKEjYPDDBwA Dkzh+bacXk6bk82BXHCZbjzFaIvCkDLzNhtwaduV+0AkTobnubSJaCUdDcbJLZUvEKMY +J81djgHOD276OXAOo5NMEGAZdpoOVCDddRQKjfT8YQyDEQWXTCv605bIjRWIBsMcD/2 Am3A== X-Received: by 10.52.184.199 with SMTP id ew7mr31515303vdc.44.1406014633905; Tue, 22 Jul 2014 00:37:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.156.71 with HTTP; Tue, 22 Jul 2014 00:36:53 -0700 (PDT) From: bharat singh Date: Tue, 22 Jul 2014 13:06:53 +0530 Message-ID: Subject: QLogic 24xx FC HBAs not working fine with CAM Target Layer To: freebsd-scsi@freebsd.org, freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2014 07:37:15 -0000 Hello, I am trying to use a new firmware on a single port FC HBA with freebsd9 stable, but facing the firmware issue. Card came with firmware version 5.5.0 (isp0: Board Type 2422, Chip Revision 0x3, resident F/W Revision 5.5.0) I upgraded the firmware to 5.6.5, and disabled firmware flag by setting "fwload_disable=YES" flag in /boot/device.hints to retain the newer firmware. On subsequent reboots the firmware fails to initialize and throws isp0: Mailbox Command 'ABOUT FIRMWARE' failed (TIMEOUT) [root@Ctrl4 ~]# ctladm port -l Port Online Type Name pp vp WWNN WWPN Speed Vendor 0 YES IOCTL CTL ioctl 0 0 0 0 0 1 YES INTERNAL ctl2cam 0 0 0x5000000edac0c700 0x5000000edac0c702 0 2 YES INTERNAL CTL internal 0 0 0 0 0 * It's not showing FC port 1448 Jul 22 11:05:37 Ctrl4 kernel: isp0: IN mbox 0 = 0x0008 1450 Jul 22 11:05:37 Ctrl4 kernel: isp0: RISC2HOST ISR 0x40000101 1451 Jul 22 11:05:37 Ctrl4 last message repeated 999 times 1454 Jul 22 11:05:37 Ctrl4 kernel: isp0: Polled Mailbox Command (0x8) Timeout (100000us) (started @ isp_reset:1045) 1456 Jul 22 11:05:37 Ctrl4 kernel: isp0: Mailbox Command 'ABOUT FIRMWARE' failed (TIMEOUT) 1458 Jul 22 11:05:37 Ctrl4 kernel: isp0: RISC2HOST ISR 0x40000101 1460 Jul 22 11:05:37 Ctrl4 kernel: Trying to mount root from ufs:/dev/label/root_0 [rw]... 1462 Jul 22 11:05:37 Ctrl4 kernel: device_attach: isp0 attach returned 6 1464 Jul 22 11:05:37 Ctrl4 kernel: isp0: port 0x3000-0x30ff mem 0xc1040000-0xc1043fff irq 16 at device 0.0 on pci 3 1465 Jul 22 11:05:37 Ctrl4 kernel: isp0: loaded firmware isp_2400_multi from dmesg: isp0: RISC2HOST ISR 0x40000101 isp0: Polled Mailbox Command (0x8) Timeout (100000us) (started @ isp_reset:1045) isp0: Mailbox Command 'ABOUT FIRMWARE' failed (TIMEOUT) isp0: RISC2HOST ISR 0x40000101 device_attach: isp0 attach returned 6 isp0: port 0x3000-0x30ff mem 0xc1040000-0xc1043fff irq 16 at device 0.0 on pci3 isp0: loaded firmware isp_2400_multi isp0: set PCI latency to 64 isp0: request/result area @ 0xf700000/0x38000 isp0: scdma @ 0xf6b9000/0x1000 isp0: IN mbox 0 = 0x0000 isp0: RISC2HOST ISR 0x0 isp0: RISC2HOST ISR 0x40008001 isp0: OUT mbox 0 = 0x4000 isp0: IN mbox 0 = 0x0006 isp0: IN mbox 1 = 0xdead The workaround is to enable the firmware flash by setting "fwload_disable=NO", but that doesn't serves my purpose. Is there a way to avoid the issue without a firmware flash on every reboot ? Moreover i have seen the issue on older firmware 5.5.0 also, as soon I disable the firmware flash and reboot. Some old threads, but not helping much. http://lists.freebsd.org/pipermail/freebsd-scsi/2010-April/004215.html Any help is deeply appreciated. -- Bharat Singh