• Chunhao Lin's avatar
    r8169: fix dmar pte write access is not set error · bb41c13c
    Chunhao Lin authored
    When close device, if wol is enabled, rx will be enabled. When open
    device it will cause rx packet to be dma to the wrong memory address
    after pci_set_master() and system log will show blow messages.
    
    DMAR: DRHD: handling fault status reg 3
    DMAR: [DMA Write] Request device [02:00.0] PASID ffffffff fault addr
    ffdd4000 [fault reason 05] PTE Write access is not set
    
    In this patch, driver disable tx/rx when close device. If wol is
    enabled, only enable rx filter and disable rxdv_gate(if support) to
    let hardware only receive packet to fifo but not to dma it.
    Signed-off-by: default avatarChunhao Lin <hau@realtek.com>
    Reviewed-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    bb41c13c
r8169_main.c 138 KB