• Robert Hancock's avatar
    r8169: enable 64-bit DMA by default for PCI Express devices (v2) · 35317688
    Robert Hancock authored
    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: default avatarRobert Hancock <hancockrwd@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    35317688
r8169.c 116 KB