From: Tirumala Marri Subject: RE: [PATCH 1/2] PPC4xx: Generelizing drivers/dma/ppc4xx/adma.c Date: Mon, 20 Sep 2010 11:00:03 -0700 Message-ID: <7707889dee57e97ad50b4ce5c7697466@mail.gmail.com> References: <1284774145-14543-1-git-send-email-tmarri@apm.com> <20100918210920.E05AE157D71@gemini.denx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: linux-raid@vger.kernel.org, neilb@suse.de, yur@emcraft.com, herbert@gondor.hengli.com.au, linux-crypto@vger.kernel.org, dan.j.williams@intel.com, linuxppc-dev@lists.ozlabs.org To: Wolfgang Denk Return-path: Received: from exprod5og114.obsmtp.com ([64.18.0.28]:60158 "HELO exprod5og114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750868Ab0ITSAH (ORCPT ); Mon, 20 Sep 2010 14:00:07 -0400 In-Reply-To: <20100918210920.E05AE157D71@gemini.denx.de> Sender: linux-crypto-owner@vger.kernel.org List-ID: Mr. Wolfgang > > Will this driver ever include any 40x processors? If not, you probably > should use "44x" instead (here and everywhere in the rest of the > code). [Marri] Yes there is 40x based DMA engine we planned to include in the future. > > +/* Pointer to DMA0, DMA1 CP/CS FIFO */ > > +static void *ppc440spe_dma_fifo_buf; > > Seems this should go into "ppc440spe-dma.h"? > > > > +/* This array is used in data-check operations for storing a pattern > */ > > +static char ppc440spe_qword[16]; > > + > > +static atomic_t ppc4xx_adma_err_irq_ref; > > +static dcr_host_t ppc440spe_mq_dcr_host; > > +static unsigned int ppc440spe_mq_dcr_len; > > Ditto? > > > +static unsigned long ppc440spe_rxor_state; > > + > > +static struct page *ppc440spe_rxor_srcs[32]; > > And here again - please check globally! > > > > +/** > > + * ppc440spe_can_rxor - check if the operands may be processed with > RXOR > > + */ > > +static int ppc440spe_can_rxor(struct page **srcs, int src_cnt, > size_t len) > > Again, should this then not be in ppc440spe specific files? > > > It seems the split / generalization is highly incomplete yet. [Marri] Some of the stuff can go into ppc440spe-dma.h. This is just Beginning to add more new DMA engines support. I expect more changes to come in. Regards, Marri