fd3e11d672e09ba50cfc853418ff065c599f6cb5
[openwrt/staging/chunkeey.git] / target / linux / generic / patches-3.18 / 073-bgmac-Clean-warning-messages.patch
1 From 8edfe3b6fad28da191c8fa15e4e0d8f7335a0091 Mon Sep 17 00:00:00 2001
2 From: Peter Senna Tschudin <peter.senna@gmail.com>
3 Date: Sat, 7 Mar 2015 12:10:26 +0100
4 Subject: [PATCH] bgmac: Clean warning messages
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 On my test environment the throughput of a file transfer drops
10 from 4.4MBps to 116KBps due the number of repeated warning
11 messages. This patch removes the warning messages as DMA works
12 correctly with addresses using 0xC0000000 bits.
13
14 Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
15 Acked-by: Rafał Miłecki <zajec5@gmail.com>
16 Signed-off-by: David S. Miller <davem@davemloft.net>
17 ---
18 drivers/net/ethernet/broadcom/bgmac.c | 7 -------
19 1 file changed, 7 deletions(-)
20
21 diff --git a/drivers/net/ethernet/broadcom/bgmac.c b/drivers/net/ethernet/broadcom/bgmac.c
22 index 676ffe0..0469f72 100644
23 --- a/drivers/net/ethernet/broadcom/bgmac.c
24 +++ b/drivers/net/ethernet/broadcom/bgmac.c
25 @@ -302,9 +302,6 @@ static int bgmac_dma_rx_skb_for_slot(struct bgmac *bgmac,
26 slot->skb = skb;
27 slot->dma_addr = dma_addr;
28
29 - if (slot->dma_addr & 0xC0000000)
30 - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
31 -
32 return 0;
33 }
34
35 @@ -505,8 +502,6 @@ static int bgmac_dma_alloc(struct bgmac *bgmac)
36 ring->mmio_base);
37 goto err_dma_free;
38 }
39 - if (ring->dma_base & 0xC0000000)
40 - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
41
42 ring->unaligned = bgmac_dma_unaligned(bgmac, ring,
43 BGMAC_DMA_RING_TX);
44 @@ -536,8 +531,6 @@ static int bgmac_dma_alloc(struct bgmac *bgmac)
45 err = -ENOMEM;
46 goto err_dma_free;
47 }
48 - if (ring->dma_base & 0xC0000000)
49 - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
50
51 ring->unaligned = bgmac_dma_unaligned(bgmac, ring,
52 BGMAC_DMA_RING_RX);
53 --
54 1.8.4.5
55