Commit bb96eb7
committed
r8169: fix dmar pte write access is not set error
Bugzilla: https://bugzilla.redhat.com/2159618
commit bb41c13
Author: Chunhao Lin <hau@realtek.com>
Date: Mon Dec 26 20:31:53 2022 +0800
r8169: fix dmar pte write access is not set error
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: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>1 parent beacabd commit bb96eb7
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2472 | 2472 | | |
2473 | 2473 | | |
2474 | 2474 | | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2475 | 2478 | | |
2476 | 2479 | | |
2477 | 2480 | | |
| |||
3992 | 3995 | | |
3993 | 3996 | | |
3994 | 3997 | | |
3995 | | - | |
| 3998 | + | |
3996 | 3999 | | |
3997 | 4000 | | |
3998 | 4001 | | |
| |||
4004 | 4007 | | |
4005 | 4008 | | |
4006 | 4009 | | |
4007 | | - | |
4008 | | - | |
4009 | | - | |
4010 | 4010 | | |
4011 | 4011 | | |
4012 | 4012 | | |
| |||
4028 | 4028 | | |
4029 | 4029 | | |
4030 | 4030 | | |
4031 | | - | |
| 4031 | + | |
4032 | 4032 | | |
4033 | 4033 | | |
4034 | 4034 | | |
| |||
4039 | 4039 | | |
4040 | 4040 | | |
4041 | 4041 | | |
4042 | | - | |
| 4042 | + | |
4043 | 4043 | | |
4044 | 4044 | | |
4045 | 4045 | | |
| |||
4727 | 4727 | | |
4728 | 4728 | | |
4729 | 4729 | | |
4730 | | - | |
| 4730 | + | |
4731 | 4731 | | |
4732 | 4732 | | |
4733 | 4733 | | |
| |||
0 commit comments