public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [ANNOUNCE][RELEASE]: megaraid unified driver version 2.20.0.B 1
@ 2004-04-16 19:12 Mukker, Atul
  2004-04-16 19:17 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Mukker, Atul @ 2004-04-16 19:12 UTC (permalink / raw)
  To: 'Christoph Hellwig', Bagalkote, Sreenivas
  Cc: 'jgarzik@pobox.com', 'Matt_Domsch@dell.com',
	'paul@kungfoocoder.org',
	'James.Bottomley@SteelEye.com',
	'arjanv@redhat.com', 'linux-scsi@vger.kernel.org',
	'linux-kernel@vger.kernel.org'

> kdep.h:
>  - mraid_scsi_host_alloc/mraid_scsi_host_dealloc should go away, just
>    define scsi_host_alloc/scsi_host_put wrappers for 2.4.
>  - mraid_scsi_set_pdev should go away, it's not needed in 2.6 at all
>    because scsi_add_host does all the work and for 2.4 just use
>    scsi_set_pci_device directly.
>  - all the SCP2FOO defines should go away, the 2.6 variants 
> work for 2.4
>    aswell
>  - mraid_set_host_lock should go, just use scsi_assign_lock and define
>    it for 2.4.
All of these taken and will be incorporated in B3, but not in B2 going out
today

> 
> megaraid_clib.c:
>   - why do you need the scb pool managment code at all?  You 
> can dynamically
>     allocate scbs in ->queuecommand
Will do. Please see the follow up question below

>   - can you explain the need for all the mraid_pci_blk_pool?  
> I.e. why the
>     generic dma pool routines don't work for megaraid
We did not want to use pci_alloc_consistent because it would give one page
even if we need 16 bytes (and we need a lot of these). Also, the
pci_poo_create and pci_pool_alloc would fail on some setups - maybe because
the driver requires lots of small chunks of DMAable buffers. So we decided
to write wrapper functions over pci_alloc_consistent..

> 
> all files:
>   - please avoid using scsi.h and hosts.h from drivers/scsi 
> in favour of
>     the include/scsi/ headers, especially get rid of all the Scsi_Foo
>     typedefs
ok

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: [ANNOUNCE][RELEASE]: megaraid unified driver version 2.20.0.B 1
@ 2004-04-09  4:05 Mukker, Atul
  0 siblings, 0 replies; 4+ messages in thread
From: Mukker, Atul @ 2004-04-09  4:05 UTC (permalink / raw)
  To: 'Paul Wagland', Bagalkote, Sreenivas
  Cc: 'jgarzik@pobox.com', 'Matt_Domsch@dell.com',
	'James.Bottomley@SteelEye.com',
	'arjanv@redhat.com', 'linux-scsi@vger.kernel.org',
	'linux-kernel@vger.kernel.org'

>OK, I have started to look at this driver, I have come across one
Good!

>problem, which the attached patch fixes. This patch has been sent
>through the list several times and has been accepted into 2.6.5.
Taken, would be added asap

>1. The Kconfig.megaraid and Makefile.2.6 files from the alpha release
>are not in the beta.
Will be added in next drop

>2. In mraid_pci_blk_pool_destroy(), the caller "guarantees that no more
>memory from the pool is in use", however, they don't have to guarantee
>that pool is not null. Why? In fact, in the code it appears that this
>guarantee is also made...
Now you are reading between the lines :-) Just consider clib to be
independently implemented and has some safety checks

>3. I am not sure what the local conventions on this are, but in
>megaraid_alloc_cmd_packets() if the first allocation fails then we
>return straight away, in all other cases we do a goto fail_alloc_cmds;
Accepted..

>4. Also a consistency issue: In megaraid_mbox_mm_cmd() we handle the
>deletion of a logical drive specially, by calling
>megaraid_mbox_del_logdrv(), which just ensures that the drives are
Good catch.

Thanks!
-Atul Mukker
LSI Logic

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

end of thread, other threads:[~2004-04-16 19:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 19:12 [ANNOUNCE][RELEASE]: megaraid unified driver version 2.20.0.B 1 Mukker, Atul
2004-04-16 19:17 ` Jeff Garzik
2004-04-16 19:34   ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2004-04-09  4:05 Mukker, Atul

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