init.c (4d75873f814055359bb6722c4e35a185d02157a8) init.c (11e31e281bd8f482a9277268f7b0d9c213584271)
1/*
2 * Intel I/OAT DMA Linux driver
3 * Copyright(c) 2004 - 2015 Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 1339 unchanged lines hidden (view full) ---

1348
1349 device = alloc_ioatdma(pdev, iomap[IOAT_MMIO_BAR]);
1350 if (!device)
1351 return -ENOMEM;
1352 pci_set_master(pdev);
1353 pci_set_drvdata(pdev, device);
1354
1355 device->version = readb(device->reg_base + IOAT_VER_OFFSET);
1/*
2 * Intel I/OAT DMA Linux driver
3 * Copyright(c) 2004 - 2015 Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 1339 unchanged lines hidden (view full) ---

1348
1349 device = alloc_ioatdma(pdev, iomap[IOAT_MMIO_BAR]);
1350 if (!device)
1351 return -ENOMEM;
1352 pci_set_master(pdev);
1353 pci_set_drvdata(pdev, device);
1354
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) {
1357 if (is_skx_ioat(pdev))
1358 device->version = IOAT_VER_3_2;
1359 err = ioat3_dma_probe(device, ioat_dca_enabled);
1360
1361 if (device->version >= IOAT_VER_3_3)
1362 pci_enable_pcie_error_reporting(pdev);
1363 } else

--- 67 unchanged lines hidden ---
1358 if (device->version >= IOAT_VER_3_0) {
1359 if (is_skx_ioat(pdev))
1360 device->version = IOAT_VER_3_2;
1361 err = ioat3_dma_probe(device, ioat_dca_enabled);
1362
1363 if (device->version >= IOAT_VER_3_3)
1364 pci_enable_pcie_error_reporting(pdev);
1365 } else

--- 67 unchanged lines hidden ---