aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/dma/ioat/hw.h1
-rw-r--r--drivers/dma/ioat/init.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/ioat/hw.h b/drivers/dma/ioat/hw.h
index 3e38877cae6b..781c94de8e81 100644
--- a/drivers/dma/ioat/hw.h
+++ b/drivers/dma/ioat/hw.h
@@ -73,6 +73,7 @@
73#define IOAT_VER_3_0 0x30 /* Version 3.0 */ 73#define IOAT_VER_3_0 0x30 /* Version 3.0 */
74#define IOAT_VER_3_2 0x32 /* Version 3.2 */ 74#define IOAT_VER_3_2 0x32 /* Version 3.2 */
75#define IOAT_VER_3_3 0x33 /* Version 3.3 */ 75#define IOAT_VER_3_3 0x33 /* Version 3.3 */
76#define IOAT_VER_3_4 0x34 /* Version 3.4 */
76 77
77 78
78int system_has_dca_enabled(struct pci_dev *pdev); 79int system_has_dca_enabled(struct pci_dev *pdev);
diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c
index 3161dfbca505..58dd1bfd3edd 100644
--- a/drivers/dma/ioat/init.c
+++ b/drivers/dma/ioat/init.c
@@ -1353,6 +1353,8 @@ static int ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1353 pci_set_drvdata(pdev, device); 1353 pci_set_drvdata(pdev, device);
1354 1354
1355 device->version = readb(device->reg_base + IOAT_VER_OFFSET); 1355 device->version = readb(device->reg_base + IOAT_VER_OFFSET);
1356 if (device->version >= IOAT_VER_3_4)
1357 ioat_dca_enabled = 0;
1356 if (device->version >= IOAT_VER_3_0) { 1358 if (device->version >= IOAT_VER_3_0) {
1357 if (is_skx_ioat(pdev)) 1359 if (is_skx_ioat(pdev))
1358 device->version = IOAT_VER_3_2; 1360 device->version = IOAT_VER_3_2;