17fe5dff5e112c111a2ccf8727b8fc4e76e37cb0
[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 --- a/drivers/net/ethernet/broadcom/bgmac.c
22 +++ b/drivers/net/ethernet/broadcom/bgmac.c
23 @@ -302,9 +302,6 @@ static int bgmac_dma_rx_skb_for_slot(str
24 slot->skb = skb;
25 slot->dma_addr = dma_addr;
26
27 - if (slot->dma_addr & 0xC0000000)
28 - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
29 -
30 return 0;
31 }
32
33 @@ -505,8 +502,6 @@ static int bgmac_dma_alloc(struct bgmac
34 ring->mmio_base);
35 goto err_dma_free;
36 }
37 - if (ring->dma_base & 0xC0000000)
38 - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
39
40 ring->unaligned = bgmac_dma_unaligned(bgmac, ring,
41 BGMAC_DMA_RING_TX);
42 @@ -536,8 +531,6 @@ static int bgmac_dma_alloc(struct bgmac
43 err = -ENOMEM;
44 goto err_dma_free;
45 }
46 - if (ring->dma_base & 0xC0000000)
47 - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
48
49 ring->unaligned = bgmac_dma_unaligned(bgmac, ring,
50 BGMAC_DMA_RING_RX);