linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: unique entry points for all driver hosts
@ 2003-05-13 13:43 Mukker, Atul
  2003-05-13 15:09 ` 'Christoph Hellwig'
  0 siblings, 1 reply; 5+ messages in thread
From: Mukker, Atul @ 2003-05-13 13:43 UTC (permalink / raw)
  To: 'Mike Anderson', 'Christoph Hellwig'
  Cc: linux-scsi, linux-kernel

> > Why doesn't mid-layer allow LLDs to specify separate entry 
> > points to various
> > hosts attached to the same driver. Like some other entries 
> > in the Scsi Host
> > Template, entry points should also  allowed to be overridden.
> 
> Is there a issue you are hitting of common host template functions and
> selecting unique host instance functions using hostdata?

No, We simply want to have unique hot-path entry point (queuecommand) and
error handling hooks for each class of supported hosts. This is required
because these classes of controllers have disparate queue and error handling
mechanisms.

The work around we have today is to have common queue routine for example.
This queue routine then routes the scsi packet to appropriate host's
queuecommand hook using hostdata information.

looks like it is limiting to have a 'driver' specific structure(SHT) instead
of a self sufficient host-centric view (struct Scsi_Host).

IMHO, declaring multiple SHTs as suggested by Christoph Hellwig may not be a
good idea since it might appear like a hack, would lose the "template"
ideology and is not object-oriented :-)

Host structure would be best place to have pointers to these hooks as well.

-Atul Mukker


> -----Original Message-----
> From: Mike Anderson [mailto:andmike@us.ibm.com]
> Sent: Monday, May 12, 2003 7:38 PM
> To: Mukker, Atul
> Cc: linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: unique entry points for all driver hosts
> 
> 
> Mukker, Atul [atulm@lsil.com] wrote:
> > Why doesn't mid-layer allow LLDs to specify separate entry 
> points to various
> > hosts attached to the same driver. Like some other entries 
> in the Scsi Host
> > Template, entry points should also  allowed to be overridden.
> > 
> > 
> > Thanks
> 
> Is there a issue you are hitting of common host template functions and
> selecting unique host instance functions using hostdata?
> 
> -andmike
> --
> Michael Anderson
> andmike@us.ibm.com
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unique entry points for all driver hosts
  2003-05-13 13:43 unique entry points for all driver hosts Mukker, Atul
@ 2003-05-13 15:09 ` 'Christoph Hellwig'
  0 siblings, 0 replies; 5+ messages in thread
From: 'Christoph Hellwig' @ 2003-05-13 15:09 UTC (permalink / raw)
  To: Mukker, Atul; +Cc: 'Mike Anderson', linux-scsi, linux-kernel

On Tue, May 13, 2003 at 09:43:52AM -0400, Mukker, Atul wrote:
> IMHO, declaring multiple SHTs as suggested by Christoph Hellwig may not be a
> good idea since it might appear like a hack, would lose the "template"
> ideology and is not object-oriented :-)

The linux kernel is a pragmatic mix of procedural and object oriented
concepts, if you want ideology please look elsewhere.  The template is
exactly a template for multiple hosts and if you driver supports different
enouigh boards you need multiple templates - it's pretty simple.  Not that
the template is used much at all..

> Host structure would be best place to have pointers to these hooks as well.

This is right but not how the linux scsi stack was written.  Removing them
now causes more pain then it would solve - just live with the extra indirection.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unique entry points for all driver hosts
  2003-05-12 22:41 Mukker, Atul
  2003-05-12 23:38 ` Mike Anderson
@ 2003-05-13  5:37 ` Christoph Hellwig
  1 sibling, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2003-05-13  5:37 UTC (permalink / raw)
  To: Mukker, Atul; +Cc: linux-scsi, linux-kernel

On Mon, May 12, 2003 at 06:41:50PM -0400, Mukker, Atul wrote:
> Why doesn't mid-layer allow LLDs to specify separate entry points to various
> hosts attached to the same driver. 

Just declare multiple host templates.  If you use sccsi_add_host instead
of the crufty obsolete interfaces it'll work out nicely.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unique entry points for all driver hosts
  2003-05-12 22:41 Mukker, Atul
@ 2003-05-12 23:38 ` Mike Anderson
  2003-05-13  5:37 ` Christoph Hellwig
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Anderson @ 2003-05-12 23:38 UTC (permalink / raw)
  To: Mukker, Atul; +Cc: linux-scsi, linux-kernel

Mukker, Atul [atulm@lsil.com] wrote:
> Why doesn't mid-layer allow LLDs to specify separate entry points to various
> hosts attached to the same driver. Like some other entries in the Scsi Host
> Template, entry points should also  allowed to be overridden.
> 
> 
> Thanks

Is there a issue you are hitting of common host template functions and
selecting unique host instance functions using hostdata?

-andmike
--
Michael Anderson
andmike@us.ibm.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* unique entry points for all driver hosts
@ 2003-05-12 22:41 Mukker, Atul
  2003-05-12 23:38 ` Mike Anderson
  2003-05-13  5:37 ` Christoph Hellwig
  0 siblings, 2 replies; 5+ messages in thread
From: Mukker, Atul @ 2003-05-12 22:41 UTC (permalink / raw)
  To: linux-scsi; +Cc: linux-kernel, Mukker, Atul

Why doesn't mid-layer allow LLDs to specify separate entry points to various
hosts attached to the same driver. Like some other entries in the Scsi Host
Template, entry points should also  allowed to be overridden.


Thanks

-Atul Mukker
Storage Systems
LSI Logic Corporation

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-13 14:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-13 13:43 unique entry points for all driver hosts Mukker, Atul
2003-05-13 15:09 ` 'Christoph Hellwig'
  -- strict thread matches above, loose matches on Subject: below --
2003-05-12 22:41 Mukker, Atul
2003-05-12 23:38 ` Mike Anderson
2003-05-13  5:37 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).