public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* When is QLogic 6.x driver going into 2.5?
@ 2002-12-29 12:45 rwhron
  2002-12-30 21:17 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: rwhron @ 2002-12-29 12:45 UTC (permalink / raw)
  To: linux-scsi

The QLogic 6.x driver appears to be superior in all respects
to the qlogic driver in the Linus and Marcelo trees.  Is there
something preventing it from being submitted for Linus' tree?
-- 
Randy Hron
http://home.earthlink.net/~rwhron/kernel/bigbox.html


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

* Re: When is QLogic 6.x driver going into 2.5?
  2002-12-29 12:45 rwhron
@ 2002-12-30 21:17 ` Christoph Hellwig
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2002-12-30 21:17 UTC (permalink / raw)
  To: rwhron; +Cc: linux-scsi

On Sun, Dec 29, 2002 at 07:45:35AM -0500, rwhron@earthlink.net wrote:
> The QLogic 6.x driver appears to be superior in all respects
> to the qlogic driver in the Linus and Marcelo trees.  Is there
> something preventing it from being submitted for Linus' tree?

I haven't seen qlogic submitting it for it.  But I guess it'll need quite
a lot work before it's in a mergeable shape.


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

* RE: When is QLogic 6.x driver going into 2.5?
@ 2003-01-01  3:30 Ravi Anand
  2003-01-01 11:47 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Ravi Anand @ 2003-01-01  3:30 UTC (permalink / raw)
  To: Christoph Hellwig, rwhron; +Cc: linux-scsi

Can you kindly elaborate on the extra work needed.


-----Original Message-----
From: Christoph Hellwig [mailto:hch@infradead.org]
Sent: Monday, December 30, 2002 1:18 PM
To: rwhron@earthlink.net
Cc: linux-scsi@vger.kernel.org
Subject: Re: When is QLogic 6.x driver going into 2.5?


On Sun, Dec 29, 2002 at 07:45:35AM -0500, rwhron@earthlink.net wrote:
> The QLogic 6.x driver appears to be superior in all respects
> to the qlogic driver in the Linus and Marcelo trees.  Is there
> something preventing it from being submitted for Linus' tree?

I haven't seen qlogic submitting it for it.  But I guess it'll need quite
a lot work before it's in a mergeable shape.

-
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

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

* Re: When is QLogic 6.x driver going into 2.5?
  2003-01-01  3:30 When is QLogic 6.x driver going into 2.5? Ravi Anand
@ 2003-01-01 11:47 ` Christoph Hellwig
  2003-01-01 23:29   ` Anton Blanchard
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2003-01-01 11:47 UTC (permalink / raw)
  To: Ravi Anand; +Cc: Christoph Hellwig, rwhron, linux-scsi

On Tue, Dec 31, 2002 at 07:30:46PM -0800, Ravi Anand wrote:
> Can you kindly elaborate on the extra work needed.

First thing is of course to actually port the driver to 2.5-CURRENT, there's
no way it'll get into 2.4 before 2.5.

The it needs some massaging into an actual linux driver:

* remove typedef abuse
* remove #ifdef abuse.  The current driver is ifdef hell at it's best.
  examples:

#ifdef UNIQUE_FW_NAME
unsigned short fw2300ip_version = 3*1024+1;
#else
unsigned short risc_code_version = 3*1024+1;
#endif

  just always use the unique name, it can't harm

#if QLA2X_PERFORMANCE

  WTF?  Either your performance changes work and can always be enabled
  or you should remove them from a submitted driver.
  The useful remaining options should be turned into CONFIG_* symbols
  for use with the kernel config tools.

* the source file organization is a mess.  Don't ever include c files
  in other c files.  Reorganize the code into qla2100/qla2200/qla2300
  specific sources and common sources instead of the ifdef mess and
  turn the shared code into a library module (e.g. qla2x00.ko)

* don't delcare the host template in a header but as normal struct,
  see the many 2.5 driver that underwent that change (i.e. aic7xxx)

Second there's a bunch of functional changes that need to be done:

* Convert to the new pci API and scsi_add_host/scsi_remove_host for
  proper PCI hotplug support.
* Remove failover/multipath support.  It has been frequently stated
  multipathing for linux schould be handle in the driver-independant
  later, like the merged md-level support or IBM's scsi midlayer
  MP patches.
* Don't use deprecated functions like check_region :)
* Use proper abstraction instead of version checking hell in the
  source files.  I.e. the many occurances of

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
        spin_lock_irq(&io_request_lock);
#else
	spin_lock_irq(ha->host->host_lock);
#endif

  should be hidden behing a proper wrapper.
* scsi_block_requests/scsi_unblock_requests instead of queueing commands
  yourself in ->queuecommand if the port stated is "dead" and remove
  much of the then obsolete queueing code.


Janitoral stuff:

* there seems to be lots of missing error return checks (i.e. copy_from_user)
* rename kmem_zalloc or just use kmalloc directly - Linux 2.5 already has
  a kmem_zalloc (in XFS)

I guess there's some more stuff that can be found once the driver is in
a saner shape, but the list is already huge enough 8)


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

* Re: When is QLogic 6.x driver going into 2.5?
  2003-01-01 11:47 ` Christoph Hellwig
@ 2003-01-01 23:29   ` Anton Blanchard
  0 siblings, 0 replies; 5+ messages in thread
From: Anton Blanchard @ 2003-01-01 23:29 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Ravi Anand, rwhron, linux-scsi


> > Can you kindly elaborate on the extra work needed.
> 
> First thing is of course to actually port the driver to 2.5-CURRENT, there's
> no way it'll get into 2.4 before 2.5.

Keep in mind that Matt Jacob's driver has been shown to work in recent 2.5
and also works on big endian 64 bit. 

I spent over a day trying to make the qlogic driver work on ppc64 and gave
up in despair. It was much harder to navigate the source.

Anton

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

end of thread, other threads:[~2003-01-01 23:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-01  3:30 When is QLogic 6.x driver going into 2.5? Ravi Anand
2003-01-01 11:47 ` Christoph Hellwig
2003-01-01 23:29   ` Anton Blanchard
  -- strict thread matches above, loose matches on Subject: below --
2002-12-29 12:45 rwhron
2002-12-30 21:17 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox