]> git.baikalelectronics.ru Git - kernel.git/commit
[TG3]: Speed up SRAM access
authorMichael Chan <mchan@broadcom.com>
Tue, 28 Mar 2006 07:19:00 +0000 (23:19 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 29 Mar 2006 01:02:38 +0000 (17:02 -0800)
commitd91f1adb463a54a4e2d03bc6b94cce623ee88772
tree0269abfbf85bfa2e149d027393c8c27d1e00bec6
parent168b5129fd1a43bba52a5a408e65abfa0c287fe2
[TG3]: Speed up SRAM access

Speed up SRAM read and write functions if possible by using MMIO
instead of config. cycles. With this change, the post reset signature
done at the end of D3 power change must now be moved before the D3
power change.

IBM reported a problem on powerpc blades during ethtool self test
that was caused by the memory test taking excessively long. Config.
cycles are very slow on powerpc and the memory test can take more
than 10 seconds to complete using config. cycles. As a result, NETDEV
WATCHDOG can be triggered during self test and the chip can end up in
a funny state.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c