public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Luben Tuikov <luben_tuikov@adaptec.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 2.6.13 14/14] sas-class: SCSI Host glue
Date: Fri, 09 Sep 2005 18:35:49 -0500	[thread overview]
Message-ID: <1126308949.4799.54.camel@mulgrave> (raw)
In-Reply-To: <4321E5AB.5000100@adaptec.com>

On Fri, 2005-09-09 at 15:42 -0400, Luben Tuikov wrote:
> +static const struct scsi_host_template sas_host_template = {
> +       .module = THIS_MODULE,
> +       /* .name is initialized */
> +       .name = "",
> +       .queuecommand = sas_queuecommand,
> +       .eh_strategy_handler = sas_scsi_recover_host,
> +       .eh_timed_out = sas_scsi_timed_out,
> +       .slave_alloc = sas_slave_alloc,
> +       .slave_configure = sas_slave_configure,
> +       .slave_destroy = sas_slave_destroy,
> +       .change_queue_depth = sas_change_queue_depth,
> +       .change_queue_type = sas_change_queue_type,
> +       .bios_param = sas_bios_param,
> +       /* .can_queue is initialized */
> +       .this_id = -1,
> +       .sg_tablesize = SG_ALL,
> +       .max_sectors = SCSI_DEFAULT_MAX_SECTORS,
> +       /* .cmd_per_lun is initilized to .can_queue */
> +       .use_clustering = ENABLE_CLUSTERING,
> +};

You can't do something like this and be generic.  You intercept all of
the slave_* calls and try to provide the template.

This has produced a class that might wrapper nicely around the aic94xx
but it won't attach nicely to any other SAS driver.

You can't decide what table size and alignment your drivers are going to
have because not all will conform to them.  I already know that SATA (ex
ATA) vendors are getting into the SAS market ... they have particularly
weird SG allocation and alignment requirements for some of their stuff.

To be an actual transport class, aside from actually using the transport
class infrastructure, the code actually has to provide common routines
that a class of drivers can use.

There's already an embryonic SAS class working its way through the SCSI
list.  Could you look at enhancing that instead of trying to produce a
competing class?

James

  reply	other threads:[~2005-09-09 23:35 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-09 19:42 [PATCH 2.6.13 14/14] sas-class: SCSI Host glue Luben Tuikov
2005-09-09 23:35 ` James Bottomley [this message]
2005-09-10  4:12   ` Luben Tuikov
2005-09-10 13:08     ` Arjan van de Ven
2005-09-12 13:55       ` Luben Tuikov
2005-09-12 14:13         ` Jörn Engel
2005-09-12 18:46           ` Luben Tuikov
2005-09-12 18:46       ` Luben Tuikov
2005-09-10 14:30     ` Rik van Riel
2005-09-10 20:20       ` Alan Cox
2005-09-11  9:40         ` Christoph Hellwig
2005-09-13 12:41           ` Luben Tuikov
2005-09-11  3:56       ` ak
2005-09-11 13:41         ` James Bottomley
2005-09-12 17:12           ` Luben Tuikov
2005-09-12 17:55             ` Alan Cox
2005-09-12 13:56       ` Luben Tuikov
2005-09-11  9:38     ` Christoph Hellwig
2005-09-12 16:08       ` Matthew Wilcox
2005-09-12 19:07         ` Luben Tuikov
2005-09-12 19:55           ` Matthew Wilcox
2005-09-12 23:51             ` Stefan Richter
2005-09-12 22:00       ` Luben Tuikov
2005-09-13 15:40         ` Matthew Wilcox
2005-09-14  5:56           ` Sergey Panov
2005-09-14 10:37             ` Christoph Hellwig
2005-09-14 10:53             ` Jeff Garzik
2005-09-14 12:59               ` Luben Tuikov

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=1126308949.4799.54.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=luben_tuikov@adaptec.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