|
Denis Kirjanov |
e0d8a1 |
From 72fb2f96fb6883f8e51d56c0b707015e8ac8ebb6 Mon Sep 17 00:00:00 2001
|
|
Denis Kirjanov |
e0d8a1 |
From: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
|
|
Denis Kirjanov |
e0d8a1 |
Date: Thu, 25 Mar 2021 08:39:12 +0530
|
|
Denis Kirjanov |
e0d8a1 |
Subject: [PATCH 11/19] amd-xgbe: Update DMA coherency values
|
|
Denis Kirjanov |
e0d8a1 |
Git-commit: d75135082698140a26a56defe1bbc1b06f26a41f
|
|
Denis Kirjanov |
e0d8a1 |
Patch-mainline: v5.12-rc7
|
|
Denis Kirjanov |
e0d8a1 |
References: git-fixes
|
|
Denis Kirjanov |
e0d8a1 |
|
|
Denis Kirjanov |
e0d8a1 |
Based on the IOMMU configuration, the current cache control settings can
|
|
Denis Kirjanov |
e0d8a1 |
result in possible coherency issues. The hardware team has recommended
|
|
Denis Kirjanov |
e0d8a1 |
new settings for the PCI device path to eliminate the issue.
|
|
Denis Kirjanov |
e0d8a1 |
|
|
Denis Kirjanov |
e0d8a1 |
Fixes: 6f595959c095 ("amd-xgbe: Adjust register settings to improve performance")
|
|
Denis Kirjanov |
e0d8a1 |
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
|
|
Denis Kirjanov |
e0d8a1 |
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
|
|
Denis Kirjanov |
e0d8a1 |
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
Denis Kirjanov |
e0d8a1 |
Signed-off-by: Denis Kirjanov <denis.kirjanov@suse.com>
|
|
Denis Kirjanov |
e0d8a1 |
---
|
|
Denis Kirjanov |
e0d8a1 |
drivers/net/ethernet/amd/xgbe/xgbe.h | 6 +++---
|
|
Denis Kirjanov |
e0d8a1 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
Denis Kirjanov |
e0d8a1 |
|
|
Denis Kirjanov |
e0d8a1 |
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h
|
|
Denis Kirjanov |
e0d8a1 |
index 5897e46faca5..95b590f1efae 100644
|
|
Denis Kirjanov |
e0d8a1 |
--- a/drivers/net/ethernet/amd/xgbe/xgbe.h
|
|
Denis Kirjanov |
e0d8a1 |
+++ b/drivers/net/ethernet/amd/xgbe/xgbe.h
|
|
Denis Kirjanov |
e0d8a1 |
@@ -180,9 +180,9 @@
|
|
Denis Kirjanov |
e0d8a1 |
#define XGBE_DMA_SYS_AWCR 0x30303030
|
|
Denis Kirjanov |
e0d8a1 |
|
|
Denis Kirjanov |
e0d8a1 |
/* DMA cache settings - PCI device */
|
|
Denis Kirjanov |
e0d8a1 |
-#define XGBE_DMA_PCI_ARCR 0x00000003
|
|
Denis Kirjanov |
e0d8a1 |
-#define XGBE_DMA_PCI_AWCR 0x13131313
|
|
Denis Kirjanov |
e0d8a1 |
-#define XGBE_DMA_PCI_AWARCR 0x00000313
|
|
Denis Kirjanov |
e0d8a1 |
+#define XGBE_DMA_PCI_ARCR 0x000f0f0f
|
|
Denis Kirjanov |
e0d8a1 |
+#define XGBE_DMA_PCI_AWCR 0x0f0f0f0f
|
|
Denis Kirjanov |
e0d8a1 |
+#define XGBE_DMA_PCI_AWARCR 0x00000f0f
|
|
Denis Kirjanov |
e0d8a1 |
|
|
Denis Kirjanov |
e0d8a1 |
/* DMA channel interrupt modes */
|
|
Denis Kirjanov |
e0d8a1 |
#define XGBE_IRQ_MODE_EDGE 0
|
|
Denis Kirjanov |
e0d8a1 |
--
|
|
Denis Kirjanov |
e0d8a1 |
2.16.4
|
|
Denis Kirjanov |
e0d8a1 |
|