]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix DMA being used after buffer free if WoL is enabled
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 20 Mar 2021 20:40:08 +0000 (21:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Mar 2021 02:01:41 +0000 (19:01 -0700)
commitf658b90977d2e79822a558e48116e059a7e75dec
treec2cd4502642032b66a622af4edb1cf3db220a0af
parent49371a8a66ac2f78afe9101b5836190b8b668fff
r8169: fix DMA being used after buffer free if WoL is enabled

IOMMU errors have been reported if WoL is enabled and interface is
brought down. It turned out that the network chip triggers DMA
transfers after the DMA buffers have been freed. For WoL to work we
need to leave rx enabled, therefore simply stop the chip from being
a DMA busmaster.

Fixes: 567ca57faa62 ("r8169: add rtl8169_up")
Tested-by: Paul Blazejowski <paulb@blazebox.homeip.net>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c