073-bgmac-Clean-warning-messages.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. On my test environment the throughput of a file transfer drops
  9. from 4.4MBps to 116KBps due the number of repeated warning
  10. messages. This patch removes the warning messages as DMA works
  11. correctly with addresses using 0xC0000000 bits.
  12. Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
  13. Acked-by: Rafał Miłecki <zajec5@gmail.com>
  14. Signed-off-by: David S. Miller <davem@davemloft.net>
  15. ---
  16. drivers/net/ethernet/broadcom/bgmac.c | 7 -------
  17. 1 file changed, 7 deletions(-)
  18. --- a/drivers/net/ethernet/broadcom/bgmac.c
  19. +++ b/drivers/net/ethernet/broadcom/bgmac.c
  20. @@ -302,9 +302,6 @@ static int bgmac_dma_rx_skb_for_slot(str
  21. slot->skb = skb;
  22. slot->dma_addr = dma_addr;
  23. - if (slot->dma_addr & 0xC0000000)
  24. - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
  25. -
  26. return 0;
  27. }
  28. @@ -505,8 +502,6 @@ static int bgmac_dma_alloc(struct bgmac
  29. ring->mmio_base);
  30. goto err_dma_free;
  31. }
  32. - if (ring->dma_base & 0xC0000000)
  33. - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
  34. ring->unaligned = bgmac_dma_unaligned(bgmac, ring,
  35. BGMAC_DMA_RING_TX);
  36. @@ -536,8 +531,6 @@ static int bgmac_dma_alloc(struct bgmac
  37. err = -ENOMEM;
  38. goto err_dma_free;
  39. }
  40. - if (ring->dma_base & 0xC0000000)
  41. - bgmac_warn(bgmac, "DMA address using 0xC0000000 bit(s), it may need translation trick\n");
  42. ring->unaligned = bgmac_dma_unaligned(bgmac, ring,
  43. BGMAC_DMA_RING_RX);