From: Jeff Garzik <jeff@garzik.org>
To: Ed Lin <ed.lin@promise.com>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"James.Bottomley" <James.Bottomley@SteelEye.com>,
hch <hch@infradead.org>,
linux-kernel <linux-kernel@vger.kernel.org>, akpm <akpm@osdl.org>,
promise_linux <promise_linux@promise.com>
Subject: Re: [PATCH] Promise 'stex' driver
Date: Thu, 20 Jul 2006 17:27:21 -0400 [thread overview]
Message-ID: <44BFF539.4000700@garzik.org> (raw)
In-Reply-To: <NONAMEBMcvsq9IcVux1000001f9@nonameb.ptu.promise.com>
Ed Lin wrote:
> Please review following patch based on the 'stex' branch of
> git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git
>
> Jeff Garzik already finished some changes, and these are the rest.
>
>>From Christoph Hellwig's comments:
> use scsi_kmap_atomic_sg/scsi_kunmap_atomic_sg
> callback argument to ->queuecommand changed to 'done'
> merge init functions into .probe
>
>>From Alexey Dobriyan's comments:
> __le32 *time
>
> Promise code changes:
> add hard reset function
> extend reset wait time
> add new device ids
> white space/ minor fix(INQUIRY, max_channel)
>
> Block layer tag:
> It is not implemented because here tag is adapter wide,
> not for single device.
> Non-sg codepath:
> It can be eliminated when Christoph Hellwig's patch
> upstream.
> Firmware lun issue:
> Firmware uses an id/lun pair for a logical drive. But
> lun could be always 0 in Linux(when you do not config
> CONFIG_SCSI_MULTI_LUN).I use channel to map lun,
> otherwise max_id will be 256.
> INQUIRY, passthru command:
> Needed by management software. The special handling of
> INQUIRY is for management software to have a sg device
> to issue commands.
Overall, the patch looks good. My quick review finds a couple nits, though:
1) [major] The Intel bridge code ("pci_get_device(0x8086, 0x0370, bus0),
...") is not the type of thing we normally put into a driver. If there
is a problem with a specific bridge, we would prefer to patch
drivers/pci/quirks.c.
Touching _another_ piece of hardware, other than your own, is a big deal
and generally unwise.
2) [minor] Adding "magic numbers" in stex_hard_reset(). Easy to fix:
convert "0x3e", "0x84", "1 << 5" etc. to named constants. The named
constants should have sufficiently good names to understand their
purpose, without being overly long C symbols.
3) [minor] For sleeping longer than one second, ssleep() is preferred to
msleep().
4) [minor] 'void *scratch' in struct st_hba tells us nothing about its
usage. At the very least, a comment, if not a better name, would be good.
5) [agreement/correction] The block tagging API supports adapter-wide
tags just fine. HOWEVER, I nonetheless feel that block tagging API use
should be considered post-merge. The 'stex' driver is working and
tested today. Since _no individual SCSI driver_ uses the block layer
tagging, it is likely that some instability and core kernel development
will occur, in order to make that work.
All your other changes look good to me.
Jeff
next prev parent reply other threads:[~2006-07-20 21:27 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-19 15:07 Ed Lin
2006-07-20 21:27 ` Jeff Garzik [this message]
2006-07-20 23:55 ` James Bottomley
2006-07-21 0:16 ` Jeff Garzik
2006-07-21 1:07 ` Jens Axboe
2006-07-21 1:25 ` Jeff Garzik
2006-07-21 1:38 ` Jens Axboe
2006-07-21 2:10 ` Jeff Garzik
2006-07-21 2:36 ` Jens Axboe
2006-07-21 3:01 ` Jeff Garzik
2006-07-21 3:18 ` Jens Axboe
2006-07-21 3:52 ` Jeff Garzik
2006-07-21 12:13 ` Jens Axboe
2006-07-23 19:45 ` hch
2006-07-23 20:21 ` Jeff Garzik
2006-07-23 19:44 ` hch
2006-07-21 1:06 ` Jens Axboe
[not found] <NONAMEBFJ3sl3xbYiMC000000d4@nonameb.ptu.promise.com>
2006-07-25 9:26 ` hch
2006-07-26 1:20 ` Alan Cox
2006-07-25 17:30 ` Jeff Garzik
-- strict thread matches above, loose matches on Subject: below --
2006-06-10 16:08 Jeff Garzik
2006-06-10 16:10 ` Christoph Hellwig
2006-06-10 16:29 ` James Bottomley
2006-06-10 16:34 ` Christoph Hellwig
2006-06-10 16:50 ` Jeff Garzik
2006-06-10 17:10 ` Christoph Hellwig
2006-06-10 16:30 ` Jeff Garzik
2006-06-10 17:06 ` Christoph Hellwig
2006-06-10 17:37 ` Jeff Garzik
2006-06-10 18:22 ` James Bottomley
2006-06-10 18:43 ` Jeff Garzik
2006-06-10 22:28 ` Jeff Garzik
2006-06-10 17:47 ` Alexey Dobriyan
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=44BFF539.4000700@garzik.org \
--to=jeff@garzik.org \
--cc=James.Bottomley@SteelEye.com \
--cc=akpm@osdl.org \
--cc=ed.lin@promise.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=promise_linux@promise.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®