* PS3: sg chaining support [not found] <Pine.LNX.4.62.0707171806100.29326@pademelon.sonytel.be> @ 2007-07-17 21:18 ` Geoff Levand 2007-07-18 6:33 ` Jens Axboe 0 siblings, 1 reply; 4+ messages in thread From: Geoff Levand @ 2007-07-17 21:18 UTC (permalink / raw) To: Jens Axboe; +Cc: Geert Uytterhoeven, linux-scsi Hi Jens. Geert Uytterhoeven wrote: > ---------- Forwarded message ---------- > Date: Mon, 16 Jul 2007 11:47:26 +0200 > From: Jens Axboe <jens.axboe@oracle.com> > To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org > Cc: Jens Axboe <jens.axboe@oracle.com>, paulus@samba.org > Subject: [PATCH 12/33] PPC: sg chaining support > > This updates the ppc iommu/pci dma mappers to sg chaining. > > Cc: paulus@samba.org > Signed-off-by: Jens Axboe <jens.axboe@oracle.com> > --- > arch/powerpc/kernel/dma_64.c | 5 +++-- > arch/powerpc/kernel/ibmebus.c | 11 ++++++----- > arch/powerpc/kernel/iommu.c | 18 +++++++++++------- > arch/powerpc/platforms/ps3/system-bus.c | 5 +++-- > include/asm-powerpc/dma-mapping.h | 2 +- > include/asm-powerpc/scatterlist.h | 2 ++ > 6 files changed, 26 insertions(+), 17 deletions(-) I'm wondering what the status of this work is. The patch I've seen no longer applies to ps3/system-bus.c. A rebase to linux-2.6.git a5fcaa210626a79465321e344c91a6a7dc3881fa is below, but untested, as I don't have the other patches to do the build. -Geoff Subject: PS3: sg chaining support This updates the ps3 system bus dma mappers to sg chaining. CC: Jens Axboe <jens.axboe@oracle.com> From: Geoff Levand <geoffrey.levand@am.sony.com> --- arch/powerpc/platforms/ps3/system-bus.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) --- a/arch/powerpc/platforms/ps3/system-bus.c +++ b/arch/powerpc/platforms/ps3/system-bus.c @@ -622,17 +622,18 @@ static void ps3_unmap_single(struct devi } } -static int ps3_sb_map_sg(struct device *_dev, struct scatterlist *sg, int nents, - enum dma_data_direction direction) +static int ps3_sb_map_sg(struct device *_dev, struct scatterlist *sgl, + int nents, enum dma_data_direction direction) { #if defined(CONFIG_PS3_DYNAMIC_DMA) BUG_ON("do"); return -EPERM; #else struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); + struct scatterlist *sg; int i; - for (i = 0; i < nents; i++, sg++) { + for_each_sg(sgl, sg, nents, i) { int result = ps3_dma_map(dev->d_region, page_to_phys(sg->page) + sg->offset, sg->length, &sg->dma_address, 0); @@ -650,7 +651,7 @@ static int ps3_sb_map_sg(struct device * #endif } -static int ps3_ioc0_map_sg(struct device *_dev, struct scatterlist *sg, +static int ps3_ioc0_map_sg(struct device *_dev, struct scatterlist *sgl, int nents, enum dma_data_direction direction) { @@ -658,7 +659,7 @@ static int ps3_ioc0_map_sg(struct device return 0; } -static void ps3_sb_unmap_sg(struct device *_dev, struct scatterlist *sg, +static void ps3_sb_unmap_sg(struct device *_dev, struct scatterlist *sgl, int nents, enum dma_data_direction direction) { #if defined(CONFIG_PS3_DYNAMIC_DMA) @@ -666,7 +667,7 @@ static void ps3_sb_unmap_sg(struct devic #endif } -static void ps3_ioc0_unmap_sg(struct device *_dev, struct scatterlist *sg, +static void ps3_ioc0_unmap_sg(struct device *_dev, struct scatterlist *sgl, int nents, enum dma_data_direction direction) { BUG(); ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PS3: sg chaining support 2007-07-17 21:18 ` PS3: sg chaining support Geoff Levand @ 2007-07-18 6:33 ` Jens Axboe 2007-07-18 21:08 ` Geoff Levand 0 siblings, 1 reply; 4+ messages in thread From: Jens Axboe @ 2007-07-18 6:33 UTC (permalink / raw) To: Geoff Levand; +Cc: Geert Uytterhoeven, linux-scsi On Tue, Jul 17 2007, Geoff Levand wrote: > Hi Jens. > > Geert Uytterhoeven wrote: > > ---------- Forwarded message ---------- > > Date: Mon, 16 Jul 2007 11:47:26 +0200 > > From: Jens Axboe <jens.axboe@oracle.com> > > To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org > > Cc: Jens Axboe <jens.axboe@oracle.com>, paulus@samba.org > > Subject: [PATCH 12/33] PPC: sg chaining support > > > > This updates the ppc iommu/pci dma mappers to sg chaining. > > > > Cc: paulus@samba.org > > Signed-off-by: Jens Axboe <jens.axboe@oracle.com> > > --- > > arch/powerpc/kernel/dma_64.c | 5 +++-- > > arch/powerpc/kernel/ibmebus.c | 11 ++++++----- > > arch/powerpc/kernel/iommu.c | 18 +++++++++++------- > > arch/powerpc/platforms/ps3/system-bus.c | 5 +++-- > > include/asm-powerpc/dma-mapping.h | 2 +- > > include/asm-powerpc/scatterlist.h | 2 ++ > > 6 files changed, 26 insertions(+), 17 deletions(-) > > I'm wondering what the status of this work is. The patch I've > seen no longer applies to ps3/system-bus.c. A rebase to > linux-2.6.git a5fcaa210626a79465321e344c91a6a7dc3881fa is below, > but untested, as I don't have the other patches to do the build. I rebased the tree yesterday to resolve that conflict, it's in the sglist-arch branch now. The result is identical to yours. Shall I take this as an acked-by? -- Jens Axboe ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PS3: sg chaining support 2007-07-18 6:33 ` Jens Axboe @ 2007-07-18 21:08 ` Geoff Levand 2007-07-19 6:14 ` Jens Axboe 0 siblings, 1 reply; 4+ messages in thread From: Geoff Levand @ 2007-07-18 21:08 UTC (permalink / raw) To: Jens Axboe; +Cc: Geert Uytterhoeven, linux-scsi Jens Axboe wrote: > On Tue, Jul 17 2007, Geoff Levand wrote: >> I'm wondering what the status of this work is. The patch I've >> seen no longer applies to ps3/system-bus.c. A rebase to >> linux-2.6.git a5fcaa210626a79465321e344c91a6a7dc3881fa is below, >> but untested, as I don't have the other patches to do the build. > > I rebased the tree yesterday to resolve that conflict, it's in the > sglist-arch branch now. The result is identical to yours. > > Shall I take this as an acked-by? > I did some casual testing on PS3 with linux-2.6-block.git #sglist-arch 7c132dd2c151dd559baa64abae7a39e9e9a82f28 and it seems to work OK. Acked-by: Geoff Levand <geoffrey.levand@am.sony.com> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PS3: sg chaining support 2007-07-18 21:08 ` Geoff Levand @ 2007-07-19 6:14 ` Jens Axboe 0 siblings, 0 replies; 4+ messages in thread From: Jens Axboe @ 2007-07-19 6:14 UTC (permalink / raw) To: Geoff Levand; +Cc: Geert Uytterhoeven, linux-scsi On Wed, Jul 18 2007, Geoff Levand wrote: > Jens Axboe wrote: > > On Tue, Jul 17 2007, Geoff Levand wrote: > >> I'm wondering what the status of this work is. The patch I've > >> seen no longer applies to ps3/system-bus.c. A rebase to > >> linux-2.6.git a5fcaa210626a79465321e344c91a6a7dc3881fa is below, > >> but untested, as I don't have the other patches to do the build. > > > > I rebased the tree yesterday to resolve that conflict, it's in the > > sglist-arch branch now. The result is identical to yours. > > > > Shall I take this as an acked-by? > > > > I did some casual testing on PS3 with linux-2.6-block.git #sglist-arch > 7c132dd2c151dd559baa64abae7a39e9e9a82f28 and it seems to work OK. > > Acked-by: Geoff Levand <geoffrey.levand@am.sony.com> Thanks! -- Jens Axboe ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-19 6:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.62.0707171806100.29326@pademelon.sonytel.be>
2007-07-17 21:18 ` PS3: sg chaining support Geoff Levand
2007-07-18 6:33 ` Jens Axboe
2007-07-18 21:08 ` Geoff Levand
2007-07-19 6:14 ` Jens Axboe
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).