From: 'Christoph Hellwig' <hch@infradead.org>
To: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
Cc: Mark Haverkamp <markh@osdl.org>, linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: dpt_i2o driver
Date: Tue, 2 Sep 2003 15:00:27 +0100 [thread overview]
Message-ID: <20030902150027.A7246@infradead.org> (raw)
In-Reply-To: <0998F43EAD645A47B3F6507196DD70EA25690F@OTCEXC01>; from mark_salyzyn@adaptec.com on Tue, Sep 02, 2003 at 09:51:01AM -0400
> - Consider 2.2 history? We no longer build modules for these kernels, but
> I do get monthly requests for driver sources to work in such. Adaptec's
> policy is one version, plus one behind, so supporting these users is a
> violation of this policy. Pleasing everyone is so hard ... :-(
Ok.
> - I looked through the nits, looks ok except:
> - use_new_eh_code was initialized thus because some kernels would
> have
> the (smp) lock, but not the (up) interrupts disabled; by
> initializing
> after the fact one got consistent io_request_lock behavior. Will
> need
> to instrument and test the current crop of kernels I build for to
> see
> if this issue is no longer there.
-ENOCONTEXT. Can you quote what this is the reply to?
> proc_dir is a 2.2 ism,
> will-be-gone.
yeah. What I meant (IIRC) is that you should intialize it in the
struct defintion not at runtime.
> - Found some kernels that did not have CONFIG_HIGHIO, yet had
> highmem_io
> functionality :-( Wanted 64 bit to function there ...
Hmm, what kernels? Must be some vendor tree..
> - casting to u8 * follows rules of strict typechecking and
> documentation
> of pointer's purpose. Will remove under this `protest' as the
> Linux
> CodingStyle does frown upon excesses.
Not starting a flamewar here, but C explicitly allows to assign void *
to any pointer type. By casting it you actually lose typechecking if
the return value changes and you don't catch it.
> - I remember the author of this code going through hoops to get
> add_wait_queue to function in some of the kernels, she
> got abused by a race condition that would only go away once it
> was coded thus. I will need to revisit these bugs and make sure
> they are no longer present in the current crop of kernels.
Sounds strange because that really is the opencoded variant of þhese.
> - pHba->host is not set during early stages of initialization,
> had to place the if around the
> spin_unlock_irq(pHba->host->host_lock)
> to allow the initialization check for the adapter. One could trust
> the product Ids and move code around, I chose the easy way out.
eek, okay.
> - DPT_TARGET_BUSY is necessary to prevent the management
> applications
> from modifying arrays that are in use. Without this, admittedly
> racy,
> code, we are all doomed (!) Busy checking from the management
> perspective shall always be racy, we count on the slowness of the
> operations and the users and the fact that the person utilizing
> the
> applications has some physical access knowledge of the system.
> However, they make mistakes, and we would have far more serious
> problems without this ioctl. OEM's would scream *murder* (as they
> have in the past). I personally do not see an issue with this
> being
> in the way of proper refcounting as it is passive. Looks like a
> case
> of one release for kernels.org, and another for our customers :-(
Well, this simply won't work anymore soon in mainline and thus 2.6-based
vendor trees. What exactly are these apps checking for, please give
some more context on what it is used for.
> ?
>
> dpt_i2o predated the i2o_scsi driver, and as such contains some legacy.
> However, this driver is a pure scsi layer solution, no block device
> translation, utilizing a DPT special private scb command that can be issued
> to *any* target to simplify the driver (and the firmware) paths. In
> addition, the dpt card has the ability to assign SCSI Ids to logical
> devices, can only be extracted completely (bus, target and lun) from a DPT
> special private getparam page. 64 bit Scatter Gather is supported, by
> igniting an unused bit in the SCB command. Finally, need a management
> utility path to issue commands to the adapter.
Okay, sounds fair.
> I see no problem with incorporating these enhancements into i2o_scsi, except
> for the resistance to management application ioctls though ...
Given that these extensions probably don't appear in other HBAs it's
probably not a that good idea. Thanks for the explanation.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2003-09-02 14:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-02 13:51 dpt_i2o driver Salyzyn, Mark
2003-09-02 14:00 ` 'Christoph Hellwig' [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-02 17:39 Salyzyn, Mark
2003-09-02 17:26 Salyzyn, Mark
2003-09-02 17:34 ` 'Christoph Hellwig'
2003-09-02 17:10 Salyzyn, Mark
2003-09-02 17:14 ` 'Christoph Hellwig'
2003-09-02 16:41 Salyzyn, Mark
2003-09-02 17:00 ` 'Christoph Hellwig'
2003-08-26 17:17 Salyzyn, Mark
2003-08-28 10:11 ` 'Christoph Hellwig'
2003-08-26 15:02 Salyzyn, Mark
2003-08-26 16:51 ` 'Christoph Hellwig'
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=20030902150027.A7246@infradead.org \
--to=hch@infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mark_salyzyn@adaptec.com \
--cc=markh@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox