linux/drivers/net/ethernet/realtek
Chunhao Lin af0bedfbcb r8169: fix dmar pte write access is not set error
[ Upstream commit bb41c13c05 ]

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: Chunhao Lin <hau@realtek.com>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-24 07:24:31 +01:00
..
8139cp.c
8139too.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
atp.c
atp.h
Kconfig
Makefile
r8169_firmware.c
r8169_firmware.h
r8169_main.c r8169: fix dmar pte write access is not set error 2023-01-24 07:24:31 +01:00
r8169_phy_config.c r8169: merge support for chip versions 10, 13, 16 2022-09-08 13:12:32 +02:00
r8169.h r8169: merge support for chip versions 10, 13, 16 2022-09-08 13:12:32 +02:00