]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: enable 64-bit DMA by default for PCI Express devices (v2)
authorRobert Hancock <hancockrwd@gmail.com>
Sat, 20 Feb 2010 01:10:15 +0000 (17:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Feb 2010 01:10:15 +0000 (17:10 -0800)
commit4335219f2e72386f1ca04e51b55791efa21796d0
tree75ebc4c4a910f8187e784d75abf5f4be159011f7
parente83755ff5f1206e018b722639d4e1382bd49eccd
r8169: enable 64-bit DMA by default for PCI Express devices (v2)

Currently use of 64-bit DMA is disabled in r8169 unless the user passes the
use_dac module option. This is reasonable for conventional PCI devices where
broken chipsets may not handle dual-address-cycle transfers properly for
32-bit slots and so this may not be safe. However, PCI Express should not have
this problem and not using 64-bit DMA results in DMA transfers needlessly using
the IOMMU or SWIOTLB. Set the use_dac module parameter to a new default value of
-1 which results in 64-bit DMA being enabled by default for PCI Express devices
only.

Signed-off-by: Robert Hancock <hancockrwd@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r8169.c