[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101003195758B.fujita.tomonori@lab.ntt.co.jp>
Date: Sun, 3 Oct 2010 20:02:52 +0900
From: FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
To: linux@....linux.org.uk
Cc: x0095840@...com, linux-arm-kernel@...ts.infradead.org,
Hiroshi.DOYU@...ia.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scatterlist: define SG chain for arm architecture
On Fri, 1 Oct 2010 17:39:58 +0100
Russell King - ARM Linux <linux@....linux.org.uk> wrote:
> On Fri, Oct 01, 2010 at 11:28:41AM -0500, Fernando Guzman Lugo wrote:
> > Define SG chain for ARM architecture in order to work
> > with big buffers. This patch is needed in order to
> > iovmm users can pass a big buffer to map it and ARM
> > architecture has not issues using SG chain.
> >
> > This change was suggested by FUJITA Tomonori.
>
> Have you audited all places where SG lists are used in the ARM
> architecture to ensure that SG chain support is safe? (That
> goes for ARM generic code and ARM specific drivers.)
As far as I know, only SCSI actually uses SG chain feature (that is,
sending chained scatter lists). All SCSI drivers were converted when
we added SG chain feature. So what you need to care about is the dma
code.
There are only several files that actually use scatter list under
arch/arm.
>From a quick look, arch/arm/mm/dma-mapping.c,
arch/arm/common/dmabounce.c, arch/arm/kernel/dma.c, and
arch/arm/include/asm/dma-mapping.h looks fine.
arm/mach-imx/dma-v1.c also looks like to use chained sg API properly
(but this isn't used with SCSI, right?).
Seems that arch/arm/plat-omap/iovmm.c can handle the chained SG
too. It doesn't allocate the chained SG now though.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists