From: Geoff Levand <geoffrey.levand@am.sony.com>
To: Jens Axboe <jens.axboe@oracle.com>
Cc: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>,
linux-scsi@vger.kernel.org
Subject: PS3: sg chaining support
Date: Tue, 17 Jul 2007 14:18:28 -0700 [thread overview]
Message-ID: <469D3224.50608@am.sony.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0707171806100.29326@pademelon.sonytel.be>
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();
next parent reply other threads:[~2007-07-17 21:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.62.0707171806100.29326@pademelon.sonytel.be>
2007-07-17 21:18 ` Geoff Levand [this message]
2007-07-18 6:33 ` PS3: sg chaining support Jens Axboe
2007-07-18 21:08 ` Geoff Levand
2007-07-19 6:14 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=469D3224.50608@am.sony.com \
--to=geoffrey.levand@am.sony.com \
--cc=Geert.Uytterhoeven@sonycom.com \
--cc=jens.axboe@oracle.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.