From: Mike Christie <michaelc@cs.wisc.edu>
To: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Cc: James Bottomley <james.bottomley@suse.de>,
Linux-SCSI Mailing List <linux-scsi@vger.kernel.org>,
Karen Higgins <karen.higgins@qlogic.com>,
Ravi Anand <ravi.anand@qlogic.com>
Subject: Re: [PATCH 09/11] qla4xxx: Added support for ISP82XX
Date: Fri, 11 Jun 2010 19:39:33 -0500 [thread overview]
Message-ID: <4C12D745.3030701@cs.wisc.edu> (raw)
In-Reply-To: <5E4F49720D0BAD499EE1F01232234BA871286CE1A0@AVEXMB1.qlogic.org>
On 06/11/2010 03:44 AM, Vikas Chaudhary wrote:
>>> +/*
>>> +Address and length are byte address
>>> +*/
>>> +uint8_t *
>>> +qla82xx_read_optrom_data(struct scsi_qla_host *ha, uint8_t *buf,
>>> + uint32_t offset, uint32_t length)
>>> +{
>>> + scsi_block_requests(ha->host);
>>> +
>>> + qla82xx_read_flash_data(ha, (uint32_t *)buf, offset, length);
>>> +
>>> + scsi_unblock_requests(ha->host);
>>
>>
>>
>> What is the block/unblock for? Looks like it could be racey.
>>
>>
>
> We want to block I/O while doing flash operations.
>
I was more wondering if there is also a test below that is also hit when
you are doing flash operations? Is it the dpc reset bit check?
And what happens to scsi commands that are running when the flash
operation runs? Does your firmware fail them and if it does what host
byte error code are you using (or could you point out the chunk of
driver code that handles this)?
> if (test_bit(DPC_RESET_HA_INTR,&ha->dpc_flags) ||
> test_bit(DPC_RESET_ACTIVE,&ha->dpc_flags) ||
> test_bit(DPC_RESET_HA,&ha->dpc_flags) ||
> test_bit(DPC_HA_UNRECOVERABLE,&ha->dpc_flags) ||
> test_bit(DPC_HA_NEED_QUIESCENT,&ha->dpc_flags) ||
> !test_bit(AF_ONLINE,&ha->flags) ||
> test_bit(DPC_RESET_HA_FW_CONTEXT,&ha->dpc_flags))
> goto qc_host_busy;
>
I missed that chunk when I first reviewed the patch. I think that is
where I got confused in the other comment.
next prev parent reply other threads:[~2010-06-12 0:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-28 6:14 [PATCH 09/11] qla4xxx: Added support for ISP82XX Vikas Chaudhary
2010-04-28 6:37 ` Mike Christie
[not found] ` <B065E21A-3DB2-4303-B0DC-FB41F97F0225@qlogic.com>
2010-04-28 23:25 ` James Bottomley
2010-04-29 1:45 ` Mike Christie
2010-04-29 6:17 ` Rolf Eike Beer
2010-05-28 6:22 ` Mike Christie
2010-06-11 8:44 ` Vikas Chaudhary
2010-06-12 0:39 ` Mike Christie [this message]
2010-06-12 9:56 ` Ravi Anand
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=4C12D745.3030701@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=james.bottomley@suse.de \
--cc=karen.higgins@qlogic.com \
--cc=linux-scsi@vger.kernel.org \
--cc=ravi.anand@qlogic.com \
--cc=vikas.chaudhary@qlogic.com \
/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.