]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Scale back code that modifies MRRS
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 28 Nov 2011 09:41:04 +0000 (09:41 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 02:34:36 +0000 (10:34 +0800)
commit5e399c8c16ef94a49ba6fa517fb13bcf436b887a
treea8aa13fd469e7f98a59b1d1ff3c466d07fd7e62b
parent11a061b4fb68b9e99048a60120ecc319dfa171a8
tg3: Scale back code that modifies MRRS

Tg3 normally gets a performance boost by increasing the PCI Maximum Read
Request Size (MRRS) to 4k.  Unfortunately, this is causing some problems
on particular hardware platforms.  This patch removes all code that
modifies the MRRS except for one case.

As part of a solution to fix an internal FIFO problem on the 5719, the
driver artificially capped the MRRS to 2k for the entire 5719, and later
5720, ASIC revs.  This was overly aggressive and only really needed to
be done for the 5719 A0.  In the spirit of the rest of this patch, the
driver will only reprogram the MRRS for this device if the value exceeds
the 2k cap.

(cherry picked from commit 2c55a3d08ade44a778c182c220a7907ec65d5fb8)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c