init.c (1594c18fd297a8edcc72bc4b161f3f52603ebb92) init.c (34a31f0af84158955a9747fb5c6712da5bbb5331)
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 *

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

1359 device = alloc_ioatdma(pdev, iomap[IOAT_MMIO_BAR]);
1360 if (!device)
1361 return -ENOMEM;
1362 pci_set_master(pdev);
1363 pci_set_drvdata(pdev, device);
1364
1365 device->version = readb(device->reg_base + IOAT_VER_OFFSET);
1366 if (device->version >= IOAT_VER_3_0) {
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 *

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

1359 device = alloc_ioatdma(pdev, iomap[IOAT_MMIO_BAR]);
1360 if (!device)
1361 return -ENOMEM;
1362 pci_set_master(pdev);
1363 pci_set_drvdata(pdev, device);
1364
1365 device->version = readb(device->reg_base + IOAT_VER_OFFSET);
1366 if (device->version >= IOAT_VER_3_0) {
1367 if (is_skx_ioat(pdev))
1368 device->version = IOAT_VER_3_2;
1367 err = ioat3_dma_probe(device, ioat_dca_enabled);
1368
1369 if (device->version >= IOAT_VER_3_3)
1370 pci_enable_pcie_error_reporting(pdev);
1371 } else
1372 return -ENODEV;
1373
1374 if (err) {

--- 64 unchanged lines hidden ---
1369 err = ioat3_dma_probe(device, ioat_dca_enabled);
1370
1371 if (device->version >= IOAT_VER_3_3)
1372 pci_enable_pcie_error_reporting(pdev);
1373 } else
1374 return -ENODEV;
1375
1376 if (err) {

--- 64 unchanged lines hidden ---