]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Oct 2012 20:26:24 +0000 (13:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Oct 2012 20:26:24 +0000 (13:26 -0700)
added patches:
tg3-apply-short-dma-frag-workaround-to-5906.patch

queue-3.0/series
queue-3.0/tg3-apply-short-dma-frag-workaround-to-5906.patch [new file with mode: 0644]

index fa9b571cfb0d34150522d619e23aac6a2e276d3f..44d8cad4eaeb5d279012ba8fe94996c1890348b2 100644 (file)
@@ -16,3 +16,4 @@ video-udlfb-fix-line-counting-in-fb_write.patch
 viafb-don-t-touch-clock-state-on-olpc-xo-1.5.patch
 timers-fix-endless-looping-between-cascade-and-internal_add_timer.patch
 pktgen-fix-crash-when-generating-ipv6-packets.patch
+tg3-apply-short-dma-frag-workaround-to-5906.patch
diff --git a/queue-3.0/tg3-apply-short-dma-frag-workaround-to-5906.patch b/queue-3.0/tg3-apply-short-dma-frag-workaround-to-5906.patch
new file mode 100644 (file)
index 0000000..38d8c92
--- /dev/null
@@ -0,0 +1,35 @@
+From b7abee6ef888117f92db370620ebf116a38e3f4d Mon Sep 17 00:00:00 2001
+From: Matt Carlson <mcarlson@broadcom.com>
+Date: Thu, 7 Jun 2012 12:56:54 +0000
+Subject: tg3: Apply short DMA frag workaround to 5906
+
+From: Matt Carlson <mcarlson@broadcom.com>
+
+commit b7abee6ef888117f92db370620ebf116a38e3f4d upstream.
+
+5906 devices also need the short DMA fragment workaround.  This patch
+makes the necessary change.
+
+Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
+Tested-by: Christian Kujau <lists@nerdbynature.de>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Mike Pagano <mpagano@gentoo.org>
+
+---
+ drivers/net/tg3.c |    5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/tg3.c
++++ b/drivers/net/tg3.c
+@@ -13689,8 +13689,9 @@ static int __devinit tg3_get_invariants(
+        */
+       tg3_flag_set(tp, 4G_DMA_BNDRY_BUG);
+-      if (tg3_flag(tp, 5755_PLUS))
+-              tg3_flag_set(tp, SHORT_DMA_BUG);
++      if (tg3_flag(tp, 5755_PLUS) ||
++              GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906)
++                      tg3_flag_set(tp, SHORT_DMA_BUG);
+       else
+               tg3_flag_set(tp, 40BIT_DMA_LIMIT_BUG);