]> git.karo-electronics.de Git - karo-tx-linux.git/commit
e1000: fix Tx hangs by disabling 64-bit DMA
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Tue, 7 Sep 2010 21:01:12 +0000 (21:01 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:35 +0000 (15:55 -0700)
commit4c8478ffa104fa9df0765dd05f395cce3d7a96b4
treec9306da3c54004b32b07327b5548d849b8c3c748
parent3aeab7c1080593a4cfdd2aebdba16db4c3a33180
e1000: fix Tx hangs by disabling 64-bit DMA

commit e508be174ad36b0cf9b324cd04978c2b13c21502 upstream.

Several users report issues with 32-bit adapters when plugged
into PCI slots in machines with >= 4GB ram.  In particular AMD
systems with HyperTransport to PCI bridges seem to trigger the
issue, but it isn't limited to only them.

This issue is not easily reproducible here, yet still continues
to occur in the field.  For e1000 on PCI devices, just disable DMA
addresses over the 4GB boundary when in PCI (not PCI-X) mode, to
prevent the issue from continuing to pop up.  The performance
impact for this is negligible.

The code was refactored to move the init of the hw struct to its
own function. This allows the init to be called very early in
probe, which then allows using hw-> members for this fix.

A slight refactor to the DMA mask code was done for minor
correctness based on the instructions in DMA-API-HOWTO.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Adjust for 2.6.32]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/e1000/e1000_main.c