* [PATCH] mlx4: replace the dma_sync_single_range_for_cpu/device API
@ 2010-02-05 4:57 FUJITA Tomonori
2010-02-05 5:09 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: FUJITA Tomonori @ 2010-02-05 4:57 UTC (permalink / raw)
To: netdev; +Cc: davem, rolandd, eli, linux-kernel
There are only two users of the dma_sync_single_range_for_cpu/device
API in mainline (mlx4 and ssb). The
dma_sync_single_range_for_cpu/device API has never been documented and
the dma_sync_single_for_cpu/device API also support a partial sync.
This converts mlx4 to use the dma_sync_single_for_cpu/device API
(preparations for the removal of the dma_sync_single_range_for_cpu/device API).
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
drivers/net/mlx4/en_rx.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c
index 829b9ec..6439464 100644
--- a/drivers/net/mlx4/en_rx.c
+++ b/drivers/net/mlx4/en_rx.c
@@ -508,11 +508,11 @@ static struct sk_buff *mlx4_en_rx_skb(struct mlx4_en_priv *priv,
/* We are copying all relevant data to the skb - temporarily
* synch buffers for the copy */
dma = be64_to_cpu(rx_desc->data[0].addr);
- dma_sync_single_range_for_cpu(&mdev->pdev->dev, dma, 0,
- length, DMA_FROM_DEVICE);
+ dma_sync_single_for_cpu(&mdev->pdev->dev, dma, length,
+ DMA_FROM_DEVICE);
skb_copy_to_linear_data(skb, va, length);
- dma_sync_single_range_for_device(&mdev->pdev->dev, dma, 0,
- length, DMA_FROM_DEVICE);
+ dma_sync_single_for_device(&mdev->pdev->dev, dma, length,
+ DMA_FROM_DEVICE);
skb->tail += length;
} else {
--
1.5.6.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] mlx4: replace the dma_sync_single_range_for_cpu/device API
2010-02-05 4:57 [PATCH] mlx4: replace the dma_sync_single_range_for_cpu/device API FUJITA Tomonori
@ 2010-02-05 5:09 ` David Miller
2010-02-11 22:31 ` Roland Dreier
0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2010-02-05 5:09 UTC (permalink / raw)
To: fujita.tomonori; +Cc: netdev, rolandd, eli, linux-kernel
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Date: Fri, 5 Feb 2010 13:57:42 +0900
> There are only two users of the dma_sync_single_range_for_cpu/device
> API in mainline (mlx4 and ssb). The
> dma_sync_single_range_for_cpu/device API has never been documented and
> the dma_sync_single_for_cpu/device API also support a partial sync.
>
> This converts mlx4 to use the dma_sync_single_for_cpu/device API
> (preparations for the removal of the dma_sync_single_range_for_cpu/device API).
>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mlx4: replace the dma_sync_single_range_for_cpu/device API
2010-02-05 5:09 ` David Miller
@ 2010-02-11 22:31 ` Roland Dreier
2010-02-19 7:44 ` FUJITA Tomonori
0 siblings, 1 reply; 5+ messages in thread
From: Roland Dreier @ 2010-02-11 22:31 UTC (permalink / raw)
To: David Miller; +Cc: fujita.tomonori, netdev, rolandd, eli, linux-kernel
> > There are only two users of the dma_sync_single_range_for_cpu/device
> > API in mainline (mlx4 and ssb). The
> > dma_sync_single_range_for_cpu/device API has never been documented and
> > the dma_sync_single_for_cpu/device API also support a partial sync.
> >
> > This converts mlx4 to use the dma_sync_single_for_cpu/device API
> > (preparations for the removal of the dma_sync_single_range_for_cpu/device API).
> >
> > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
>
> Acked-by: David S. Miller <davem@davemloft.net>
Dave, please go ahead and merge this -- this affects the mlx4 ethernet
driver, so it's your area anyway.
--
Roland Dreier <rolandd@cisco.com>
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mlx4: replace the dma_sync_single_range_for_cpu/device API
2010-02-11 22:31 ` Roland Dreier
@ 2010-02-19 7:44 ` FUJITA Tomonori
2010-02-19 20:39 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: FUJITA Tomonori @ 2010-02-19 7:44 UTC (permalink / raw)
To: davem; +Cc: fujita.tomonori, netdev, rolandd, eli, linux-kernel
On Thu, 11 Feb 2010 14:31:22 -0800
Roland Dreier <rdreier@cisco.com> wrote:
> > > There are only two users of the dma_sync_single_range_for_cpu/device
> > > API in mainline (mlx4 and ssb). The
> > > dma_sync_single_range_for_cpu/device API has never been documented and
> > > the dma_sync_single_for_cpu/device API also support a partial sync.
> > >
> > > This converts mlx4 to use the dma_sync_single_for_cpu/device API
> > > (preparations for the removal of the dma_sync_single_range_for_cpu/device API).
> > >
> > > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> >
> > Acked-by: David S. Miller <davem@davemloft.net>
>
> Dave, please go ahead and merge this -- this affects the mlx4 ethernet
> driver, so it's your area anyway.
Seems that net-next still doesn't have this. Can you please merge
this?
Thanks,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mlx4: replace the dma_sync_single_range_for_cpu/device API
2010-02-19 7:44 ` FUJITA Tomonori
@ 2010-02-19 20:39 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2010-02-19 20:39 UTC (permalink / raw)
To: fujita.tomonori; +Cc: netdev, rolandd, eli, linux-kernel
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Date: Fri, 19 Feb 2010 16:44:29 +0900
> On Thu, 11 Feb 2010 14:31:22 -0800
> Roland Dreier <rdreier@cisco.com> wrote:
>
>> > > There are only two users of the dma_sync_single_range_for_cpu/device
>> > > API in mainline (mlx4 and ssb). The
>> > > dma_sync_single_range_for_cpu/device API has never been documented and
>> > > the dma_sync_single_for_cpu/device API also support a partial sync.
>> > >
>> > > This converts mlx4 to use the dma_sync_single_for_cpu/device API
>> > > (preparations for the removal of the dma_sync_single_range_for_cpu/device API).
>> > >
>> > > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
>> >
>> > Acked-by: David S. Miller <davem@davemloft.net>
>>
>> Dave, please go ahead and merge this -- this affects the mlx4 ethernet
>> driver, so it's your area anyway.
>
> Seems that net-next still doesn't have this. Can you please merge
> this?
I'll take care of this later today.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-02-19 20:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05 4:57 [PATCH] mlx4: replace the dma_sync_single_range_for_cpu/device API FUJITA Tomonori
2010-02-05 5:09 ` David Miller
2010-02-11 22:31 ` Roland Dreier
2010-02-19 7:44 ` FUJITA Tomonori
2010-02-19 20:39 ` David Miller
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).