All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Higdon <jeremy@sgi.com>
To: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
	scsi <linux-scsi@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>, Jes Sorensen <jes@sgi.com>,
	David Woodhouse <dwmw2@infradead.org>,
	holt@sgi.com
Subject: Re: [PATCH 1/2 scsi-misc] qla1280: use request_firmware
Date: Wed, 8 Apr 2009 00:43:42 -0700	[thread overview]
Message-ID: <20090408074342.GA3919@sgi.com> (raw)
In-Reply-To: <1238654959.4940.12.camel@ht.satnam>

On Thu, Apr 02, 2009 at 12:19:19PM +0530, Jaswinder Singh Rajput wrote:
> It seems LKML is rejected old email because of big size. so I am CC LKML
> after deleting firmware blobs:
> 
> From: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
> Date: Thu, 2 Apr 2009 11:13:17 +0530
> Subject: [PATCH] qla1280: use request_firmware
> 
> Firmware blob is little endian looks like this...
>         unsigned char  Version1
>         unsigned char  Version2
>         unsigned char  Version3
>         unsigned char  Padding
>         unsigned short start_address
> 	unsigned short data

This patch causes a problem.  It looks as though the firmware file may be
incorrectly built for at least 12160.  We get a checksum error from the
ISP12160 when it does the checksum:

qla1280 0001:00:03.0: firmware: using built-in firmware qlogic/12160.bin
qla1280_mailbox_command: Command failed, mailbox0 = 0x0007, mailbox_out0 = 0x4003, istatus = 0x6000
m0 4003, m1 b141, m2 5555, m3 aa55
m4 55aa, m5 a5a5, m6 5a5a, m7 2525
scsi(0): RISC checksum failed.
scsi(0): initialize: pci probe failed!
qla1x160: Failed to initialize adapter


>From qla1280_start_firmware():
        /* Verify checksum of loaded RISC code. */
        mb[0] = MBC_VERIFY_CHECKSUM;
        /* mb[1] = ql12_risc_code_addr01; */
        mb[1] = ha->fwstart;
        err = qla1280_mailbox_command(ha, BIT_1 | BIT_0, mb);
        if (err) {
                printk(KERN_ERR "scsi(%li): RISC checksum failed.\n", ha->host_no);
                return err;
        }

jeremy


> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
> ---
>  drivers/scsi/ql1040_fw.h       | 2130 ----------------------------------------
>  drivers/scsi/ql12160_fw.h      | 1811 ----------------------------------
>  drivers/scsi/ql1280_fw.h       | 2048 --------------------------------------
>  drivers/scsi/qla1280.c         |  114 ++-
>  drivers/scsi/qla1280.h         |    6 +
>  firmware/Makefile              |    2 +
>  firmware/WHENCE                |   13 +
>  firmware/qlogic/1040.bin.ihex  | 2111 +++++++++++++++++++++++++++++++++++++++
>  firmware/qlogic/12160.bin.ihex | 1771 +++++++++++++++++++++++++++++++++
>  firmware/qlogic/1280.bin.ihex  | 2008 +++++++++++++++++++++++++++++++++++++
>  10 files changed, 5985 insertions(+), 6029 deletions(-)
>  delete mode 100644 drivers/scsi/ql1040_fw.h
>  delete mode 100644 drivers/scsi/ql12160_fw.h
>  delete mode 100644 drivers/scsi/ql1280_fw.h
>  create mode 100644 firmware/qlogic/1040.bin.ihex
>  create mode 100644 firmware/qlogic/12160.bin.ihex
>  create mode 100644 firmware/qlogic/1280.bin.ihex

  reply	other threads:[~2009-04-08  7:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1238654083.4940.8.camel@ht.satnam>
2009-04-02  6:49 ` [PATCH 1/2 scsi-misc] qla1280: use request_firmware Jaswinder Singh Rajput
2009-04-08  7:43   ` Jeremy Higdon [this message]
2009-04-08  8:33     ` Jaswinder Singh Rajput

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090408074342.GA3919@sgi.com \
    --to=jeremy@sgi.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=dwmw2@infradead.org \
    --cc=holt@sgi.com \
    --cc=jaswinder@kernel.org \
    --cc=jes@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.